Use build to create python packages + update pyproject.toml
-
Invoking setup.py is deprecated. See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html
-
Specify build-system in pyproject.toml. When present, pyproject.toml should specify the [build-system] section. See https://packaging.python.org/tutorials/packaging-projects/#creating-pyproject-toml and https://snarky.ca/what-the-heck-is-pyproject-toml/ for some background.