-
Notifications
You must be signed in to change notification settings - Fork 107
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
Make PyPi packages compliant with PEP 625 #12181
Comments
From my understanding the steps which will be required to fix this issue are the following:
to
to
@amaltaro, am I missing something? |
Yes, I think you covered it well. In general, we have to cover this new convention in:
This can affect either manual or automatic mechanisms (e.g. GH pipelines). In addition, I don't know if this file is used: https://github.com/dmwm/WMCore/blob/master/tools/build_pypi_packages.sh#L17, if it is, then we need to update it as well. FYI @belforte @LinaresToine this might affect you as well |
thanks Alan. I think CRAB is not affected because we do not really use pypi but build our CRABServer on top of your docker image |
@amaltaro I found major issue with constrains on GH action and python package itself which will not allowed this transition. Full details of my investigation can be found in #12233 (comment) and #12233 (comment) Or, to avoid this mess we should abandon usage of dashes and underscores in python packages, e.g. use |
Impact of the new feature
WMCore in general
Is your feature request related to a problem? Please describe.
I just received the following email [1] reporting that some of our WMCore package names are not compliant with PEP 625, which will soon start being enforced by PyPi.
Describe the solution you'd like
From what I read, we need to replace
-
sign by_
in the package names, for all packages uploaded to PyPi (global-workqueue, reqmgr2ms-pileup, etc etc).Describe alternatives you've considered
No date was provided, but we better do it sooner than later.
Additional context
[1]
"""
This email is notifying you of an upcoming deprecation that we have determined may affect you as a result of your recent upload to 'reqmgr2ms-transferor'.
In the future, PyPI will require all newly uploaded source distribution filenames to comply with PEP 625. Any source distributions already uploaded will remain in place as-is and do not need to be updated.
Specifically, your recent upload of 'reqmgr2ms-transferor-2.3.8rc5.tar.gz' is incompatible with PEP 625 because it does not contain the normalized project name 'reqmgr2ms_transferor'.
In most cases, this can be resolved by upgrading the version of your build tooling to a later version that supports PEP 625 and produces compliant filenames.
"""
The text was updated successfully, but these errors were encountered: