From dc8f29c9c1af03415b1726e43371365c7b84d2bb Mon Sep 17 00:00:00 2001 From: Byron Lathi Date: Thu, 6 Jun 2024 19:01:21 -0700 Subject: [PATCH] Change verison automatically --- pyproject.toml | 4 +++- src/rtl_manifest/__init__.py | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 7470434..f5c434b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 # 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 # corresponds to the "Summary" metadata field: diff --git a/src/rtl_manifest/__init__.py b/src/rtl_manifest/__init__.py index 591d4e9..274ed5a 100644 --- a/src/rtl_manifest/__init__.py +++ b/src/rtl_manifest/__init__.py @@ -1,4 +1,9 @@ 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(): rtl_manifest_main() \ No newline at end of file