-
Notifications
You must be signed in to change notification settings - Fork 1
Developer Docs
Iain Hunter edited this page Jan 30, 2022
·
5 revisions
To hack on the project pip install the dev dependencies:
pip install -r requirements_dev.txt
You may need to set the Python path to set the root module, as explained on Stackoverflow here
export PYTHONPATH=$PYTHONPATH:/tools/terraform/utils/terragen
Linting: flake8
Formatting: black .
A new release created as follows:
A test release can be built as follows
bumpversion --current-version 0.1.0 minor setup.py terragen/__init__.py
## Documentation
Useful commands for mkdocs
-
mkdocs new [dir-name]- Create a new project. -
mkdocs serve- Start the live-reloading docs server. -
mkdocs build- Build the documentation site. -
mkdocs -h- Print help message and exit.
python setup.py develop # Build locally and test
# Optionally release to test pypi
python -m build
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
To release to Pypi
python -m build
twine upload dist/*