Copier template for Python projects managed by Poetry.
Many thanks to the project copier poetry for starting this project and allowing the reuse of the codebase. Without this starting point the agent templates would not be what they are today!
This version of copier-poetry-volttron-agent template relies on copier >= 7. To use copier
Please see more detail at Copier Installation
Use the copier CLI tool to create an agent project from the Volttron Copier templates. The command takes the form of:
copier <URL to copier template repo> <path to agent project on local machine>
The following is an example:
copier "https://github.com/VOLTTRON/copier-poetry-volttron-agent.git" /path/to/your/new/project --vcs-ref=HEAD
Or even shorter:
copier "gh:VOLTTRON/copier-poetry-volttron-agent" /path/to/your/new/project --vcs-ref=HEAD
NOTE: By default, copier use the latest release found in the template git tags. Use --vcs-ref=HEAD
to reinforce this behavior.
If you want to use a specific template version, use the --vcs-ref
flag, which takes a commit hash associated with your desired
template version. See documentation for this flag.
pyproject.toml
CHANGELOG.md
from git commits (using Angular message style)After you have created your Agent project with the copier template and have successfully installed all the dependencies, your development workflow would be the following:
Steps:
git init
git remote add origin <git or gitlab URL>
git add .
git commit -m "Initial commit"
pre-commit install
at the root level of your Agent projectgit push -u origin main