-
Notifications
You must be signed in to change notification settings - Fork 308
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
DistributionNotFound for typing-extensions with Python 3.10 #724
Comments
This line indicates quite clearly this is a bug in Further, if the bug is that something is comparing I'll leave this open in the event someone else runs into it, but it's not a bug in Twine |
The issue is with |
I was able to reproduce this building https://github.com/bhrutledge/example-pkg-bhrutledge using a venv created from
However, noting that
I haven't dug in further than that; it'd be nice to find out the specific commit/PR/release in setuptools where this was resolved. That said, I tend to agree that this is not an issue with Twine, though it does seem like not relying on |
A binary chop helped me discover that this was resolved in setuptools v49.0.0. The only thing that jumped out from the setuptools changelog was "Update vendored packaging in pkg_resources to 19.2" via pypa/setuptools#2180. Sure enough, the packaging changelog for v19.1 points to pypa/packaging#119 dealing w/ 2-digit versions, which was resolved by pypa/packaging#165. @williamjmorenor I think you can resolve this for your workflow by upgrading setuptools where you upgrade pip, i.e. I'm going to leave this open for now to see if anyone wants to offer additional thoughts/suggestions. For example, should we avoid using |
The fastest fix is to not verify dependencies via I think importlib-metadata provides a similar (and possibly faster) alternative to |
References: - pypa/twine#724 - python/importlib_metadata#271 -
With the merge of #728, I think this is resolved. Feel free to reopen if it's not. |
Your Environment
Thank you for taking the time to report an issue.
To more efficiently resolve this issue, we'd like to know some basic information about your system and setup.
Your operating system:
Fedora 32, Windows 10 and the lastes ubuntu version available in github actions
Version of python you are running:
3.10.0-alpha.3
How did you install twine? Did you use your operating system's package manager or pip or something else?
pip install twine
Version of twine you have installed (include complete output of):
twine-3.3.0-py3-none-any.whl
Which package repository are you targeting?
Pip
Running with python 3.10.0-alpha.3 i got:
Maybe it's comparing versions wrong and thinking '3.10' < '3.8'
The text was updated successfully, but these errors were encountered: