-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Use packaging instead of pkg_resources for parsing version #12560
Use packaging instead of pkg_resources for parsing version #12560
Conversation
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.
Isn't setuptools
already in build_system.requires
(line 4)?
@@ -37,6 +37,7 @@ deps = [ | |||
"securesystemslib[crypto,pynacl]==0.20.1", | |||
"tuf==0.17.0; python_version < '3.0'", | |||
"tuf==0.19.0; python_version > '3.0'", | |||
"setuptools", |
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.
Shouldn't we pin the version?
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.
I'm not sure if there should be pinned a specific version. What is the expected version range here?
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.
Yes, we should pin the version. The current latest version, for example.
Codecov Report
Flags with carried forward coverage won't be shown. Click here to find out more. |
That is a requirement for build system to build a package out of sources. This PR adds runtime dependency that needs to be installed when the integration is installed. |
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.
We should not be using that. Can you please switch to: https://packaging.pypa.io/en/latest/version.html
datadog-checks-downloader should use packaging to parse Python package versions.
d588fae
to
ae1721f
Compare
Thanks for suggestions. Adjusted to use packaging in the most recent version. |
datadog-checks-downloader should use packaging to parse Python package versions.
What does this PR do?
datadog-checks-downloader should use packaging to parse Python package versions.