Skip to content

Pip install error when version metadata differs from that is in pypi #9260

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

Closed
K377U opened this issue Dec 11, 2020 · 1 comment
Closed

Pip install error when version metadata differs from that is in pypi #9260

K377U opened this issue Dec 11, 2020 · 1 comment

Comments

@K377U
Copy link

K377U commented Dec 11, 2020

What did you want to do?

We use git as backend for our pypi server. We set version number in the python package and then read it and put it as tag in git. We then list all tags as versions in the pypi server.

We also include master as -dev0. This is where we have problem with the new resolver.

(Pip version 20.3.1)

When doing

 pip install --pre

we get error

`ERROR: Requested * from git+ssh://*-4.202012101143.dev0 has different version in metadata: '4.202012101143'`

Error is clear but the solution is not. I would prefer not to change anything in the git side. My process is to validate that the package is ok and then tag it to make a release.

Would it be possible either:

Allow different version metadata as long as it is with pre release.

OR

Add some hook to skip this.

@uranusjr
Copy link
Member

Duplicate to #9203.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants