This project uses poetry to manage dependencies and the package. Follow the instructions here to install Poetry on your system: https://python-poetry.org/docs/#installation
Once poetry is installed and available run the following command to install all package required for local development.
make deps
In order to install and test the package in a local test project, we'll need to
generate a setup.py file and then install an editable version of the package in
the test project's environment. Assuming the test project environment lives at
/path/to/test/project/venv
, the following steps will install an editable
version of package in the test project.
make develop DEV_ENV=/path/to/test/project/venv
This will install an editable version of the package in the test project. Any changes made to the library will automatically reflect in the test project without the need to install the package again.
Assuming the latest version is 0.14.0 and you want to releaase 0.15.0,
- Run
make prepare-release VERSION=0.15.0
This will bump the version where neccesary, update the changelog and commit all the changes to a new branch with namerelease/v0.15.0
. - Submit a GitHub PR for the new branch and merge it once it is approved.
- Switch to the main branch and pull the newly merged changes. Make sure you have the same commit checked out that was auto-generated in step 1.
- Tag the commit with the version number
git tag -s v0.15.0
- Push the new tag to bot GitHub and GitLab
This will kickoff a Gitlab release job which will publish packages to pypi.org and create a new GitHub release.
git push github v0.15.0 git push gitlab v0.15.0
- You should review the GitHub release and add additional information to it if required.