-
Notifications
You must be signed in to change notification settings - Fork 256
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
Broken dependency evaluation. Pip will not recognize installed prerelease versions #858
Comments
We are migrating to nodejs. |
How do you think we are not implementing the spec appropriately? Do you have a code sample or test case that you can share that points out how we are deviating from the spec? |
Sample code will be with you shortly |
|
Sorry, but that output doesn't cut down what the issue is clearly. Are you saying you have a I'm going to close this as a duplicate of #856 as I think your issue with upstream projects is similar. |
I am happy that you realise this is a bug. For us it was a showstopper. We have successfully migrated to nodejs. |
The problem I have is that dependency evaluation will not recognize prerelase versions. The relevant specification: https://packaging.python.org/en/latest/specifications/version-specifiers/#handling-of-pre-releases.
I tried to file this as a pip bug. But it got closed. See the bug report here: pypa/pip#13089
When developing a module the dependencies are specified in the pyproject.toml file. This file should specify the release version. You never want to specify prerelease versions (or postrelease for that matter). This is because the pyproject.toml is a source file which should be tested and if found correct should be sent further down the build pipeline unmodified. If you open the pyproject.toml file all tests are invalidated.
If I specify a dependency as
>=1.0
then1.0a1
should be an acceptable version if there is no1.0
available.If you accept this as a valid bug I will do my best to try to fix it without breaking anything else.The text was updated successfully, but these errors were encountered: