-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Use modern namespace packaging #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
Codecov ReportAll modified and coverable lines are covered by tests ✅
❌ Your project status has failed because the head coverage (51.56%) is below the target coverage (75.00%). You can increase the head coverage or adjust the target coverage. Additional details and impacted files
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
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.
Nice!
Review from iliakur is dismissed.
Related teams and files:
- agent-integrations
- datadog_checks_dev/datadog_checks/dev/tooling/templates/integration/check/{check_name}/datadog_checks/init.py
- datadog_checks_dev/datadog_checks/dev/tooling/templates/integration/check_only/{check_name}/datadog_checks/init.py
- datadog_checks_dev/datadog_checks/dev/tooling/templates/integration/jmx/{check_name}/datadog_checks/init.py
- datadog_checks_dev/datadog_checks/dev/tooling/templates/integration/logs/{check_name}/datadog_checks/init.py
* Use modern namespace packaging * update templates
Motivation
Now that we've dropped Python 2 we can use the modern approach: https://packaging.python.org/en/latest/guides/packaging-namespace-packages/#native-namespace-packages
Notes
I kept the
__init__.py
file fordatadog_checks_base
package because a very old version of our integrations had imports right underdatadog_checks
and they live there so we must support that, for now...