Skip to content
Myr

Allow charset normalizer >=2 and <4 (#6261)

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

authored by deedy5 · committed by GitHub · parent 7104ad4 · Browse files · 3 files+4 added−4 removed
This commit

State

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

Diff stats

3 files+4 added−4 removed

  • other:+4 added−4 removed

3 files+4 added−4 removed

modified:requests/__init__.py+2 added-2 removed
78 unmodified lines
79 assert (3, 0, 2) <= (major, minor, patch) < (6, 0, 0)80 elif charset_normalizer_version:81 major, minor, patch = charset_normalizer_version.split(".")[:3]82 major, minor, patch = int(major), int(minor), int(patch)83 # charset_normalizer >= 2.0.0 < 3.0.084 assert (2, 0, 0) <= (major, minor, patch) < (3, 0, 0)83 # charset_normalizer >= 2.0.0 < 4.0.084 assert (2, 0, 0) <= (major, minor, patch) < (4, 0, 0)85 else:86 raise Exception("You need either charset_normalizer or chardet installed")8788
92 unmodified lines
modified:setup.cfg+1 added-1 removed
3 unmodified lines
4 socks5 use_chardet_on_py36requires-dist =7 certifi>=2017.4.178 charset_normalizer>=2,<38 charset_normalizer>=2,<49 idna>=2.5,<410 urllib3>=1.21.1,<1.271112[flake8]
5 unmodified lines
modified:setup.py+1 added-1 removed
57 unmodified lines
58 os.system("twine upload dist/*")59 sys.exit()6061requires = [62 "charset_normalizer>=2,<3",62 "charset_normalizer>=2,<4",63 "idna>=2.5,<4",64 "urllib3>=1.21.1,<1.27",65 "certifi>=2017.4.17",66]
66 unmodified lines