-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Outdated metadata after version bump for local package #3289
Comments
Would you mind finding the |
Sure!
|
PS: I should add that the metadata are correctly shown when I reset my venv in between. Following my gist: When I do |
There should be only one of those |
Both correctly say |
In the end it does not matter much what If you delete the superfluous |
Yes. This is equivalent to the effect of installing to a clean env, that I mentioned above. |
I didn't have much time to look into, but it seems there is code to remove the old |
@peldszus Looks to me like this piece of code would delete a pre-existing |
You're right, only the exact same version is removed, not older or newer ones. When initially looking at this code I got tricked by the I propose to rename this issue into: "Existing dist-info of different versions are not removed from site-packages for local build". |
I guess #2855 is related, is it? |
Looks like #3900 will fix this. |
Resolved by: #3900 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I am on the latest Poetry version.
I have searched the issues of this repo and believe that this is not a duplicate.
If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option).OS version and name: Ubuntu 18.04.1
Poetry version: 1.1.4
Python version: I tested this in the following python environments:
importlib_metadata
)Link of a Gist with the contents of your pyproject.toml file:
Issue
When I build and install my package, bump the version, then build and install again, the metadata of the package is not always showing the right version, but an older version number. It works for the first version bump, but fails for further.
I am not sure whether this is doe to the way poetry installs the package, or whether this is a bug in
importlib
.Step 1: Bump the version
Step 2: Build and install the package
Step 3: Check the metadata
This should be
0.1.2
, not0.1.1
.To reproduce this, please have a look at the gist.
The text was updated successfully, but these errors were encountered: