wmayner / pyemd

Fast EMD for Python: a wrapper for Pele and Werman's C++ implementation of the Earth Mover's Distance metric
MIT License
479 stars 62 forks source link

switch from setup.py to pyproject.toml #62

Closed pabs3 closed 1 year ago

pabs3 commented 1 year ago

It would be nice to switch to modern Python packaging standards at some point.

The Python community has standardised on pyproject.toml for Python packaging:

https://packaging.python.org/en/latest/tutorials/packaging-projects/

I haven't had time to complete this migration but I made a start here:

https://github.com/pabs3/pyemd/compare/cleanups...pabs3:pyemd:pyproject

wmayner commented 1 year ago

I agree this would be much better—thanks for getting it started.

pabs3 commented 1 year ago

I note that setup.py uses distutils, which will be removed from Python 3.12, switching to pyproject will fix this too.

wmayner commented 1 year ago

Latest release uses modern packaging 🎉