-
-
Notifications
You must be signed in to change notification settings - Fork 399
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
PDM fails to resolve on packages which have old versions with legacy version identifiers #1554
Comments
Yeah the new released |
Perhaps we can skip the packages with invalid version in |
Hmm... What if you run with |
@pradyunsg If I enable The ones during the The
The
|
Make sure you run commands with
-v
flag before pasting the output.Steps to reproduce
pip install pdm
pdm update -v
to update dependencies on a package that depends ongoogle-api-python-client
Actual behavior
PDM errors out with an inability to parse this legacy version specifier.
Expected behavior
PDM should be able to resolve the specified version, regardless of whether there is an older version that has an invalid version specifier.
Workaround
Pin the version of Packaging to 21.3, such as
pip install pdm packaging==21.3
.Further information
According to pypa/packaging#530, legacy version identifiers like this have been deprecated for some time, and were expected to produce warnings. Checking older CI logs, I see no such warnings from PDM, so we simply ran into this problem with no warning.
The text was updated successfully, but these errors were encountered: