-
Notifications
You must be signed in to change notification settings - Fork 964
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
Add support for local version identifiers #7989
Comments
From PEP 440:
Are you looking for more granular environment markers or something to determine dependencies based on the target system's hardware capabilities? |
Thanks for feature request. Closing since PEP 440 explicitly states that local versions should not be used on upstream indices like PyPI. |
….org does not accept local version identifiers (see pypi/warehouse#7989 and https://github.com/python-versioneer/python-versioneer/blob/master/details.md#how-do-i-select-a-version-style)
…rg does not accept local version identifiers (see pypi/warehouse#7989 and https://github.com/python-versioneer/python-versioneer/blob/master/details.md#how-do-i-select-a-version-style)
….org does not accept local version identifiers (see pypi/warehouse#7989 and https://github.com/python-versioneer/python-versioneer/blob/master/details.md#how-do-i-select-a-version-style)
…rg does not accept local version identifiers (see pypi/warehouse#7989 and https://github.com/python-versioneer/python-versioneer/blob/master/details.md#how-do-i-select-a-version-style)
….org does not accept local version identifiers (see pypi/warehouse#7989 and https://github.com/python-versioneer/python-versioneer/blob/master/details.md#how-do-i-select-a-version-style)
…rg does not accept local version identifiers (see pypi/warehouse#7989 and https://github.com/python-versioneer/python-versioneer/blob/master/details.md#how-do-i-select-a-version-style)
….org does not accept local version identifiers (see pypi/warehouse#7989 and https://github.com/python-versioneer/python-versioneer/blob/master/details.md#how-do-i-select-a-version-style)
…rg does not accept local version identifiers (see pypi/warehouse#7989 and https://github.com/python-versioneer/python-versioneer/blob/master/details.md#how-do-i-select-a-version-style)
tl;dr: Add support for Local Version Identifiers (i.e.
pip install torch+cpu
orpoetry add package+windows
)What's the problem this feature will solve?
PyPi should support local version identifiers, so you could have something like
torch+cpu
in the same package astorch
, and directlypip install torch+cpu
orpoetry add torch+cpu
instead ofpip3 install torch==1.2.0+cpu torchvision==0.4.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
. I also see how this could work for packages that use different wheels for different OSs. I found a number of places this could be useful, including pytorch/pytorch#26340. Additionally, PEP #440 calls for use of local version identifiers, so it makes sense for PyPi to support them. Overall, this would simplify installation for a number of packages, and improve PyPi, especially in regard to how it works with package managers like PoetryDescribe the solution you'd like
Add support for Local Version Identifiers (i.e.
pip install torch+cpu
orpoetry add package+windows
)The text was updated successfully, but these errors were encountered: