Skip to content

pepe5p/copier-python-project

Repository files navigation

copier-python-project

Usage

  1. Install copier
  2. Generate a new project or apply this template to an existing project:
    PROJECT_PATH=my-project # relative path including project dir name, will be created automatically if it not exist.
    copier copy gh:pepe5p/copier-python-project $PROJECT_PATH
    or just:
    copier copy gh:pepe5p/copier-python-project .

Development

Familiarize yourself with the copier templating engine

Note

If file not ends on .jinja, it will be copy-pasted as is. When you add .jinja - make sure that there will no conflicts between template languages, or just wrap everything not related to copier templating in {%raw%} {%endraw%}

Prerequisites

  1. Install python 3.13 or greater. Consider using pyenv if you work with multiple python versions
  2. Install uv
  3. Install project dependencies: uv sync --dev

Running tests

  1. run uv run pytest in your root directory

Running template locally

  1. copier cli: copier copy . test-folder-path

About

Template for python project

Resources

Stars

Watchers

Forks

Packages

No packages published