-
Notifications
You must be signed in to change notification settings - Fork 108
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
Add PEP-625 complaint changes #12233
base: master
Are you sure you want to change the base?
Conversation
Jenkins results:
|
Jenkins results:
|
Jenkins results:
|
Jenkins results:
|
Jenkins results:
|
After many iterations with GithubActions I concluded that even though we can modify our packages with underscores they will not be uploaded to PyPI properly, instead the underscores will be converted back to dashes. Here are details:
These changes instructed to GitHubAction to use
You may observed that it used
As you may observe above the
And, it can be reproduced easily using
Therefore, even though we modify our files, like
Moreover, I found that this GH action upload packages into Trusted repositories, see various sections in pypi docs here, are unique, i.e. if userA create repository RepoA such repo name can't be used by another user. This creates additional troubles of publishing packages under specific repositories if these repositories are already allocated by someone else in PyPi. For instance in Test PyPi repo we already have wmagent repo owned by Todor and cms-oc-dmwm user. And, because of that I (under my TestPyPi user name) can't upload packages over there. |
Oops, closed by wrong mouse click. Re-opening. |
Jenkins results:
|
Digging further I found that Python PEPs are inconsistent with each other:
This PEP references the concept of a “normalized” project name. As per PEP-426 the only valid characters in a name are the ASCII alphabet, ASCII numbers, ., -, and _. The name should be lowercased with all runs of the characters ., -, or _ replaced with a single - character. This can be implemented in Python with the re module:
as you can see from PEP-503 In other words the package name will be normalized to have dashes
The name of an sdist should be {distribution}-{version}.tar.gz.
And, it is suggested by Python Packaging User guide as following: In distribution names, any run of SummaryThe PEP-504 and PEP-426 suggests to use dashes, while PEP-625 does the opposite and suggests to use underscores. The current python code base implements PEP-503. |
hi @vkuznet just some info about:
We've abandoned the Test Pypi repository, because of missing or inconsistent (between test && prod repositories) packages versions for some of those wmcore depends on. Even though, I was keeping for awhile the option in all the virtual env scripts that allowed ne to chose from which Pypi index to deploy, but it is all in the history now. |
Fixes #12181
Status
In development
Description
Propagate PEP-625 complaint changes to WMCore repository. It includes changing all
-
with_
in files related to WMCore build workflows.Is it backward compatible (if not, which system it affects?)
MAYBE
Related PRs
External dependencies / deployment changes