Template python repository. To bootstrap a project from this template, the following steps are required:
- Rename the folder
templateto the package name - Edit
pyproject.tomland all thetemplateentries - Edit the GitHub workflows in
.github - Enable
pre-commit.cion https://pre-commit.ci/ - Edit
README.md - Edit
MANIFEST.in - Remove the conda-forge recipe from the ignored files in
.yamllint.yaml - Edit the triggers in the release workflow, setup PyPI trusted publishing, and remove the publishing URL to test PyPI
The environment can then be setup with uv sync (assuming the current working directory
is the root of the repository).
To retain the auto-upgrade of the uv.lock file, the 2 following secrets must be added:
-
UV_LOCK_UPGRADER_APP_ID -
UV_LOCK_UPGRADER_APP_PRIVATE_KEY
And the associated app must be installed in the repository (or namespace).
If the documentation build is preserved, the following steps are required:
On the main branch:
- Edit the project links in
doc\links.inc - Edit the landing page
index.rst - Edit the sphinx configuration
doc/conf.py - Edit the API pages
- In
doc\api\index.rst, edit the package name - In
doc\api\logging.rst, edit the current module
- In
- Edit the logging tutorial to replace
from template importwith the correct package name
On the gh-pages branch:
- Edit the links in the landing page
index.html