-
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
Support Python checks defined by a pyproject.toml
file
#11233
Conversation
c62b78b
to
01c78dc
Compare
datadog_checks_dev/setup.py
Outdated
'toml>=0.9.4, <1.0.0', | ||
'tomli>=2.0.0', | ||
'tomli-w>=1.0.0', |
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.
In a future PR we'll remove toml
, hukkin/tomli#141
# sort, and prevent backslash escapes since strings are written using double quotes | ||
dependencies[:] = sorted(str(dependency).replace('"', "'") for dependency in dependencies) |
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.
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.
love it!
The |
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.
Looks great and works well! I left a few nits
Co-authored-by: Sarah Witt <sarah.witt@datadoghq.com>
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 did some more testing and it looks good! Maybe one more thing we can do before migrating is update the package validation to validate more fields such as [tool.hatch.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.
🎉
* Support Python checks defined by a `pyproject.toml` file * Apply suggestions from code review Co-authored-by: Sarah Witt <sarah.witt@datadoghq.com> * address Co-authored-by: Sarah Witt <sarah.witt@datadoghq.com> 0263d56
Motivation
First step toward removing
setup.py
Additional Notes
Can be tested with
postgres
on https://github.com/DataDog/integrations-core/tree/ofek/build-test