-
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
Package update not found when name contains .
#15782
Comments
There are some packages on pypi.org that still have From the spec linked above:
|
Would it be better to change the check to a regex, or to compare against two different wheelPrefix values (eg. The check against two different prefix values seems simpler to me, if I'm not missing any special cases? I can attempt a PR on this if you think that is a good way to go. |
detect when a period in the package name has been replaced with underscore in the wheel filename, following the packaging spec fixes: renovatebot#15782
🎉 This issue has been resolved in version 32.89.2 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
How are you running Renovate?
Self-hosted
If you're self-hosting Renovate, tell us what version of Renovate you run.
renovate/renovate:32.68.1-slim
Please select which platform you are using if self-hosting.
Bitbucket Server
If you're self-hosting Renovate, tell us what version of the platform you run.
7.21.1
Was this something which used to work for you, and then stopped?
I never saw this working
Describe the bug
Renovate is not finding any python package updates where the package name contains
.
but the wheel .whl filename has the.
replaced with_
.The relevant spec: https://packaging.python.org/specifications/binary-distribution-format/#escaping-and-unicode
I have a python PEP420 namespace package with the name
testing.test-namespace-package
and I can upload it successfully to our internal private Nexus repository.If I follow the URL that renovate is looking at on our Nexus instance, I get these filenames:
Looking at
renovate/lib/modules/datasource/pypi/index.ts
Line 170 in 13d0255
extractVersionFromLinkText
is correctly replacing-
with_
but is not replacing the.
with_
in the filename as per the packaging spec.Reproduction repository: https://github.com/wwuck/renovate-pep420-namespace-package
This repository is an example PEP420 namespace package that contains
.
in the package name but when built into a .whl file the.
are replaced with_
in the filename.There is currently a bug on pypi.org warehouse software that prevents uploading of packages in this format, but we are using them successfully with our internal private Nexus repository, so I can't link to any test package on https://test.pypi.org for this bug.
pypi/warehouse#10072
pypa/flit#442
pypa/flit#473
Relevant debug logs
Logs
Have you created a minimal reproduction repository?
I have linked to a minimal reproduction repository in the bug description
The text was updated successfully, but these errors were encountered: