public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/certifi/, dev-python/certifi/files/
Date: Tue, 21 Dec 2021 02:14:48 +0000 (UTC)	[thread overview]
Message-ID: <1640052881.ee35be1dc88fca67d3845bf583d886912ca9bb73.sam@gentoo> (raw)

commit:     ee35be1dc88fca67d3845bf583d886912ca9bb73
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 21 02:13:40 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Dec 21 02:14:41 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee35be1d

dev-python/certifi: needs setuptools at runtime

Bug: https://github.com/tiran/certifi-system-store/pull/17
Closes: https://bugs.gentoo.org/822777
Signed-off-by: Sam James <sam <AT> gentoo.org>

 ...3021.3.16.ebuild => certifi-3021.3.16-r1.ebuild} |  7 ++++++-
 .../files/certifi-3021.3.16-setuptools.patch        | 21 +++++++++++++++++++++
 2 files changed, 27 insertions(+), 1 deletion(-)

diff --git a/dev-python/certifi/certifi-3021.3.16.ebuild b/dev-python/certifi/certifi-3021.3.16-r1.ebuild
similarity index 93%
rename from dev-python/certifi/certifi-3021.3.16.ebuild
rename to dev-python/certifi/certifi-3021.3.16-r1.ebuild
index eedb8a3a3354..6019af2a84af 100644
--- a/dev-python/certifi/certifi-3021.3.16.ebuild
+++ b/dev-python/certifi/certifi-3021.3.16-r1.ebuild
@@ -5,6 +5,7 @@
 EAPI=7
 
 PYTHON_COMPAT=( python3_{8..10} pypy3 )
+DISTUTILS_USE_SETUPTOOLS=rdepend
 inherit distutils-r1
 
 MY_P=certifi-system-store-${PV}
@@ -23,13 +24,17 @@ KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 s
 
 RDEPEND="app-misc/ca-certificates"
 
-distutils_enable_tests --install pytest
+PATCHES=(
+	"${FILESDIR}"/${PN}-3021.3.16-setuptools.patch
+)
 
 EPYTEST_IGNORE=(
 	# requires Internet
 	tests/test_requests.py
 )
 
+distutils_enable_tests --install pytest
+
 src_prepare() {
 	sed -i -e "s^/etc^${EPREFIX}/etc^" src/certifi/core.py || die
 	distutils-r1_src_prepare

diff --git a/dev-python/certifi/files/certifi-3021.3.16-setuptools.patch b/dev-python/certifi/files/certifi-3021.3.16-setuptools.patch
new file mode 100644
index 000000000000..57154fd0eed9
--- /dev/null
+++ b/dev-python/certifi/files/certifi-3021.3.16-setuptools.patch
@@ -0,0 +1,21 @@
+https://github.com/tiran/certifi-system-store/pull/17
+https://bugs.gentoo.org/822777
+
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
+Date: Tue, 23 Nov 2021 15:56:33 +0100
+Subject: [PATCH] Add missing install_requires on setuptools
+
+This package is using pkg_resources explicitly, it should therefore
+declare an explicit dependency on setuptools.  The missing dependency
+has lead me to actually miss the runtime dependency which caused issues
+for Gentoo users for whom setuptools were cleaned.
+--- a/setup.cfg
++++ b/setup.cfg
+@@ -40,6 +40,7 @@ zip_safe = True
+ setup_requires = setuptools
+ # hack to prevent installation on unsupported platforms Windows and macOS
+ install_requires =
++    setuptools
+     certifi-system-store > 4000; sys_platform == "win32" or sys_platform == "darwin"
+ python_requires = >=3.6
+ 


             reply	other threads:[~2021-12-21  2:14 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-21  2:14 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-08-10  7:31 [gentoo-commits] repo/gentoo:master commit in: dev-python/certifi/, dev-python/certifi/files/ Michał Górny
2022-11-25  7:14 Sam James
2022-06-10  6:54 Michał Górny
2020-04-05 22:00 Sebastian Pipping
2019-08-14 23:04 Michał Górny
2018-04-23 15:32 Thomas Deutschmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1640052881.ee35be1dc88fca67d3845bf583d886912ca9bb73.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox