Skip to content
Myr

Auto-detect CA Cert path instead of requiring users to hack setup.py

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Also fixed nearby comments to wrap at 79 characters as per PEP8

authored by Michael Schurter · committed by Michael Schurter · parent b026def · Browse files · 1 file+8 added−5 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+8 added−5 removed

  • other:+8 added−5 removed

1 file+8 added−5 removed

modified:setup.py+8 added-5 removed
28 unmodified lines
29 'requests.packages.urllib3.packages.ssl_match_hostname',30 'requests.packages.urllib3.packages.mimetools_choose_boundary',31]3233# certifi is a Python package containing a CA certificate bundle for SSL verification.34# On certain supported platforms (e.g., Red Hat / Debian / FreeBSD), Requests can35# use the system CA bundle instead; see `requests.utils` for details.36# If your platform is supported, set `requires` to [] instead:37requires = ['certifi>=0.0.7']33requires = []3435# certifi is a Python package containing a CA certificate bundle for SSL36# verification. On certain supported platforms (e.g., Red Hat / Debian /37# FreeBSD), Requests can use the system CA bundle instead; see `requests.utils`38# for details.39if not requests.utils.get_os_ca_bundle_path():40 requires.append('certifi>=0.0.7')4142# chardet is used to optimally guess the encodings of pages that don't declare one.43# At this time, chardet is not a required dependency. However, it's sufficiently44# important that pip/setuptools should install it when it's unavailable.45if is_py3:
34 unmodified lines