chwrapper icon indicating copy to clipboard operation
chwrapper copied to clipboard

Bump requests from 2.8.1 to 2.20.0

Open dependabot[bot] opened this issue 6 years ago • 1 comments

Bumps requests from 2.8.1 to 2.20.0.

Changelog

Sourced from requests's changelog.

2.20.0 (2018-10-18)

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.

2.19.1 (2018-06-14)

Bugfixes

  • Fixed issue where status_codes.py's init function failed trying to append to a __doc__ value of None.

2.19.0 (2018-06-12)

Improvements

  • Warn user about possible slowdown when using cryptography version < 1.3.4
  • Check for invalid host in proxy URL, before forwarding request to adapter.
  • Fragments are now properly maintained 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.
... (truncated)
Commits
  • bd84045 v2.20.0
  • 7fd9267 remove final remnants from 2.6
  • 6ae8a21 Add myself to AUTHORS
  • 89ab030 Use comprehensions whenever possible
  • 2c6a842 Merge pull request #4827 from webmaven/patch-1
  • 30be889 CVE URLs update: www sub-subdomain no longer valid
  • a6cd380 Merge pull request #4765 from requests/encapsulate_urllib3_exc
  • bbdbcc8 wrap url parsing exceptions from urllib3's PoolManager
  • ff0c325 Merge pull request #4805 from jdufresne/https
  • b0ad249 Prefer https:// for URLs throughout project
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot ignore this [patch|minor|major] version will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

You can disable automated security fix PRs for this repo from the Security Alerts page.

dependabot[bot] avatar Oct 22 '19 23:10 dependabot[bot]

Coverage Status

Coverage remained the same at 100.0% when pulling 5369502758fba2b6444a2e1f3ecdaced3343efe7 on dependabot/pip/requests-2.20.0 into 50f9cb2f5264c59505e8cc4e45ee6dc5d5669134 on develop.

coveralls avatar Oct 22 '19 23:10 coveralls

This is needed i believe for python 3.10 support:

(venv) $ pip install chwrapper
Collecting chwrapper
  Using cached chwrapper-0.3.0.tar.gz (8.8 kB)
  Preparing metadata (setup.py) ... done
Collecting requests==2.8.1
  Using cached requests-2.8.1-py2.py3-none-any.whl (497 kB)
Using legacy 'setup.py install' for chwrapper, since package 'wheel' is not installed.
Installing collected packages: requests, chwrapper
  Running setup.py install for chwrapper ... done
Successfully installed chwrapper-0.3.0 requests-2.8.1
(venv) $ python -c "import chwrapper"
Traceback (most recent call last):
  File "/home/chgans/Projects/vintagetools.club/companies_house_uk/venv/lib/python3.10/site-packages/requests/packages/__init__.py", line 27, in <module>
    from . import urllib3
  File "/home/chgans/Projects/vintagetools.club/companies_house_uk/venv/lib/python3.10/site-packages/requests/packages/urllib3/__init__.py", line 10, in <module>
    from .connectionpool import (
  File "/home/chgans/Projects/vintagetools.club/companies_house_uk/venv/lib/python3.10/site-packages/requests/packages/urllib3/connectionpool.py", line 41, in <module>
    from .response import HTTPResponse
  File "/home/chgans/Projects/vintagetools.club/companies_house_uk/venv/lib/python3.10/site-packages/requests/packages/urllib3/response.py", line 6, in <module>
    from ._collections import HTTPHeaderDict
  File "/home/chgans/Projects/vintagetools.club/companies_house_uk/venv/lib/python3.10/site-packages/requests/packages/urllib3/_collections.py", line 1, in <module>
    from collections import Mapping, MutableMapping
ImportError: cannot import name 'Mapping' from 'collections' (/usr/lib/python3.10/collections/__init__.py)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/chgans/Projects/vintagetools.club/companies_house_uk/venv/lib/python3.10/site-packages/chwrapper/__init__.py", line 4, in <module>
    from chwrapper.services.base import Service
  File "/home/chgans/Projects/vintagetools.club/companies_house_uk/venv/lib/python3.10/site-packages/chwrapper/services/base.py", line 28, in <module>
    import requests
  File "/home/chgans/Projects/vintagetools.club/companies_house_uk/venv/lib/python3.10/site-packages/requests/__init__.py", line 58, in <module>
    from . import utils
  File "/home/chgans/Projects/vintagetools.club/companies_house_uk/venv/lib/python3.10/site-packages/requests/utils.py", line 26, in <module>
    from .compat import parse_http_list as _parse_list_header
  File "/home/chgans/Projects/vintagetools.club/companies_house_uk/venv/lib/python3.10/site-packages/requests/compat.py", line 7, in <module>
    from .packages import chardet
  File "/home/chgans/Projects/vintagetools.club/companies_house_uk/venv/lib/python3.10/site-packages/requests/packages/__init__.py", line 29, in <module>
    import urllib3
ModuleNotFoundError: No module named 'urllib3'

The first error (from collections import Mapping, MutableMapping) is due to python 3.10 See https://bobbyhadz.com/blog/python-importerror-cannot-import-name-mapping-from-collections

Might need an even newer requests dependency, latest in 2.31.1. Support for Python 3.10 was added in 2.27 release: https://github.com/psf/requests/issues/5925

chgans avatar May 30 '23 00:05 chgans

Superseded by #41.

dependabot[bot] avatar Jun 04 '23 08:06 dependabot[bot]