diff options
author | Sam James <sam@gentoo.org> | 2022-06-12 07:05:22 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-06-12 07:05:34 +0100 |
commit | 3e549f562a203a19775e9904eeb92d788ef354ee (patch) | |
tree | 899a9785629ec906e5792698a3b7eb0334686b2f /dev-python/pyproject-metadata | |
parent | profiles/updates: rename dev-python/pep621 -> dev-python/pyproject-metadata (diff) | |
download | gentoo-3e549f562a203a19775e9904eeb92d788ef354ee.tar.gz gentoo-3e549f562a203a19775e9904eeb92d788ef354ee.tar.bz2 gentoo-3e549f562a203a19775e9904eeb92d788ef354ee.zip |
dev-python/pyproject-metadata: rename dev-python/pep621 -> dev-python/pyproject-metadata
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-python/pyproject-metadata')
4 files changed, 51 insertions, 0 deletions
diff --git a/dev-python/pyproject-metadata/Manifest b/dev-python/pyproject-metadata/Manifest new file mode 100644 index 000000000000..4d0da2768631 --- /dev/null +++ b/dev-python/pyproject-metadata/Manifest @@ -0,0 +1 @@ +DIST pyproject-metadata-0.5.0.gh.tar.gz 13816 BLAKE2B 8f5613c1279539116e99b6f319b687a08160360109e1ed71d5bc6c0434ee316ef7c0b7109d6769a03452a41c1b258765c849fe416b4632b4ba25990b6b3702aa SHA512 66cd447a01d0d01ab37611415bd620517600af667d7179a2696f763ae031c013393c8145ebd33f27b43629659333effa58596a02dfc5c217935c90475250b822 diff --git a/dev-python/pyproject-metadata/files/pep621-0.5.0-no-install-tests.patch b/dev-python/pyproject-metadata/files/pep621-0.5.0-no-install-tests.patch new file mode 100644 index 000000000000..1a1591e4e402 --- /dev/null +++ b/dev-python/pyproject-metadata/files/pep621-0.5.0-no-install-tests.patch @@ -0,0 +1,13 @@ +--- a/setup.cfg ++++ b/setup.cfg +@@ -26,6 +26,10 @@ install_requires = + packaging>=19.0 + python_requires = >=3.7 + ++[options.packages.find] ++exclude = ++ tests ++ + [options.extras_require] + test = + pytest>=6.2.4 diff --git a/dev-python/pyproject-metadata/metadata.xml b/dev-python/pyproject-metadata/metadata.xml new file mode 100644 index 000000000000..acb8b5808337 --- /dev/null +++ b/dev-python/pyproject-metadata/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + </maintainer> + <upstream> + <remote-id type="github">FFY00/python-pep621</remote-id> + <remote-id type="pypi">pep621</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/pyproject-metadata/pyproject-metadata-0.5.0.ebuild b/dev-python/pyproject-metadata/pyproject-metadata-0.5.0.ebuild new file mode 100644 index 000000000000..6a5392341f1f --- /dev/null +++ b/dev-python/pyproject-metadata/pyproject-metadata-0.5.0.ebuild @@ -0,0 +1,26 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..11} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="PEP 621 metadata parsing" +HOMEPAGE="https://pypi.org/project/pep621/ https://github.com/FFY00/python-pep621/" +SRC_URI="https://github.com//FFY00/python-pep621/archive/${PV}.tar.gz -> ${P}.gh.tar.gz" +S="${WORKDIR}"/python-pyproject-metadata-${PV} + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND="dev-python/packaging[${PYTHON_USEDEP}]" + +PATCHES=( + "${FILESDIR}"/${PN}-0.5.0-no-install-tests.patch +) + +distutils_enable_tests pytest |