Change verison automatically

This commit is contained in:
Byron Lathi
2024-06-06 19:01:21 -07:00
parent 2c3cd7f232
commit dc8f29c9c1
2 changed files with 8 additions and 1 deletions

View File

@@ -33,7 +33,9 @@ name = "rtl-manifest" # REQUIRED, is the only field that cannot be marked as dy
# #
# For a discussion on single-sourcing the version, see # For a discussion on single-sourcing the version, see
# https://packaging.python.org/guides/single-sourcing-package-version/ # https://packaging.python.org/guides/single-sourcing-package-version/
version = "0.0.2" # REQUIRED, although can be dynamic
dynamic = ["version"]
# version = "0.0.3" # REQUIRED, although can be dynamic
# This is a one-line description or tagline of what your project does. This # This is a one-line description or tagline of what your project does. This
# corresponds to the "Summary" metadata field: # corresponds to the "Summary" metadata field:

View File

@@ -1,4 +1,9 @@
from .rtl_manifest import rtl_manifest_main from .rtl_manifest import rtl_manifest_main
VERSION_BASE = "0.0.3"
import datetime
__version__ = f"{VERSION_BASE}.{datetime.datetime.now().strftime('%Y.%m.%d.%H%M')}"
def main(): def main():
rtl_manifest_main() rtl_manifest_main()