[1.1.0b2] Bumping version leaves orphaned dist-info in site-packages
See original GitHub issue-
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: elementary OS 5.1 Hera
-
Poetry version: 1.1.0b2
-
Link of a Gist with the contents of your pyproject.toml file: https://gist.github.com/MrGreenTea/992a1795471c00d727c02920d4288f16
Issue
When updating my packages version with poetry version
old dist-info directories are left in site-packages
.
This trips up pip
, importlib
and pkg_resources
for example when trying to find the packages information.
To reproduce:
(run with poetry config virtualenvs.in-project true
)
❯ poetry new example
❯ poetry install
❯ ls .venv/lib/python3.8/site-packages/example*.dist-info
.venv/lib/python3.8/site-packages/example-0.1.0.dist-info:
INSTALLER METADATA RECORD
❯ poetry version minor && poetry install
❯ ls .venv/lib/python3.8/site-packages/example*.dist-info
.venv/lib/python3.8/site-packages/example-0.1.0.dist-info:
INSTALLER METADATA RECORD
.venv/lib/python3.8/site-packages/example-0.2.0.dist-info:
INSTALLER METADATA RECORD
❯ poetry run pip show example
Name: example
Version: 0.2.0
Summary:
Home-page: None
Author: Jonas Bulik
Author-email: jonas@bulik.dev
License: None
Location: /tmp/example/.venv/lib/python3.8/site-packages
Requires:
Required-by:
❯ poetry version 0.1.0
❯ poetry run pip show example
Name: example
Version: 0.2.0
Summary:
Home-page: None
Author: Jonas Bulik
Author-email: jonas@bulik.dev
License: None
Location: /tmp/example/.venv/lib/python3.8/site-packages
Requires:
Required-by:
Issue Analytics
- State:
- Created 3 years ago
- Reactions:7
- Comments:14 (6 by maintainers)
Top Results From Across the Web
Important notes 1.x — Borg - Deduplicating Archiver 2.0.0b4 ...
This was due to a broken validator that considered all (even valid) item metadata as invalid. As they were considered invalid, borg discarded...
Read more >Changelog — Python 3.11.1 documentation
Paths are no longer encoded to UTF-8/strict to avoid encoding errors if it contains surrogate characters (bytes paths are decoded with the surrogateescape...
Read more >Read the Docs Documentation
Read the Docs simplifies software documentation by building, versioning, and hosting of your docs, automatically.
Read more >Changelog — PsychoPy v2022.2.4
Fixes: experiments using iohub were not running on MacOS standalone due to broken version of the gevent library. fixes to connection from Builder...
Read more >Untitled
upgrade package to newer version at request of author. ... libmikmod is not already installed - gzip info page (Bug #9035) - Update...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Oh, I misread the issue. Looks like there is a new issue in the lines not being updated during install. But this might not be related to the #3900 fix.
Also you will note that in
1.1.5
you will have seen;This is because the new venv does not have pip in it (#2826).
That is expected. Because of #3876. There are followup fixes for that in #3891 and #3900.