-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Requires-Python information not uploaded to PyPI? #4936
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
Comments
Thank you for advice. Actually, we added |
@tk0miya I think it's actually still important to go back and make Another reason is that right now what's happening is that I believe that |
In fact, we have Currently, we have no plan to re-upload past versions. So please set the environment marker on the user side and control it. |
Seems like it would be incredibly easy to upload a post version of your library with the metadata, and would serve as good practice for how to do so in future. Presumably you will waste more time dealing with subsequent reports about this kind of thing than the marginal cost of cutting a post release with the right metadata. If you prefer to leave your packages in a broken state that's fine I suppose. |
|
Problem
Although Sphinx has added
requires_python
into itssetup()
function, I believe the current versions up there now were uploaded using an old version oftwine
or built with an old version ofsetuptools
, because theRequires-Python
metadata does not seem to be present.I am erroneously installing Sphinx on Python 3.3 for this project, and it is causing a failure because it is downloading an unsupported version.
If you compare python-dateutil to sphinx on PyPI, you'll see that Sphinx is missing the "Requires: Python >=2.7, !=3.0., !=3.1., !=3.2., !=3.3." text below the list of maintainers.
Solution
I think the solution here is to issue new releases for all affected versions (possibly
post
releases), going back to the last one that supports Python 3.3, using an upgraded version oftwine
andsetuptools
. Simply issuing a single new release with this problem fixed will not solve the problem, becausepip
will choose the most recent version that doesn't explicitly exclude Python 3.3 in the metadata and download that - which means all the existing releases won't be excluded.Word of Warning:
You cannot re-publish a module you un-publish, so I recommend uploading post releases for the affected versions and test that with
pip >= 8.0
on Python 3.3. Ifpip
still ends up picking up the non-post
releases, you may have to un-publish the non-post
versions, assuming that still matches exact strings likeSphinx==1.7.3
.The text was updated successfully, but these errors were encountered: