Set Explicit requirement for Python>=3.7#103
Merged
Tinche merged 2 commits intopython-attrs:masterfrom Oct 30, 2020
kaxil:set-strict-req
Merged
Set Explicit requirement for Python>=3.7#103Tinche merged 2 commits intopython-attrs:masterfrom kaxil:set-strict-req
Tinche merged 2 commits intopython-attrs:masterfrom
kaxil:set-strict-req
Conversation
Contributor
Author
|
cc @Tinche |
Codecov Report
@@ Coverage Diff @@
## master #103 +/- ##
=======================================
Coverage 97.70% 97.70%
=======================================
Files 7 7
Lines 435 435
=======================================
Hits 425 425
Misses 10 10 Continue to review full report at Codecov.
|
Member
|
Thanks, let's get this applied! I will release this as 1.1.1 and delete 1.1.0. |
Member
|
Release 1.1.0 yanked! |
Contributor
Author
|
Thanks for the quick release @Tinche , I can confirm this works now root@283e9b83e39d:/# python --version
Python 3.6.12
root@283e9b83e39d:/# pip install 'cattrs==1.1.1'
ERROR: Could not find a version that satisfies the requirement cattrs==1.1.1 (from versions: 0.5.0, 0.6.0, 0.7.0, 0.8.0.dev0, 0.8.0, 0.8.1, 0.9.0, 0.9.2, 1.0.0rc0, 1.0.0, 1.1.0)
ERROR: No matching distribution found for cattrs==1.1.1
root@283e9b83e39d:/# pip install 'cattrs'
Collecting cattrs
Using cached cattrs-1.0.0-py2.py3-none-any.whl (14 kB)
Requirement already satisfied: attrs>=17.3 in /usr/local/lib/python3.6/site-packages (from cattrs) (20.2.0)
Installing collected packages: cattrs
Successfully installed cattrs-1.0.0 |
|
Nice @kaxil! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Check https://packaging.python.org/guides/dropping-older-python-versions/ for more details
The latest cattrs 1.1.0 removed support for Python 3.6 but it since most of the libraries like Airflow (I am the maintainer and PMC Member of the Airflow Project) have an open bound for cattrs in the dependency, new users trying to setup airflow breaks (Issue: apache/airflow#11965).
Setting an explicit
python_requiresmeans Python 3.6 users won't be able to download the new cattrs version and fallback to the older version that supports Python 3.6 and hence it will work without breaking Airflow too.Thanks for creating and maintaining this library, appreciate all your effort, hope this PR is useful