-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
MAINT Vendors packaging/version.py for pep440 versioning #19826
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
Conversation
Thanks! How did you obtain that file? Keeping it in sync with upstream will be harder if it doesn't correspond to individual upstream files. Of are too many other things in packaging we don't want to include? |
The files were obtained through https://github.com/pypa/packaging/tree/main/packaging. We only need the I updated the PR to vendor the two files directly, so it would be easier to keep in sync. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! LGTM, assuming the CI passes (currently there are some CI failures).
The windows CI fails, probably because we do not properly install the new submodule when installing scikit-learn to site-packages:
|
I think we need a: config.add_subpackage('externals/_packaging') in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM as well assuming the packaging issues mentioned above is solved.
Do we want |
For On the other hand, I am slightly in favor of using the vendored version in |
All the tests have passed, but there's a cross sign on your commit, why? |
@adrinjalali Since I changed XREF: travis job results |
…n#19826) * MAINT Vendors packaging/version for pep440 versioning * ENH Uses folder structure of packaging * ENH Uses fixes parse_version * ENH Uses packaging name * MAINT Adds packaging * BLD Use vendored version [cd build]
Reference Issues/PRs
Closes #19102
Fixes #19098
What does this implement/fix? Explain your changes.
Vendors out
packaging/version.py
to use theirparse_version
. This is what scipy does as well.CC @rth