Add pyproject.toml
Convert setup.py to pyproject.toml which is the modern way of
defining a Python project. This change avoids various warnings that
Python has been generating related to out-of-date use of
setup.py.
Other notable changes:
- The
scapentrypoint is now
prepared automatically when the package is installed due to this
part ofpyproject.toml:
[project.scripts]
scap = "scap:cli.Application.run"
-
Renamed
bin/scaptobin/run-dev-scap. The latter is only used
during documentation generation. Update the references in
docs/scap2/commands.rstanddocs/scap3/deploy_commands.rst. -
Deal with a change in behavior in
blackwhenpyproject.tomlis
present. It found a couple of trailing commas that it wanted to
add inscap/checks.pyandscap/cli.py.