Skip to content

Daemo00/Python-Package-Template-using-Copier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Package Template using Copier

Template for generating Python Packages using Copier (https://github.com/copier-org/copier).

Installs and uses pre-commit (https://pre-commit.com) in generated Package.

Installation

Suggested way of installing the dependencies is pipx (https://pypa.github.io/pipx):

# Install pipx
python3 -m pip install --user pipx
python3 -m pipx ensurepath
# Install dependencies
pipx install copier pre-commit

Usage

Create a new Package MyPackage with:

copier copy --trust https://github.com/Daemo00/Python-Package-Template-using-Copier MyPackage

Update an existing Package in MyPackage directory with:

cd MyPackage
copier update --trust .
pre-commit run --all-files
git commit --all --message "Template Update"  # Check the changes and commit