This MR done by @tyburn and myself adopts PEP 517, which standardises how Python tooling is configured. Eventually, the goal is to specify everything tooling related in pyproject.toml
, i.e.
- the build (currently setuptools)
- test tools (in our case pytest)
- linters,
- code formatters,
- ...
We hope that setup.py
and setup.cfg
can be merged into pyproject.toml
in the future.
Some dependencies and code that is no longer used were removed.
Installation of the library can now be achieved by
pip install path-to-library # installs only the library
pip install path-to-library[tests] # installs the library and test dependencies
pip install path-to-library[tests,docs,coverage] # installs the library and all developer dependencies
The arguments in the square brackets are specified in setup.cfg
under [options.extras_require]
.