This is a package that returns the version of itself.
You need to have poetry installed before running this: pipx install poetry
.
poetry install
poetry shell
poetry build
This can be done after building the package locally. Please don't upload manually if not necessary, the GitHub workflow will take care of this. But if you need to do it manually, input this command. The API key is shared in the team channel.
python3 -m twine upload --repository pypi dist/*
After pushing an update you can tag it with the following command to trigger the workflow.
git tag <tag_name>
, where 0.0.1 can be any version. This tags the latest commit.git push origin <tag_name>
, where 0.0.1 will be the tag name.
To use the package in your project you can install it from PyPi using this link.
pip install lib-version-remla
from lib_version_remla import return_version
version = return_version.VersionUtil.get_version()