- fix certificate handling with certifi, add support for SUSE's
CA bundle (setuptools-certpath.patch, fixes boo#993968) - remove shebang lines, strip executable bit from README, to silence the easy rpmlint warnings OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-setuptools?expand=0&rev=100
This commit is contained in:
committed by
Git OBS Bridge
parent
217aaba231
commit
6a9d4d472f
21
setuptools-certpath.patch
Normal file
21
setuptools-certpath.patch
Normal file
@@ -0,0 +1,21 @@
|
||||
diff --git a/setuptools/ssl_support.py b/setuptools/ssl_support.py
|
||||
index f4ba8a9..1627263 100644
|
||||
--- a/setuptools/ssl_support.py
|
||||
+++ b/setuptools/ssl_support.py
|
||||
@@ -26,6 +26,7 @@ cert_paths = """
|
||||
/etc/ssl/cert.pem
|
||||
/System/Library/OpenSSL/certs/cert.pem
|
||||
/usr/local/share/certs/ca-root-nss.crt
|
||||
+/etc/ssl/ca-bundle.pem
|
||||
""".strip().split()
|
||||
|
||||
|
||||
@@ -242,6 +243,7 @@ def find_ca_bundle():
|
||||
if os.path.isfile(cert_path):
|
||||
return cert_path
|
||||
try:
|
||||
- return pkg_resources.resource_filename('certifi', 'cacert.pem')
|
||||
+ import certifi
|
||||
+ return certifi.where()
|
||||
except (ImportError, ResolutionError, ExtractionError):
|
||||
return None
|
||||
Reference in New Issue
Block a user