Commit Graph

156 Commits

Author SHA1 Message Date
Nate Prewitt 8bce583b95 Farewell, sweet Concorde!
Formally removing any remaining vestiges of Python 2 from Requests.
We'll also leave behind Python 3.6 while we're at it.
2022-03-25 10:50:33 -06:00
Nate Prewitt 17e6e27a93 General cleanup for 2.27.0 2021-12-29 16:29:09 -06:00
Nate Prewitt 248122a697 Add support for 3.10 (#5928) 2021-09-03 19:03:15 -07:00
Nate Prewitt f6c0619d89 Disable requests[security] and remove 3.5 support references 2021-07-09 12:40:55 -07:00
Naor Livne 33cf965f72 Allow idna 3.x to be installed on Python 3.x
Co-authored-by: Mickaël Schoentgen <contact@tiger-222.fr>
Co-authored-by: Seth Michael Larson <sethmichaellarson@gmail.com>
2021-07-07 08:25:20 -05:00
Ash Berlin-Taylor 2ed84f55b2 Switch LGPL'd chardet for MIT licensed charset_normalizer (#5797)
Although using the (non-vendored) chardet library is fine for requests
itself, but using a LGPL dependency the story is a lot less clear
for downstream projects, particularly ones that might like to bundle
requests (and thus chardet) in to a single binary -- think something
similar to what docker-compose is doing. By including an LGPL'd module
it is no longer clear if the resulting artefact must also be LGPL'd.

By changing out this dependency for one under MIT we remove all
license ambiguity.

As an "escape hatch" I have made the code so that it will use chardet
first if it is installed, but we no longer depend upon it directly,
although there is a new extra added, `requests[lgpl]`. This should
minimize the impact to users, and give them an escape hatch if
charset_normalizer turns out to be not as good. (In my non-exhaustive
tests it detects the same encoding as chartdet in every case I threw at
it)

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
2021-07-06 18:55:02 -05:00
Hans96 2c2138e811 Update setup.py (#5780)
Removed `import re` as unnecessary import
2021-03-19 17:09:29 -05:00
Dan Blanchard 516f84f490 Upgrade to chardet 4.x 2020-12-11 10:31:38 -05:00
Nate Prewitt 03957eb1c2 v2.25.0 2020-11-11 11:55:50 -08:00
Ae-Mc 333fa8d3f2 Remove reading HISTORY.md in setup.py 2020-09-29 10:36:31 -05:00
Chris Withers c46f55bd48 Limit dependencies to major instead of minor (#5342) 2020-02-18 08:58:27 -06:00
Sorin Sbarnea d2590ee46c Change documentation website to requests.readthedocs.io (#5236)
Fixes: #5212
2019-10-24 20:02:55 -07:00
Nate Prewitt e08981ee46 updating project url 2019-09-19 07:52:28 -07:00
kennethreitz bc81ee3af4 Update setup.py 2019-08-20 01:01:06 -04:00
kennethreitz 8086ffdbbf Merge pull request #4999 from greysteil/add-project-urls
Add project URLs with links to source code and docs
2019-08-20 00:21:31 -04:00
Miro Hrončok dc75b3ca0b Support pytest 4
Fixes https://github.com/kennethreitz/requests/issues/5048

See https://docs.pytest.org/en/latest/deprecations.html#marks-in-pytest-mark-parametrize
2019-05-24 00:02:43 +02:00
Nate Prewitt aeda65bbe5 v2.22.0 2019-05-15 12:51:39 -07:00
Nate Prewitt 68e581f1b5 drop 3.4 support 2019-05-15 12:51:31 -07:00
Grey Baker 7d7d9ebacf Add project URLs with links to source code and docs 2019-02-23 13:24:52 +00:00
Alex Gaynor 8761e9736f Bumped maximum version of idna 2018-12-09 21:41:14 -08:00
Nate Prewitt bd840450c0 v2.20.0 2018-10-17 22:32:22 -07:00
Nate Prewitt 7fd9267b3b remove final remnants from 2.6 2018-10-17 00:18:51 -07:00
kennethreitz eea96f94d9 Update setup.py 2018-09-17 06:05:03 -04:00
juozasget b9dfc95cf2 Tuple test_requirements was too long, PEP8
Broken a long line into multiple lines inside tuple parenthesis.
2018-09-15 13:26:59 +03:00
Nate Prewitt 489f58ced5 represent classifiers as list instead of tuple 2018-08-06 23:04:50 -07:00
Eric Brown 6686ac1730 Add official Python 3.7 support (#4717)
* Add official Python 3.7 support

Python 3.7 was just released [1]. This is a small change to
enable support in requests.

Signed-off-by: Eric Brown <browne@vmware.com>
2018-07-24 07:44:37 -07:00
Nate Prewitt 991e8b76b7 v2.19.0
* Updated HISTORY.rst.
* Moved version pin for idna to allow recent 2.7 release.
* Updated version warning for urllib3 to allow 1.23.
* Updated metadata dunders in __version__.py.
* Removed Python 2.6 trove classifier.
* Removed Python 2.6 reference from README.rst.
2018-06-12 07:38:10 -07:00
Nate Prewitt de64f0f23f port pyopenssl fix from urllib3 2018-06-10 14:49:13 -07:00
Michael ac944b7439 Allow urllib3 1.23
https://github.com/urllib3/urllib3/blob/1.23/CHANGES.rst#123-2018-06-04
2018-06-05 12:06:03 +00:00
Pradyun Gedam 048c926b46 README is in ReST 2018-05-07 00:23:38 +05:30
Pradyun Gedam 5f306dbe99 Add long_description_content_type to setup.py
See:
- https://packaging.python.org/guides/making-a-pypi-friendly-readme/
- https://pypi.org/p/requests/
2018-05-04 16:43:25 +05:30
Jon Dufresne 7cefa939f5 Pass python_requires argument to setuptools
Helps pip decide what version of the library to install.

https://packaging.python.org/tutorials/distributing-packages/#python-requires

> If your project only runs on certain Python versions, setting the
> python_requires argument to the appropriate PEP 440 version specifier
> string will prevent pip from installing the project on other Python
> versions.

https://setuptools.readthedocs.io/en/latest/setuptools.html#new-and-changed-setup-keywords

> python_requires
>
> A string corresponding to a version specifier (as defined in PEP 440)
> for the Python version, used to specify the Requires-Python defined in
> PEP 345.
2018-01-12 16:39:10 -08:00
Jon Dufresne c14bd018ad Add missing trove classifier to document Python2 support 2017-10-15 19:48:10 -07:00
kennethreitz 96b9a3f0fc Update setup.py 2017-08-28 12:25:26 -04:00
Cory Benfield 0a2dc74ecb Drop Python 3.3 support 2017-08-09 19:03:04 +01:00
Cory Benfield f4ddf00c36 Allow IDNA 2.6 2017-08-08 13:32:15 +01:00
Cory Benfield 8d1228cd19 Allow urllib3 1.22 2017-07-20 10:08:50 +01:00
Jacob Mansfield 98bbf8d170 Catch error if multiprocessing is not available or is unable to determine the number of CPUs 2017-05-30 13:47:55 +01:00
kennethreitz e6e3589c36 number of cores for travis 2017-05-28 12:14:27 -04:00
kennethreitz 679d368e3e setup.py improvements 2017-05-27 23:27:38 -04:00
kennethreitz 68fda6bcf2 see if that fixes things 2017-05-27 23:07:24 -04:00
kennethreitz cd4c701186 xdist 2017-05-27 19:57:40 -04:00
kennethreitz 03e5f5daf3 socks needed for tests 2017-05-27 19:16:16 -04:00
kennethreitz a44284c045 cleanup version.py 2017-05-27 12:41:11 -04:00
kennethreitz 28666e5d3a vastly simpify making packages available for backwards compatibility 2017-05-27 10:49:57 -04:00
kennethreitz ecaa10543f fix setup.py 2017-05-27 10:33:10 -04:00
kennethreitz 908c3b01ee restore packages to setup.py 2017-05-27 10:32:56 -04:00
kennethreitz 628633143d require certifi 2017-05-26 22:46:46 -04:00
kennethreitz 1ea27b3564 add install_requires 2017-05-26 22:44:56 -04:00
kennethreitz 0aee483497 fix setup.py 2017-05-26 21:43:03 -04:00