Replace setup.py with pyproject.toml
Opened this issue · 0 comments
PEP-518 introduced pyproject.toml to solve some problems caused by setup.py. This seems to be the standard / recommended way of doing things these days, so I should probably migrate to it sooner or later. On the other hand my current usage of setup.py doesn't seem to be causing any particular problems so there's no urgency at present.
A shim setup.py file may still needed for editable installs:
https://stackoverflow.com/questions/62983756/what-is-pyproject-toml-file-for
...but maybe not? Seems like PEP 660 rectified this situation, and it's been implemented by both setuptools and pip as best I can tell:
- https://peps.python.org/pep-0660/
- PEP-660 support added in pip starting with v21.3: https://pip.pypa.io/en/stable/reference/build-system/pyproject-toml/#editable-installation
- PEP-660 support added in setuptools starting with v64.0.0: https://github.com/pypa/setuptools/blob/main/CHANGES.rst#v6400
This probably depends on #272, which will remove the need to do custom downloading of IERS data files during installation.