Template for creating new Python tools at Brand New School.
Developed at Brand New School.
- Dependency management via
poetry
. - Automated testing.
- Doubles as cpenv module with automated publishing to ShotGrid.
- Convenient tasks module to run code-quality checks and tests.
- Create a new repository under
nybrandnewschool
using this template. - Title: Adjust the title in this README.
- Badges: Replace the repository name in each badge.
- Description: Replaced the project description above the
Features
section. - Remove everything below the description in the README. You may choose to include a tool preview image, a list of features, and usage your tool in your new README.
- Adjust the metadata in pyproject.toml, module.yml, and
__init__.py
files including resetting the version number to0.1.0
.
Tests are run automatically via github actions on push and pull requests. See the repositories actions tab or a pull request to view the test results. You can also run the tests locally using py -m tasks test
.
There is another github workflow set to publish this module to ShotGrid when a new tag is pushed.
- Use the
version
task to increment the package. Use major, minor, or patch following semantic versioning.
py -m tasks version patch --commit
- Use the
release
task to push a new tag to github and trigger the publish workflow.
py -m tasks release
You may also publish to ShotGrid manually by using cpenv publish . --to_repo=bns_shotgun
.