This is the command-line tool for deploying Montagu. It is a Hatch project.
pip install montagu-deploy$ montagu configure <path>
$ montagu start --pull
Here <path> is the path to a directory that contains a configuration file montagu.yml.
For all integration tests to pass, you will need 2 environment variables:
-
YOUTRACK_TOKEN- a token for accessing the YT API -
VAULT_TOKEN- a github PAT for a user in the vimc robots team. -
hatch run test -
hatch run lint:fmt
To get coverage reported locally in the console, use hatch run cov.
On CI, use hatch run cov-ci to generate an xml report.
hatch buildhatch buildpip install dist/montagu_deploy-{version}.tar.gz
montagu-deploy is distributed under the terms of the MIT license.
Automatically publish to PyPI. Assuming a version number 0.1.2:
- Create a release on github
- Choose a tag -> Create a new tag:
v0.1.2 - Use this version as the description
- Optionally describe the release
- Click "Publish release"
- This triggers the release workflow and the package will be available on PyPI in a few minutes
Settings are configured here on PyPI