diff --git a/README.md b/README.md index 9fa5625..a2079bb 100644 --- a/README.md +++ b/README.md @@ -136,6 +136,10 @@ twine upload dist/* setuptools_scm will infer the version based on the latest tag in your Git history. Ensure you are tagging your commits with meaningful version numbers like v1.0.0, v1.1.0, etc. +You can view the current version number with the command: + + python -m setuptools_scm + # License MIT no attribution required - https://opensource.org/license/mit-0 diff --git a/app_skellington/_version.py b/app_skellington/_version.py new file mode 100644 index 0000000..607cd4a --- /dev/null +++ b/app_skellington/_version.py @@ -0,0 +1,17 @@ +# file generated by setuptools_scm +# don't change, don't track in version control +TYPE_CHECKING = False +if TYPE_CHECKING: + from typing import Tuple, Union + + VERSION_TUPLE = Tuple[Union[int, str], ...] +else: + VERSION_TUPLE = object + +version: str +__version__: str +__version_tuple__: VERSION_TUPLE +version_tuple: VERSION_TUPLE + +__version__ = version = "0.2.2" +__version_tuple__ = version_tuple = (0, 2, 2) diff --git a/pyproject.toml b/pyproject.toml index 0a47964..b9f2dd2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,5 +40,6 @@ dev = [ ] [tool.setuptools_scm] -version_scheme = "guess-next-dev" +version_file = "app_skellington/_version.py" +version_scheme = "release-branch-semver" local_scheme = "node-and-date"