level12 / copier-py-package

0 stars 0 forks source link

Copier Python Package Template

A copier template to create a Python package.

Host Dependencies

To use a project generated by this template, you will need to have the following tools installed and available on the path:

All other project dependencies should be managed by these tools:

Usage

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

Updates

To update a project derived from this repo:

The 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.

Features

Todo:

Development

Versions & releases

Versions are date based. Tools:

There is no actual "release" for this project since it only lives on GitHub and no artifacts need to be built.