You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The recommended method fro managing python packages now is using pyproject.toml which we already have (based on this: https://packaging.python.org/en/latest/).
setup.py is no longer a pseudo-requirement as you can put in different build systems. There are a large number of options fro build tools: https://packaging.python.org/en/latest/key_projects/. The python packing authority is supporting a number of them. hatch and hatchling is the most popular to the modernized tools.
Caveats / Assumptions
The default new hatch project setup has a src directory. This will not be used.
Completion Criteria
Build system is replaced with hatch
As many as possible of the configuration files are converged on pyproject.toml
The text was updated successfully, but these errors were encountered:
I've done a little baseline work on this already. One interesting side-complication that has come up is we get the greatest benefit (in terms of stack and number of dependencies) when we converge on ruff for linting and formatting which is the default.
Ruff, by default is pedantic, even when excluding the quote style (it defaults to double quotes). Most of the differences are related to two topics:
Changes that relate to how to do type annotations with python 3.9 and above (which was not the default when trestle was first created)
String formatting as it applies to logs (moving to lazy evaluation where possible for logs).
To set the 'compliance-trestle' description, author, links, classifiers, and other details for your next release, use the project metadata fields in your pyproject.toml file. Updating these fields will not change the metadata for past releases. Additionally, you must use Twine to upload your files in order to get full support for these fields. See the Python Packaging User Guide for more help.
Issue description / feature objectives
The recommended method fro managing python packages now is using
pyproject.toml
which we already have (based on this: https://packaging.python.org/en/latest/).setup.py
is no longer a pseudo-requirement as you can put in different build systems. There are a large number of options fro build tools: https://packaging.python.org/en/latest/key_projects/. The python packing authority is supporting a number of them.hatch
andhatchling
is the most popular to the modernized tools.Caveats / Assumptions
src
directory. This will not be used.Completion Criteria
pyproject.toml
The text was updated successfully, but these errors were encountered: