Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/setuptools-declarative-requirements/
Date: Wed, 03 Aug 2022 17:30:39
Message-Id: 1659547812.a19e27e7748b783fe26fab4c9035337751738d12.arthurzam@gentoo
1 commit: a19e27e7748b783fe26fab4c9035337751738d12
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 3 17:23:31 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 3 17:30:12 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a19e27e7
7
8 dev-python/setuptools-declarative-requirements: add 1.3.0
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 .../setuptools-declarative-requirements/Manifest | 1 +
13 ...etuptools-declarative-requirements-1.3.0.ebuild | 52 ++++++++++++++++++++++
14 2 files changed, 53 insertions(+)
15
16 diff --git a/dev-python/setuptools-declarative-requirements/Manifest b/dev-python/setuptools-declarative-requirements/Manifest
17 index 394277a2e4b2..89d52db79027 100644
18 --- a/dev-python/setuptools-declarative-requirements/Manifest
19 +++ b/dev-python/setuptools-declarative-requirements/Manifest
20 @@ -1 +1,2 @@
21 DIST setuptools-declarative-requirements-1.2.0.tar.gz 17936 BLAKE2B a5be2b64fc22d5a45136ec2b98c1d4cc6c20e17dc81070d12948b6f536a517ec8a660c105dfc13a4319d1de54409fb4f7a4c6bacaf1291afa13c7ecc27fd933f SHA512 ce0eeb8692ff2ea80db91cad981853da74c0ca80f58b698753de92f6df3ef5e1c158e314d0ac4d0b4fa99a2ad8ee2d7d80a9d1a13f334966c948dee1a0ae3d98
22 +DIST setuptools-declarative-requirements-1.3.0.gh.tar.gz 19692 BLAKE2B 5030cd7a0b651a11bec8ca9ca4db680c86634c3fe895a6a76544468c2f48aef43a15e30d0c7ba1eea1133dc5b47257a061f6700b8d1e1863d72430a0459ba9f5 SHA512 eb20016ab0b8029a38ff4632d19d63cd4b6396c9d101efce577ac862feb3fc485ac4a644035d3267cd05caf679f9b2259e1d1340f8cd902ea7c7451e099c71cc
23
24 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
25 new file mode 100644
26 index 000000000000..f7b059247728
27 --- /dev/null
28 +++ b/dev-python/setuptools-declarative-requirements/setuptools-declarative-requirements-1.3.0.ebuild
29 @@ -0,0 +1,52 @@
30 +# Copyright 2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +DISTUTILS_USE_PEP517=setuptools
36 +PYTHON_COMPAT=( python3_{8..11} )
37 +
38 +inherit distutils-r1
39 +
40 +DESCRIPTION="Requirements Support For Setuptools Declarative setup.cfg"
41 +HOMEPAGE="
42 + https://pypi.org/project/setuptools-declarative-requirements/
43 + https://github.com/s0undt3ch/setuptools-declarative-requirements
44 +"
45 +SRC_URI="
46 + https://github.com/s0undt3ch/${PN}/archive/${PV}.tar.gz
47 + -> ${P}.gh.tar.gz
48 +"
49 +
50 +LICENSE="Apache-2.0"
51 +SLOT="0"
52 +KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
53 +
54 +RDEPEND="
55 + dev-python/setuptools[${PYTHON_USEDEP}]
56 +"
57 +BDEPEND="
58 + dev-python/setuptools_scm[${PYTHON_USEDEP}]
59 + dev-python/wheel[${PYTHON_USEDEP}]
60 + test? (
61 + dev-python/pypiserver[${PYTHON_USEDEP}]
62 + dev-python/pytest-shell-utilities[${PYTHON_USEDEP}]
63 + dev-python/virtualenv[${PYTHON_USEDEP}]
64 + )
65 +"
66 +
67 +distutils_enable_tests pytest
68 +
69 +export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
70 +
71 +python_prepare_all() {
72 + sed -e "/http/s/localhost/127.0.0.1/g" -i tests/conftest.py || die
73 +
74 + distutils-r1_python_prepare_all
75 +}
76 +
77 +python_test() {
78 + local -x PIP_DEFAULT_TIMEOUT=3
79 + local -x PIP_INDEX_URL="http://127.0.0.1:8080"
80 + epytest -k 'not sdist'
81 +}