summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2021-11-09 14:43:11 +0100
committerMichał Górny <mgorny@gentoo.org>2021-11-09 15:01:32 +0100
commite7019a1ec1e5f5c0ae370e19e41a3749d7107ef0 (patch)
tree4c8e7c72814ae86467b7286e8293c32830d45e4f /dev-python/pep517
parentdev-python/yarl: Remove stale pypy3.7 deps (diff)
downloadgentoo-e7019a1ec1e5f5c0ae370e19e41a3749d7107ef0.tar.gz
gentoo-e7019a1ec1e5f5c0ae370e19e41a3749d7107ef0.tar.bz2
gentoo-e7019a1ec1e5f5c0ae370e19e41a3749d7107ef0.zip
dev-python/pep517: New pkg, v0.12.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/pep517')
-rw-r--r--dev-python/pep517/Manifest1
-rw-r--r--dev-python/pep517/metadata.xml12
-rw-r--r--dev-python/pep517/pep517-0.12.0.ebuild41
3 files changed, 54 insertions, 0 deletions
diff --git a/dev-python/pep517/Manifest b/dev-python/pep517/Manifest
new file mode 100644
index 000000000000..a7c369ebdc32
--- /dev/null
+++ b/dev-python/pep517/Manifest
@@ -0,0 +1 @@
+DIST pep517-0.12.0.gh.tar.gz 24726 BLAKE2B 7d022ab88c68b7254df5d922db2f571e2bab2ee58b8a2ed0ce1adeadf89f22f11f6a609b558133acfed5342a9cf6a398d805949bdfb485a4abf272e2b9322e05 SHA512 6b224759733c1f5e346909788233b0acf49c60a0b6ef2d99d953b2e7bb570b2913fd0b133d5bc6884ec3de98adf2e41fa9506fed344b8fd76cc58dfcd1778e80
diff --git a/dev-python/pep517/metadata.xml b/dev-python/pep517/metadata.xml
new file mode 100644
index 000000000000..51713b8ad12f
--- /dev/null
+++ b/dev-python/pep517/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>python@gentoo.org</email>
+ </maintainer>
+ <stabilize-allarches/>
+ <upstream>
+ <remote-id type="pypi">pep517</remote-id>
+ <remote-id type="github">pypa/pep517</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-python/pep517/pep517-0.12.0.ebuild b/dev-python/pep517/pep517-0.12.0.ebuild
new file mode 100644
index 000000000000..a349eed8f2d8
--- /dev/null
+++ b/dev-python/pep517/pep517-0.12.0.ebuild
@@ -0,0 +1,41 @@
+# Copyright 2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_SETUPTOOLS=pyproject.toml
+PYTHON_COMPAT=( python3_{8..10} pypy3 )
+
+inherit distutils-r1
+
+DESCRIPTION="Wrappers to build Python packages using PEP 517 hooks"
+HOMEPAGE="
+ https://pypi.org/project/pep517/
+ https://github.com/pypa/pep517/
+ https://pep517.readthedocs.io/"
+SRC_URI="
+ https://github.com/pypa/pep517/archive/v${PV}.tar.gz
+ -> ${P}.gh.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+ dev-python/tomli[${PYTHON_USEDEP}]"
+BDEPEND="
+ test? (
+ dev-python/testpath[${PYTHON_USEDEP}]
+ )"
+
+distutils_enable_tests pytest
+
+EPYTEST_IGNORE=(
+ # require Internet
+ tests/test_meta.py
+)
+
+src_prepare() {
+ sed -i -e '/--flake8/d' pytest.ini || die
+ distutils-r1_src_prepare
+}