The package version is currently hardcoded in pyproject.toml and init. This also requires to manually change the version on those locations manually before making a release. A more flexible and automated way to manage this would involve the following changes:
- Infer the package version from the installed package version using something like the following:
from importlib.metadata import version
from . import _logging as _logging
__version__ = version("dstrack")
- Create a new GitHub action that can be triggered manually, which uses
uv version bump to bump the package version and opens a PR.
- Leave pre-release action as a manual trigger. The tag should be created when the release is created through the GitHub action for “Pre Release”. Once the tag is created, the release pipeline is trigerred automatically.
The package version is currently hardcoded in pyproject.toml and init. This also requires to manually change the version on those locations manually before making a release. A more flexible and automated way to manage this would involve the following changes:
uv version bumpto bump the package version and opens a PR.