A copier template to create a Python package.
To use a project generated by this template, you will need to have the following tools installed and available on the path:
pipx install copier
pipx inject copier copier-templates-extensions
WORKON_HOME
environment variable to location virtualenvs should be createdAll other project dependencies should be managed by these tools:
From GH repo (preferred):
copier copy --trust gh:level12/copier-py-package .../projects/some-new-pkg
Or, from local repo (mainly for local dev):
copier copy --trust .../copier-py-package .../projects/some-new-pkg
The method you choose (local vs. GH) affects the _src
value stored in the copier answers file and
will be used by copier update
. Using a template stored on the local file system will save a
_src
that may not be accurate for other users of copier update
. You can safely edit the local
reference to be the gh reference even though that answers file warns against editing it. Just make
sure the gh reference is accurate.
Then bootstrap...assuming mise activates when changing into pkg directory:
cd .../projects/some-new-pkg
mise run bootstrap
To update a project derived from this repo:
hatch run copier:update
: latest tagged version in GitHub, ORhatch run copier:update-head
: head of master in GitHubThe update should be pretty safe and only apply changes from the upstream repo that have happened since this project was last updated. Any conflicts with local changes to the project will show up as git conflicts to be resolved.
mise run bump --help
)Todo:
mise tasks
mise run demo [--help]
compose.yaml
and relatedmise run publish-ci-img
mise run docker-nox
Versions are date based. Tools:
hatch version
mise run bump
mise run bump -- --help
There is no actual "release" for this project since it only lives on GitHub and no artifacts need to be built.