Commit Graph

26 Commits

Author SHA1 Message Date
Ian Stapleton Cordasco c0813a2d91 Use TLS settings in selecting connection pool
Previously, if someone made a request with `verify=False` then made a
request where they expected verification to be enabled to the same host,
they would potentially reuse a connection where TLS had not been
verified.

This fixes that issue.
2024-03-06 11:28:13 -06:00
Nate Prewitt 58cea7a728 Drop support for CPython 3.7 2024-02-20 15:37:46 -08:00
Nate Prewitt e9fa2e2da3 Add 3.12 classifier and tox configuration (#6503) 2023-08-13 12:56:18 -07:00
Bruno Alla 2745db131a Switch to Python 3.11 final on CI and add to tox file (#6325) 2023-01-06 11:32:31 -07:00
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 f6c0619d89 Disable requests[security] and remove 3.5 support references 2021-07-09 12:40:55 -07: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
Hugo 6e05165a29 Test on Python 3.8 beta 2019-09-26 15:06:29 -07:00
Mads Jensen 2e4329d153 Removed py34 from tox.ini. 2019-06-03 08:45:48 +02:00
kennethreitz 5e0ebc9b9f Merge pull request #4867 from jdufresne/extra
Simplify tox.ini
2018-11-13 07:52:06 -05:00
Jon Dufresne 779fd6e7f3 Add Python 3.7 to tox test matrix 2018-11-11 12:01:41 -08:00
Jon Dufresne af63554106 Simplify tox.ini
Tox installs the package to the virtualenv by default. PySocks is
already included in test_requirements. Don't need to install these
explicitly.
2018-11-11 11:54:25 -08:00
Nate Prewitt 7fd9267b3b remove final remnants from 2.6 2018-10-17 00:18:51 -07:00
Jon Dufresne 620a5391c3 Remove unsupported Python 3.3 from tox.ini
Python 3.3 is not a supported version so don't test it.
2018-01-10 18:37:22 -08:00
kennethreitz 1fa168eea4 tox.ini 2017-05-27 23:52:44 -04:00
kennethreitz 458cb64e3d cleanup tests from merge of #2991 2016-02-03 03:35:51 -05:00
Dmitry Dygalo 6c2942b198 Initial work 2016-02-02 13:24:05 +01:00
Kenneth Reitz efc267ce59 Remove deprecated tox configuration. 2011-10-13 22:20:23 -04:00
Kenneth Reitz 882b465968 tox fix 2011-06-23 05:15:09 -04:00
Kenneth Reitz bdf9f90c8a omnijson for tests 2011-06-21 17:59:24 -04:00
Kenneth Reitz bbd1e40bd5 no pypy default 2011-06-17 14:09:33 -04:00
Kenneth Reitz 0741448798 pypy binary moved 2011-05-22 12:14:50 -04:00
Kenneth Reitz a7c87edebe screw 2.4 2011-02-18 15:57:50 -05:00
Kenneth Reitz 7e20f32b02 pypy configuration 2011-02-18 04:41:42 -05:00
Kenneth Reitz d3911da653 tox update (usable now?) 2011-02-18 03:32:10 -05:00
Kenneth Reitz 7b6ed48a86 tox setup for 2.4-2.7 2011-02-17 19:38:40 -05:00