To create a new repository using this template:
- Create a basic devcontainer either using the Codespaces default or using the file
.devcontainer/devcontainer-to-instantiate-template.json
from the base template repo - Inside that devcontainer, run
sh .devcontainer/install-ci-tooling.sh
to install necessary tooling to instantiate the template (you can copy/paste the script from this - Delete all files currently in the repository. Optional...but makes it easiest to avoid git conflicts.
- Run copier to instantiate the template:
copier copy --trust gh:LabAutomationAndScreening/copier-python-package-template.git .
- Run
uv lock
to generate the lock file - Run
python3 .github/workflows/hash_git_files.py . --for-devcontainer-config-update
to update the hash for your devcontainer file - Commit the changes (optional)
- Rebuild your new devcontainer
This repository uses a copier template. To pull in the latest updates from the template, use the command:
copier update --trust --conflict rej --defaults