Closed sphuber closed 1 year ago
The changes in this PR will allow to add an automatic continuous deployment workflow. This will automate the release procedure. Simply push a new tag with a new version number and the workflow will automatically run the pre-commit and tests, and when they pass build the package and push to PyPI.
Following PEP 621 it is now possible to fully define the build procedure of your package in
pyproject.toml
. Since this PEP is now well supported, and for examplepip
can use it, we migrate to it since it provides a bunch of benefits:setup.py
to install the package, nor the customsetup.json
.setup.json
and there is no need for the custom version validation utility script.MANIFEST.in
is no longer necessary. Theflit
build tool will automatically include anything. Thepyproject.toml
has a tool section forflit
that excludes thetests
anddocs
folders.pyproject.toml
. This allows to remove.style.yapf
and configuration options in the.pre-commit-config.yaml
.Also the
LICENSE
file is renamed toLICENSE.txt
to use a correct file extension.