-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DEP: Add 'python_requires' to setup.py to drop 3.4 support #20698
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
setup.py
Outdated
@@ -748,4 +748,5 @@ def pxd(name): | |||
long_description=LONG_DESCRIPTION, | |||
classifiers=CLASSIFIERS, | |||
platforms='any', | |||
python_requires='>2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm, there has to be a better way to write this, to signify only 2.7 or >=3.5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was following numpy (https://github.com/numpy/numpy/blob/master/setup.py#L368) and the link I mentioned.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree that it should be simpler but wasn't sure what conditionals were allowed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I do notice a big mistake. It should be >=2.7
not >2.7
. Researching to see if there is a shorter way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In [15]: from pip.utils.packaging import specifiers, version
In [16]: version.parse('3.5.0') in specifiers.SpecifierSet('==2.7,>=3.5.*')
Out[16]: False
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can do >=3.5
?
Codecov Report
@@ Coverage Diff @@
## master #20698 +/- ##
==========================================
+ Coverage 91.81% 91.81% +<.01%
==========================================
Files 153 153
Lines 49275 49279 +4
==========================================
+ Hits 45241 45245 +4
Misses 4034 4034
Continue to review full report at Codecov.
|
Moving the discussion outside of the commits in case more changes are done. Simple test for a simpler
|
I read the source for I guess you'll just have to drop python 2.7 sooner /s Source: https://github.com/pypa/pip/blob/master/src/pip/_vendor/packaging/specifiers.py#L180 |
@davidh-ssec ok this looks ok. can you change our min for setuptools to 24.2.0, see here (which is pretty old anyhow). and update the Dependencies in install.rst & in the whatsnew. |
@jreback You want the setuptools version in |
Oh you meant set the min version in install.rst and update the deps in the 0.23 whatsnew. For the deps do you want it added to the min version table of deps? |
yes + in
(just update these) |
thanks @davidh-ssec |
We’re hoping to do a release in about 1 week.
…________________________________
From: Jeff Reback <[email protected]>
Sent: Monday, April 16, 2018 5:34:51 AM
To: pandas-dev/pandas
Cc: Tom Augspurger; Mention
Subject: Re: [pandas-dev/pandas] DEP: Add 'python_requires' to setup.py to drop 3.4 support (#20698)
thanks @davidh-ssec<https://github.com/davidh-ssec>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#20698 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ABQHIhVLiRg70pbG07q8GryTC7zmZ2vYks5tpHPLgaJpZM4TVRcb>.
|
Should we remove our |
git diff upstream/master -u -- "*.py" | flake8 --diff
This is a small change to the setup.py that should stop newer versions of pandas from being downloaded in environments with older/unsupported versions of python. I followed the instructions here: https://packaging.python.org/guides/dropping-older-python-versions/