Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

python-package-template

python-package-template is a copier template to create and update Python packages. Copier uses git to merge changes from the original template into your instance, so you can keep all of your Python packages up to date and consistent.

Initial Setup

Basic Usage

pipx install copier
copier copy https://github.com/sabard/python-package-template /path/to/project
cd /path/to/project
./setup.sh

Developer

Dependencies:

Installation is made simple with pyenv-installer.

Once you have installed pyenv, install the rest of python-package-template's dependencies with the setup script:

./setup.sh

Update Package Dependencies

Add new dependencies to requirements.in and then run:

./update-deps.sh

Single dependencies can be updated with:

./update-deps.sh  --upgrade-package <package>

Local Usage

TODO add pipx install copier or provide another install method than running the setup script

Create a new template

cd into your project directory and run:

pyenv activate python-package-template
copier copy path/to/python-package-template path/to/your_project

-or-

copier copy gh:sabard/python-package-template .

Update an existing template

After making changes to the template:

cd path/to/your_project
pyenv activate python-package-template
copier update
pyenv deactivate

Publish Package

Run the upload script which tags and releases the package via a push-triggered CI workflow:

./upload.sh

Make sure TWINE_REPOSITORY, TWINE_USERNAME, and TWINE_PASSWORD environment variables are available in your CI environment.

Metadata

Release files for py-pkg-tmpl 0.0.1.dev1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for py-pkg-tmpl 0.0.1.dev1
File Size Uploaded Provenance Actions
py-pkg-tmpl-0.0.1.dev1.tar.gz 15.3 kB Without provenance Details for py-pkg-tmpl-0.0.1.dev1.tar.gz

Release files / py-pkg-tmpl-0.0.1.dev1.tar.gz

Download URL py-pkg-tmpl-0.0.1.dev1.tar.gz
Size 15.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b99985fc69b9e4f7e7b9a26a225b8f237704ab4b205f0c26ff5a0895d97cb402
BLAKE2b-256 checksum
How to use checksums
f25018a1a8481cd5f9ee30f9320f6c9b4c2b3a4fe5a47e286a83291567728d99
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.14

Security for py-pkg-tmpl 0.0.1.dev1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page