Skip to content

Require requests >= 2.26.0 as part of install_requires when running on Python >= 3.6#1619

Merged
Kami merged 16 commits intoapache:trunkfrom
Kami:requests_changes
Oct 26, 2021
Merged

Require requests >= 2.26.0 as part of install_requires when running on Python >= 3.6#1619
Kami merged 16 commits intoapache:trunkfrom
Kami:requests_changes

Conversation

@Kami
Copy link
Member

@Kami Kami commented Oct 24, 2021

This pull request aims to resolve #1594 (at least partially).

Since we still support Python 3.5, we require older version of requests when running under Python 3.6 since the latest version of requests doesn't support Python 3.5 anymore.

In addition to that, I updated CI job to also run all the dist install checks there - I thought we already did that on CI, probably got lost when moving from Travis to Github Actions or similar.

Kami added 2 commits October 24, 2021 23:03
install_requires in setup.py to 2.26.0 when running under Python >= 3.6.

This was done to avoid potential licensing issue with transitive
dependency of the requests library (chardet).

NOTE: Since requests 2.26.0 dropped support for Python 3.5 which we
still stupport, requests >= 2.25.1 is required when running under Python
3.5.

Thanks to Jarek Potiuk - @potiuk for reporting this issue.

Resolves apache#1594.
@codecov-commenter
Copy link

codecov-commenter commented Oct 24, 2021

Codecov Report

Merging #1619 (7ed2b02) into trunk (5800c7c) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##            trunk    #1619      +/-   ##
==========================================
- Coverage   83.02%   83.02%   -0.01%     
==========================================
  Files         394      394              
  Lines       85305    85309       +4     
  Branches     9073     9074       +1     
==========================================
+ Hits        70827    70828       +1     
- Misses      11392    11395       +3     
  Partials     3086     3086              
Impacted Files Coverage Δ
libcloud/common/openstack_identity.py 78.75% <100.00%> (ø)
libcloud/test/dns/test_base.py 97.01% <100.00%> (ø)
libcloud/__init__.py 65.78% <0.00%> (-4.80%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5800c7c...7ed2b02. Read the comment docs.

@Kami Kami force-pushed the requests_changes branch from 8cf26d9 to e614d59 Compare October 26, 2021 12:40
installed from pip using all the supported versions.
@Kami Kami force-pushed the requests_changes branch from e614d59 to 71f4f1f Compare October 26, 2021 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate to the next version of Python requests when released

2 participants