1 |
commit: 1a3c31fcd9c5bd5b6aad09ddd3004630a018186c |
2 |
Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in> |
3 |
AuthorDate: Sat Jun 4 23:06:53 2022 +0000 |
4 |
Commit: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in> |
5 |
CommitDate: Sun Jun 5 06:12:14 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1a3c31fc |
7 |
|
8 |
dev-python/pip-api: fix tests |
9 |
|
10 |
Closes: https://bugs.gentoo.org/849017 |
11 |
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in> |
12 |
|
13 |
dev-python/pip-api/pip-api-0.0.29.ebuild | 25 ++++++++++++++++++------- |
14 |
1 file changed, 18 insertions(+), 7 deletions(-) |
15 |
|
16 |
diff --git a/dev-python/pip-api/pip-api-0.0.29.ebuild b/dev-python/pip-api/pip-api-0.0.29.ebuild |
17 |
index addfa72cc..6d1f48c81 100644 |
18 |
--- a/dev-python/pip-api/pip-api-0.0.29.ebuild |
19 |
+++ b/dev-python/pip-api/pip-api-0.0.29.ebuild |
20 |
@@ -3,16 +3,11 @@ |
21 |
|
22 |
EAPI=8 |
23 |
|
24 |
-COMMIT="1af2c0f4cc2aa3c50d906adc8da7a6ceb2ba5df7" |
25 |
-EPYTEST_DESELECT=( |
26 |
- tests/test_installed_distributions.py::test_installed_distributions_legacy_version |
27 |
- tests/test_installed_distributions.py::test_installed_distributions_multiple_paths |
28 |
-) |
29 |
-DISTUTILS_SETUPTOOLS="pyproject.toml" |
30 |
PYTHON_COMPAT=( python3_{8..11} pypy3 ) |
31 |
- |
32 |
+DISTUTILS_USE_PEP517=setuptools |
33 |
inherit distutils-r1 |
34 |
|
35 |
+COMMIT="1af2c0f4cc2aa3c50d906adc8da7a6ceb2ba5df7" |
36 |
DESCRIPTION="An unofficial, importable pip API" |
37 |
HOMEPAGE="https://github.com/di/pip-api" |
38 |
SRC_URI="https://github.com/di/pip-api/archive/${COMMIT}.tar.gz -> ${P}-${COMMIT}.tar.gz" # only for 0.0.29 |
39 |
@@ -31,4 +26,20 @@ BDEPEND=" |
40 |
) |
41 |
" |
42 |
|
43 |
+EPYTEST_DESELECT=( |
44 |
+ tests/test_installed_distributions.py::test_installed_distributions_legacy_version |
45 |
+ tests/test_installed_distributions.py::test_installed_distributions_multiple_paths |
46 |
+ |
47 |
+ # disable tests that check for pinned version |
48 |
+ tests/test_tests.py::test_all_the_right_pips |
49 |
+ tests/test_version.py::test_version |
50 |
+) |
51 |
+ |
52 |
distutils_enable_tests pytest |
53 |
+ |
54 |
+python_prepare_all() { |
55 |
+ distutils-r1_python_prepare_all |
56 |
+ |
57 |
+ # class constructor wants to download pinned pip version |
58 |
+ sed "/class PipTestEnvironment/{n;s/__init__/init/}" -i tests/conftest.py || die |
59 |
+} |