commit: a19e27e7748b783fe26fab4c9035337751738d12
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Wed Aug 3 17:23:31 2022 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Wed Aug 3 17:30:12 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a19e27e7
dev-python/setuptools-declarative-requirements: add 1.3.0
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
.../setuptools-declarative-requirements/Manifest | 1 +
...etuptools-declarative-requirements-1.3.0.ebuild | 52 ++++++++++++++++++++++
2 files changed, 53 insertions(+)
diff --git a/dev-python/setuptools-declarative-requirements/Manifest
b/dev-python/setuptools-declarative-requirements/Manifest
index 394277a2e4b2..89d52db79027 100644
--- a/dev-python/setuptools-declarative-requirements/Manifest
+++ b/dev-python/setuptools-declarative-requirements/Manifest
@@ -1 +1,2 @@
DIST setuptools-declarative-requirements-1.2.0.tar.gz 17936 BLAKE2B
a5be2b64fc22d5a45136ec2b98c1d4cc6c20e17dc81070d12948b6f536a517ec8a660c105dfc13a4319d1de54409fb4f7a4c6bacaf1291afa13c7ecc27fd933f
SHA512
ce0eeb8692ff2ea80db91cad981853da74c0ca80f58b698753de92f6df3ef5e1c158e314d0ac4d0b4fa99a2ad8ee2d7d80a9d1a13f334966c948dee1a0ae3d98
+DIST setuptools-declarative-requirements-1.3.0.gh.tar.gz 19692 BLAKE2B
5030cd7a0b651a11bec8ca9ca4db680c86634c3fe895a6a76544468c2f48aef43a15e30d0c7ba1eea1133dc5b47257a061f6700b8d1e1863d72430a0459ba9f5
SHA512
eb20016ab0b8029a38ff4632d19d63cd4b6396c9d101efce577ac862feb3fc485ac4a644035d3267cd05caf679f9b2259e1d1340f8cd902ea7c7451e099c71cc
diff --git
a/dev-python/setuptools-declarative-requirements/setuptools-declarative-requirements-1.3.0.ebuild
b/dev-python/setuptools-declarative-requirements/setuptools-declarative-requirements-1.3.0.ebuild
new file mode 100644
index 000000000000..f7b059247728
--- /dev/null
+++
b/dev-python/setuptools-declarative-requirements/setuptools-declarative-requirements-1.3.0.ebuild
@@ -0,0 +1,52 @@
+# 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} )
+
+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/${PV}.tar.gz
+ -> ${P}.gh.tar.gz
+"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
+
+RDEPEND="
+ dev-python/setuptools[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ dev-python/setuptools_scm[${PYTHON_USEDEP}]
+ dev-python/wheel[${PYTHON_USEDEP}]
+ test? (
+ dev-python/pypiserver[${PYTHON_USEDEP}]
+ dev-python/pytest-shell-utilities[${PYTHON_USEDEP}]
+ dev-python/virtualenv[${PYTHON_USEDEP}]
+ )
+"
+
+distutils_enable_tests pytest
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
+
+python_prepare_all() {
+ sed -e "/http/s/localhost/127.0.0.1/g" -i tests/conftest.py || die
+
+ distutils-r1_python_prepare_all
+}
+
+python_test() {
+ local -x PIP_DEFAULT_TIMEOUT=3
+ local -x PIP_INDEX_URL="http://127.0.0.1:8080"
+ epytest -k 'not sdist'
+}