build: adding _version.py, small build config change, and doc note

This commit is contained in:
Mathew Guest 2024-11-17 04:50:45 -07:00
parent 55a9796806
commit 470514ba4b
3 changed files with 23 additions and 1 deletions

@ -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

@ -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)

@ -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"