Once you have followed the tutorial, you can use copier to make a new project from the template:
git init --initial-branch=main /path/to/my-project
# $_ resolves to /path/to/my-project
uvx copier copy https://github.com/DiamondLightSource/python-copier-template.git $_
This will:
- Ask some questions about the project to be created
- Expand the template with the answers give
- Record the answers in the project so they can be used in later updates
- Create a git repository if the directory is not already one
You can now check what the template has created, tweak the results if desired, , and commit the results:
$ cd /path/to/my-project
$ uv sync
$ git add .
$ git commit -m "Expand from python-copier-template x.x.x"You can now create a new blank project on GitHub. Choose the same GitHub owner, repo name and description that you answered in the questions earlier. GitHub will now give you the commands needed to upload your repo from GitHub.