Skip to content
Myr

Various packaging requirements for idna

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

authored by Cory Benfield · committed by Cory Benfield · parent 27812eb · Browse files · 4 files+11 added−1 removed
This commit

State

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

Diff stats

4 files+11 added−1 removed

  • tests:+1 added−0 removed
  • other:+10 added−1 removed

4 files+11 added−1 removed

modified:requests/packages/__init__.py+6 added
32 unmodified lines
33 from . import chardet34except ImportError:35 import chardet36 sys.modules['%s.chardet' % __name__] = chardet3738try:39 from . import idna40except ImportError:41 import idna42 sys.modules['%s.idna' % __name__] = idna
modified:requests/packages/README.rst+3 added-1 removed
1If you are planning to submit a pull request to requests with any changes in 1If you are planning to submit a pull request to requests with any changes in2this library do not go any further. These are independent libraries which we3vendor into requests. Any changes necessary to these libraries must be made in4them and submitted as separate pull requests to those libraries.56urllib3 pull requests go here: https://github.com/shazow/urllib378chardet pull requests go here: https://github.com/chardet/chardet910idna pull requests go here: https://github.com/kjd/idna1112See https://github.com/kennethreitz/requests/pull/1812#issuecomment-3085431613for the reasoning behind this.
modified:tests/test_requests.py+1 added
1882 unmodified lines
18831884def test_vendor_aliases():1885 from requests.packages import urllib31886 from requests.packages import chardet1887 from requests.packages import idna18881889 with pytest.raises(ImportError):1890 from requests.packages import webbrowser
modified:setup.py+1 added
35 unmodified lines
36packages = [37 'requests',38 'requests.packages',39 'requests.packages.chardet',40 'requests.packages.idna',41 'requests.packages.urllib3',42 'requests.packages.urllib3.packages',43 'requests.packages.urllib3.contrib',44 'requests.packages.urllib3.util',
55 unmodified lines