1 |
commit: ee35be1dc88fca67d3845bf583d886912ca9bb73 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 21 02:13:40 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 21 02:14:41 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee35be1d |
7 |
|
8 |
dev-python/certifi: needs setuptools at runtime |
9 |
|
10 |
Bug: https://github.com/tiran/certifi-system-store/pull/17 |
11 |
Closes: https://bugs.gentoo.org/822777 |
12 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
13 |
|
14 |
...3021.3.16.ebuild => certifi-3021.3.16-r1.ebuild} | 7 ++++++- |
15 |
.../files/certifi-3021.3.16-setuptools.patch | 21 +++++++++++++++++++++ |
16 |
2 files changed, 27 insertions(+), 1 deletion(-) |
17 |
|
18 |
diff --git a/dev-python/certifi/certifi-3021.3.16.ebuild b/dev-python/certifi/certifi-3021.3.16-r1.ebuild |
19 |
similarity index 93% |
20 |
rename from dev-python/certifi/certifi-3021.3.16.ebuild |
21 |
rename to dev-python/certifi/certifi-3021.3.16-r1.ebuild |
22 |
index eedb8a3a3354..6019af2a84af 100644 |
23 |
--- a/dev-python/certifi/certifi-3021.3.16.ebuild |
24 |
+++ b/dev-python/certifi/certifi-3021.3.16-r1.ebuild |
25 |
@@ -5,6 +5,7 @@ |
26 |
EAPI=7 |
27 |
|
28 |
PYTHON_COMPAT=( python3_{8..10} pypy3 ) |
29 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
30 |
inherit distutils-r1 |
31 |
|
32 |
MY_P=certifi-system-store-${PV} |
33 |
@@ -23,13 +24,17 @@ KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 s |
34 |
|
35 |
RDEPEND="app-misc/ca-certificates" |
36 |
|
37 |
-distutils_enable_tests --install pytest |
38 |
+PATCHES=( |
39 |
+ "${FILESDIR}"/${PN}-3021.3.16-setuptools.patch |
40 |
+) |
41 |
|
42 |
EPYTEST_IGNORE=( |
43 |
# requires Internet |
44 |
tests/test_requests.py |
45 |
) |
46 |
|
47 |
+distutils_enable_tests --install pytest |
48 |
+ |
49 |
src_prepare() { |
50 |
sed -i -e "s^/etc^${EPREFIX}/etc^" src/certifi/core.py || die |
51 |
distutils-r1_src_prepare |
52 |
|
53 |
diff --git a/dev-python/certifi/files/certifi-3021.3.16-setuptools.patch b/dev-python/certifi/files/certifi-3021.3.16-setuptools.patch |
54 |
new file mode 100644 |
55 |
index 000000000000..57154fd0eed9 |
56 |
--- /dev/null |
57 |
+++ b/dev-python/certifi/files/certifi-3021.3.16-setuptools.patch |
58 |
@@ -0,0 +1,21 @@ |
59 |
+https://github.com/tiran/certifi-system-store/pull/17 |
60 |
+https://bugs.gentoo.org/822777 |
61 |
+ |
62 |
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@g.o> |
63 |
+Date: Tue, 23 Nov 2021 15:56:33 +0100 |
64 |
+Subject: [PATCH] Add missing install_requires on setuptools |
65 |
+ |
66 |
+This package is using pkg_resources explicitly, it should therefore |
67 |
+declare an explicit dependency on setuptools. The missing dependency |
68 |
+has lead me to actually miss the runtime dependency which caused issues |
69 |
+for Gentoo users for whom setuptools were cleaned. |
70 |
+--- a/setup.cfg |
71 |
++++ b/setup.cfg |
72 |
+@@ -40,6 +40,7 @@ zip_safe = True |
73 |
+ setup_requires = setuptools |
74 |
+ # hack to prevent installation on unsupported platforms Windows and macOS |
75 |
+ install_requires = |
76 |
++ setuptools |
77 |
+ certifi-system-store > 4000; sys_platform == "win32" or sys_platform == "darwin" |
78 |
+ python_requires = >=3.6 |
79 |
+ |