Template python repository. To bootstrap a project from this template, the following steps are required:
- Rename the folder
template
to the package name - Edit
pyproject.toml
and all thetemplate
entries - Edit the GitHub workflows in
.github
- Enable
pre-commit.ci
on https://pre-commit.ci/ - Edit
README.md
- Edit
MANIFEST.in
- Edit the package import in
tools/stubgen.py
- Remove the conda-forge recipe from the ignored files in
.yamllint.yaml
The package can then be installed in a given environment with
pip install -e .
(assuming the current working directory is the root of the
repository).
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 import
with the correct package name
On the gh-pages
branch:
- Edit the links in the landing page
index.html