DataDog / datadogpy

The Datadog Python library
https://datadoghq.com/
Other
609 stars 302 forks source link

Update package metadata #713

Closed ofek closed 2 years ago

ofek commented 2 years ago

What does this PR do?

This implements PEP 621, obviating the need for both setup.py and MANIFEST.in. Support has not landed in setuptools, so builds will now use hatchling. We also did this for all integrations: https://github.com/DataDog/integrations-core

This also drops support for EOL Python 3.x versions since hatchling and other build backends like setuptools have already done so. This will not break anything because pip only looks for version candidates that satisfy the requires-python field. Here are stats for the curious: https://pypistats.org/packages/datadog

Note that the setup.py file will be removed when we drop Python 2 since new-style editable installations require versions of pip that are Python 3-only. Basically, this is just for the py27 test tox environment.

ofek commented 2 years ago

CI just looks flaky https://pypi.org/project/tomli/#history

ofek commented 2 years ago

AZP has old PyPy 3.6

skarimo commented 2 years ago

/azp run

azure-pipelines[bot] commented 2 years ago
Azure Pipelines successfully started running 2 pipeline(s).