* Officially added support for Python 3.10. (#5928)
* Added a `requests.exceptions.JSONDecodeError` to unify JSON exceptions between
Python 2 and 3. This gets raised in the `response.json()` method, and is
backwards compatible as it inherits from previously thrown exceptions.
Can be caught from `requests.exceptions.RequestException` as well. (#5856)
* Improved error text for misnamed `InvalidSchema` and `MissingSchema`
exceptions. This is a temporary fix until exceptions can be renamed
(Schema->Scheme). (#6017)
* Improved proxy parsing for proxy URLs missing a scheme. This will address
recent changes to `urlparse` in Python 3.9+. (#5917)
* Fixed defect in `extract_zipped_paths` which could result in an infinite loop
for some paths. (#5851)
* Fixed handling for `AttributeError` when calculating length of files obtained
by `Tarfile.extractfile()`. (#5239)
* Fixed urllib3 exception leak, wrapping `urllib3.exceptions.InvalidHeader` with
`requests.exceptions.InvalidHeader`. (#5914)
* Fixed bug where two Host headers were sent for chunked requests. (#5391)
* Fixed regression in Requests 2.26.0 where `Proxy-Authorization` was
incorrectly stripped from all requests sent with `Session.send`. (#5924)
* Fixed performance regression in 2.26.0 for hosts with a large number of
proxies available in the environment. (#5924)
* Fixed idna exception leak, wrapping `UnicodeError` with
`requests.exceptions.InvalidURL` for URLs with a leading dot (.) in the
domain. (#5414)
* Requests support for Python 2.7 and 3.6 will be ending in 2022. While we
don't have exact dates, Requests 2.27.x is likely to be the last release
series providing support.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests?expand=0&rev=156
- `Session.send` now correctly resolves proxy configurations from both
the Session and Request. Behavior now matches `Session.request`. (#5681)
- Fixed a race condition in zip extraction when using Requests in parallel
from zip archive. (#5707)
- Instead of `chardet`, use the MIT-licensed `charset_normalizer` for Python3
to remove license ambiguity for projects bundling requests.
- Requests now supports `idna` 3.x on Python 3. `idna` 2.x will continue to
be used on Python 2 installations. (#5711)
- The `requests[security]` extra has been converted to a no-op install.
PyOpenSSL is no longer the recommended secure option for Requests. (#5867)
- Requests has officially dropped support for Python 3.5. (#5867)
- drop 5711.patch: upstream
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests?expand=0&rev=154
- remove patch pr_5251-pytest5.patch, not needed anymore.
- update to version 2.24.0:
- pyOpenSSL TLS implementation is now only used if Python
either doesn't have an `ssl` module or doesn't support
SNI. Previously pyOpenSSL was unconditionally used if available.
This applies even if pyOpenSSL is installed via the
`requests[security]` extra (#5443)
- Redirect resolution should now only occur when
`allow_redirects` is True. (#5492)
- No longer perform unnecessary Content-Length calculation for
requests that won't use it. (#5496)
OBS-URL: https://build.opensuse.org/request/show/822499
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests?expand=0&rev=142
- restored Name section that got messed up by spec-cleaner
- specfile:
* remove devel for noarch
* remove restriction for urllib3 < 1.24
* HISTORY and README changed from .rst to .md
- update to version 2.20.0:
* Bugfixes
+ Content-Type header parsing is now case-insensitive
(e.g. charset=utf8 v Charset=utf8).
+ Fixed exception leak where certain redirect urls would raise
uncaught urllib3 exceptions.
+ Requests removes Authorization header from requests redirected
from https to http on the same hostname. (CVE-2018-18074)
+ should_bypass_proxies now handles URIs without hostnames
(e.g. files).
* Dependencies
+ Requests now supports urllib3 v1.24.
* Deprecations
+ Requests has officially stopped support for Python 2.6.
OBS-URL: https://build.opensuse.org/request/show/645391
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests?expand=0&rev=112
- make multibuild package to resolve circular deps on tests
- make multibuild package to resolve circular deps on tests
- update to version 2.19.1:
* Fixed issue where status_codes.py’s init function failed trying
to append to a __doc__ value of None.
- update to version 2.19.0:
* Improvements
+ Warn about possible slowdown with cryptography version < 1.3.4
+ Check host in proxy URL, before forwarding request to adapter.
+ Maintain fragments properly across redirects. (RFC7231 7.1.2)
+ Removed use of cgi module to expedite library load time.
+ Added support for SHA-256 and SHA-512 digest auth algorithms.
+ Minor performance improvement to Request.content.
+ Migrate to using collections.abc for 3.7 compatibility.
* Bugfixes
+ Parsing empty Link headers with parse_header_links() no longer
return one bogus entry.
+ Fixed issue where loading the default certificate bundle from
a zip archive would raise an IOError.
+ Fixed issue with unexpected ImportError on windows system
which do not support winreg module.
+ DNS resolution in proxy bypass no longer includes the username
and password in the request. This also fixes the issue of DNS
queries failing on macOS.
+ Properly normalize adapter prefixes for url comparison.
+ Passing None as a file pointer to the files param no longer
raises an exception.
OBS-URL: https://build.opensuse.org/request/show/623059
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests?expand=0&rev=109
- update to version 2.19.1:
* Fixed issue where status_codes.py’s init function failed trying
to append to a __doc__ value of None.
- update to version 2.19.0:
* Improvements
+ Warn about possible slowdown with cryptography version < 1.3.4
+ Check host in proxy URL, before forwarding request to adapter.
+ Maintain fragments properly across redirects. (RFC7231 7.1.2)
+ Removed use of cgi module to expedite library load time.
+ Added support for SHA-256 and SHA-512 digest auth algorithms.
+ Minor performance improvement to Request.content.
+ Migrate to using collections.abc for 3.7 compatibility.
* Bugfixes
+ Parsing empty Link headers with parse_header_links() no longer
return one bogus entry.
+ Fixed issue where loading the default certificate bundle from
a zip archive would raise an IOError.
+ Fixed issue with unexpected ImportError on windows system
which do not support winreg module.
+ DNS resolution in proxy bypass no longer includes the username
and password in the request. This also fixes the issue of DNS
queries failing on macOS.
+ Properly normalize adapter prefixes for url comparison.
+ Passing None as a file pointer to the files param no longer
raises an exception.
+ Calling copy on a RequestsCookieJar will now preserve the
cookie policy correctly.
* We now support idna v2.7 and urllib3 v1.23.
- Properly set idna/urllib3 dependency versions, runtime and buildtime
- Spec cleanup, remove conditionals for ancient distro versions
- Remove duplicates with fdupes
OBS-URL: https://build.opensuse.org/request/show/620316
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests?expand=0&rev=108
update to version v2.18.1
* 2.17.1
* Fix a typo: verison -> version
* fix
* Prepare v2.18.0
* Update requirements.txt
* cleanup models.py
* Preserve identity of unbundled deps
* ignore undefined names in flake8
* flake8 ignore lambda expressions
* Add the pytest .cache/ directory to .gitignore
* docutils
* try junit
* new installation location
* cleanup utils.py
* flake8report.txt
* empty commit
* no more pipenv
* Begin dev section of README
* Remove exec permission from files that shouldn't have it
* change development philosophy docs to reflect reality
* fix manifest file
* only flake8 the right directory
* update development documentation
* Remove session redirect cache
* no piping to a file
* Catch error if multiprocessing is not available or is unable to determine the number of CPUs
* todo
* cleanup sessions.py
* typo
OBS-URL: https://build.opensuse.org/request/show/507789
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests?expand=0&rev=103
update to version v2.12.4
* Python 2 compatibility
* adding tests for super_len conditional flow
* Check in updated idna.
* Test case for requests getting stuck on post redirect with seekable stream
* v2.12.2
* added new test, original test restored
* Make Response.content return None if raw is None
* adding unicode_is_ascii utility function
* Update sidebarlogo.html
* Fixed another scheme proxy over "all" priority
* Add changelog for 1.19.1
* changed behavior of basic-http-auth test
* correct backtick formatting
* Note @jeremycline is now our contact.
* Order of type check
* Add prepared request pickling tests
* adding comment
* Add deprecation warnings for 3.0
* clarify that the `chunk_size` is optional when streaming to a file
* adding ISO-8859-1 fallback for reason decoding
* fixed some error
* pysocks 1.5.7 blacklisting, due to IPv6 problems
* Fix tests for new urllib3 exception text.
* make add_dict_to_cookiejar cookielib.CookieJar compatible
* correct module for cookiejar_from_dict in docs
* converting update call to merge_cookies call for cookielib compatibility
* streaming doc clarification
* removing redundant logic from prepare_content_length
* Update certifi certs to 2016.09.26
OBS-URL: https://build.opensuse.org/request/show/447958
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests?expand=0&rev=94
update to version v2.11.1
* Update urllib3 to 1.16
* Close and then release the connection
* Added tests for should_bypass_proxies function
* Update documentation of Session.max_redirects
* Document bunch of return types
* Update HISTORY.rst
* Cleaning up comment on JSON encoding to be more strictly relevant.
* Oh yeah, we updated urllib3 too.
* Fixing test; it was accomplishing the right thing, but doing it in the wrong way.
* compensate for lack of taste
* Use xfail marker for a test expected to fail without Internet connection
* in python3.x not have StringIO
* Spelling fixes
* adding in slice_length fix and test for chunk_size=None (#3370)
* Support responses like `HTTP/1.1 404 Unicode chars` (#3385)
* Document header ordering. (#3295)
* Add section on SOCKS proxies.
* Update list of supported Python versions in todo.rst
* removing Content-Type and Transfer-Encoding headers on redirect
* check and test for headers containing return characters or leading whitespace
* Clarify Python versions supported by requests
* Allow graceful interruption of testserver.Server
* reverting 3362
* fixed date formatting
* Make BaseAdapter describe the mandatory adapter interface (#3216)
* Note how HTTPErrors are raised
* Removing charset from JSON content type; tightening requirements on .encode()
* Add 'all' proxy selection to select_proxy
* Fix TypeError when get json-encoded content of a response
OBS-URL: https://build.opensuse.org/request/show/424147
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests?expand=0&rev=93