diff options
author | Patrick McLean <chutzpah@gentoo.org> | 2022-03-29 16:34:22 -0700 |
---|---|---|
committer | Patrick McLean <chutzpah@gentoo.org> | 2022-03-30 18:28:06 -0700 |
commit | 4ac113fa643c26426ccc245c06886781cb56b89f (patch) | |
tree | 6ca7ebe27b7f0587ffa12eb9f40ead7456d1e680 /dev-python/setuptools-declarative-requirements | |
parent | dev-util/difftastic: initial import (diff) | |
download | gentoo-4ac113fa643c26426ccc245c06886781cb56b89f.tar.gz gentoo-4ac113fa643c26426ccc245c06886781cb56b89f.tar.bz2 gentoo-4ac113fa643c26426ccc245c06886781cb56b89f.zip |
dev-python/setuptools-declarative-requirements: initial import
Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
Diffstat (limited to 'dev-python/setuptools-declarative-requirements')
3 files changed, 59 insertions, 0 deletions
diff --git a/dev-python/setuptools-declarative-requirements/Manifest b/dev-python/setuptools-declarative-requirements/Manifest new file mode 100644 index 000000000000..394277a2e4b2 --- /dev/null +++ b/dev-python/setuptools-declarative-requirements/Manifest @@ -0,0 +1 @@ +DIST setuptools-declarative-requirements-1.2.0.tar.gz 17936 BLAKE2B a5be2b64fc22d5a45136ec2b98c1d4cc6c20e17dc81070d12948b6f536a517ec8a660c105dfc13a4319d1de54409fb4f7a4c6bacaf1291afa13c7ecc27fd933f SHA512 ce0eeb8692ff2ea80db91cad981853da74c0ca80f58b698753de92f6df3ef5e1c158e314d0ac4d0b4fa99a2ad8ee2d7d80a9d1a13f334966c948dee1a0ae3d98 diff --git a/dev-python/setuptools-declarative-requirements/metadata.xml b/dev-python/setuptools-declarative-requirements/metadata.xml new file mode 100644 index 000000000000..5e3f363fee8e --- /dev/null +++ b/dev-python/setuptools-declarative-requirements/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="person"> + <name>Patrick McLean</name> + <email>chutzpah@gentoo.org</email> + </maintainer> + <upstream> + <remote-id type="pypi">setuptools-declarative-requirements</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/setuptools-declarative-requirements/setuptools-declarative-requirements-1.2.0.ebuild b/dev-python/setuptools-declarative-requirements/setuptools-declarative-requirements-1.2.0.ebuild new file mode 100644 index 000000000000..037a0f39edb3 --- /dev/null +++ b/dev-python/setuptools-declarative-requirements/setuptools-declarative-requirements-1.2.0.ebuild @@ -0,0 +1,47 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( pypy3 python3_{8..10} ) +inherit distutils-r1 + +DESCRIPTION="Requirements Support For Setuptools Declarative setup.cfg" +HOMEPAGE=" + https://pypi.org/project/setuptools-declarative-requirements/ + https://github.com/s0undt3ch/setuptools-declarative-requirements +" +SRC_URI="https://github.com/s0undt3ch/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] +" +BDEPEND=" + dev-python/wheel[${PYTHON_USEDEP}] + test? ( + dev-python/pypiserver[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_prepare_all() { + sed -e "s/use_scm_version=True/version='${PV}'/" -i setup.py || die + sed -e "/setuptools_scm/ d" -i setup.cfg || die + printf '__version__ = "${PV}"\n' > declarative_requirements/version.py || die + sed -e "s/localhost/127.0.0.1/g" -i tests/conftest.py || die + rm pyproject.toml || die + + distutils-r1_python_prepare_all +} + +python_test() { + PIP_DEFAULT_TIMEOUT=3 \ + PIP_INDEX_URL="http://127.0.0.1:8080" \ + epytest -k 'not sdist' +} |