summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-01-12 23:59:20 +0100
committerMichał Górny <mgorny@gentoo.org>2022-01-16 18:41:55 +0100
commit6cb599698d9e2629c47f5553231e75506564548a (patch)
treedf81df8e1f984a1b0eedd3dd216182d8c27e1ab0 /dev-python/flit_core
parentdistutils-r1.eclass: Implement PEP517 mode (diff)
downloadgentoo-6cb599698d9e2629c47f5553231e75506564548a.tar.gz
gentoo-6cb599698d9e2629c47f5553231e75506564548a.tar.bz2
gentoo-6cb599698d9e2629c47f5553231e75506564548a.zip
dev-python/flit_core: Convert to PEP517 build
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/flit_core')
-rw-r--r--dev-python/flit_core/flit_core-3.6.0-r2.ebuild33
1 files changed, 33 insertions, 0 deletions
diff --git a/dev-python/flit_core/flit_core-3.6.0-r2.ebuild b/dev-python/flit_core/flit_core-3.6.0-r2.ebuild
new file mode 100644
index 000000000000..9c37301f443b
--- /dev/null
+++ b/dev-python/flit_core/flit_core-3.6.0-r2.ebuild
@@ -0,0 +1,33 @@
+# Copyright 2019-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=standalone
+PYTHON_COMPAT=( python3_{8..10} pypy3 )
+inherit distutils-r1
+
+DESCRIPTION="Simplified packaging of Python modules (core module)"
+HOMEPAGE="
+ https://pypi.org/project/flit-core/
+ https://github.com/pypa/flit/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+
+RDEPEND="
+ dev-python/tomli[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ test? ( dev-python/testpath[${PYTHON_USEDEP}] )
+"
+
+distutils_enable_tests pytest
+
+src_prepare() {
+ rm -r flit_core/vendor || die
+ sed -i -e 's:from \.vendor ::' flit_core/*.py || die
+ distutils-r1_src_prepare
+}