repo/gentoo:master commit in: dev-python/flit/

Michał Górny <[email protected]> Wed, 05 Aug 2026 02:13:34 +0000 (UTC)
Newsgroups gmane.linux.gentoo.cvs
Message-ID <1785894937.c830f57f400fe57fb2a20ef1d6d077bb7506c4f2.mgorny@gentoo>
commit:     c830f57f400fe57fb2a20ef1d6d077bb7506c4f2
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Aug  5 01:29:19 2026 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Aug  5 01:55:37 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c830f57f

dev-python/flit: Bump to 4.0.2

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/flit/Manifest          |  2 ++
 dev-python/flit/flit-4.0.2.ebuild | 60 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 62 insertions(+)

diff --git a/dev-python/flit/Manifest b/dev-python/flit/Manifest
index fc314d1199b7..f2878161df35 100644
--- a/dev-python/flit/Manifest
+++ b/dev-python/flit/Manifest
@@ -1,2 +1,4 @@
 DIST flit-3.12.0.tar.gz 155038 BLAKE2B f38d846b78a4840fb94869393c5b757fbf54cf871d0318abdfa9172ddde22e0f2848b3ea4a51df57bce8539fb185308628f78d3e88c2ecd20d9ec51f9b825df9 SHA512 f8ed1f0e53452def182453db91a44c9ded5413fe74e2678bb7d56b3640d6ba6f43cccb55ad73e939cc5ca236fa2bf7b3e0f6d77fe4a4f12f90a9e437b561edb2
 DIST flit-3.12.0.tar.gz.provenance 8986 BLAKE2B d8ba7c142ac67ddc0b711a806916bad06eb72407cfca75d7543e0963e166752f802984f975d78d430b6e8c8810d340fc9e6989d6a0b4ae9589acf7c33a249a57 SHA512 6105c8ed244c2de39cff9d8e8d9d3b480b6a6a1937e0bd1e1cd5ec6854bbee4d26f95213b76b57baa139132cc88a32f66cdee52b88e1c3db83e59f82fca12b1d
+DIST flit-4.0.2.tar.gz 154725 BLAKE2B fe2b85d8cd79e33023cbdd29beb569de9afda26b452a6211905459e1421a3310e5ebc92348c62c8e3919b2fe8d80ff2a2507774e76b21511b3ffddcc287cc73f SHA512 aa26f1b817e23222cfb775a46e4d8fd64e9d3e0bc623ce0f1762ce30604df9d5c1b076fa6d806f13b058f11bcdb68b39d9d8717f2cbc7d0ffe33b7cc669abd4c
+DIST flit-4.0.2.tar.gz.provenance 8875 BLAKE2B edff0f307dcd89d54c24c32067c3c6663a0d4ab3cb1722b387f6ed506d8f2784a2a827bd33ca83573e8d88f2cf893acaef71d6153f49e332bc89f85c32e93a56 SHA512 0c3a7b87e7e06cb41fe191b81ca0d493e9addbed01a4a494ca35ddbb76212315506bcea905161813caef2e837c98bba4176d7592d2252c68b209c06086e365fa

diff --git a/dev-python/flit/flit-4.0.2.ebuild b/dev-python/flit/flit-4.0.2.ebuild
new file mode 100644
index 000000000000..7dbfb803cc5d
--- /dev/null
+++ b/dev-python/flit/flit-4.0.2.ebuild
@@ -0,0 +1,60 @@
+# Copyright 2019-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=flit-core
+PYPI_VERIFY_REPO=https://github.com/pypa/flit
+PYTHON_COMPAT=( python3_{12..14} )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Simplified packaging of Python modules"
+HOMEPAGE="
+	https://github.com/pypa/flit/
+	https://flit.readthedocs.io/
+	https://pypi.org/project/flit/
+"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~mips ~x86"
+
+RDEPEND="
+	dev-python/docutils[${PYTHON_USEDEP}]
+	>=dev-python/flit-core-${PV}[${PYTHON_USEDEP}]
+	dev-python/pip[${PYTHON_USEDEP}]
+	dev-python/requests[${PYTHON_USEDEP}]
+	dev-python/tomli-w[${PYTHON_USEDEP}]
+"
+BDEPEND="
+	${RDEPEND}
+	sys-apps/grep
+	test? (
+		dev-python/responses[${PYTHON_USEDEP}]
+		dev-python/testpath[${PYTHON_USEDEP}]
+	)
+"
+
+EPYTEST_DESELECT=(
+	# requires Internet
+	tests/test_config.py::test_invalid_classifier
+	# failing due to Gentoo pip patches
+	tests/test_install.py::InstallTests::test_install_data_dir
+	tests/test_install.py::InstallTests::test_install_module_pep621
+	tests/test_install.py::InstallTests::test_symlink_data_dir
+	tests/test_install.py::InstallTests::test_symlink_module_pep621
+)
+
+EPYTEST_PLUGINS=()
+distutils_enable_tests pytest
+distutils_enable_sphinx doc \
+	dev-python/sphinxcontrib-github-alt \
+	dev-python/pygments-github-lexers \
+	dev-python/sphinx-rtd-theme
+
+src_prepare() {
+	# make sure system install is used
+	rm -r flit_core || die
+	distutils-r1_src_prepare
+}