elasticsearch-py
elasticsearch-py copied to clipboard
Consider using pyproject.toml replace setup.py
Describe the feature:
pyproject.toml has become the de facto python project standard, perhaps we should replace the current setup.py with a tool such as hatch?
That would be a great improvement, let's use Hatch.
Hey, can someone help me solve this here, I am a beginner. Thanks in advance
Hello, I would suggest that you read https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html and https://packaging.python.org/en/latest/tutorials/packaging-projects/ first. You will also have to remove setup.py from noxfile.py and MANIFEST.in, and adjust the code in utils/build-dists.py to change the version in pyproject.toml.
That said, #2156 exists so I need to review it instead.
Done in https://github.com/elastic/elasticsearch-py/pull/2600.