From cf6b0bd390174ee6d0d4d26bcf7961eea183bfa0 Mon Sep 17 00:00:00 2001 From: David Arnold Date: Sat, 16 Dec 2023 22:51:33 +0100 Subject: [PATCH 1/2] fix(build): avoid dynamic metadata --- pyproject.toml | 2 +- waba_integration/__init__.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index c1394d3..3e98000 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ authors = [ description = "Work with WhatsApp Business Cloud API from your Frappe site" requires-python = ">=3.10" readme = "README.md" -dynamic = ["version"] +version = "0.0.1" dependencies = [] [build-system] diff --git a/waba_integration/__init__.py b/waba_integration/__init__.py index 7a0660b..63dfcac 100644 --- a/waba_integration/__init__.py +++ b/waba_integration/__init__.py @@ -1,3 +1,3 @@ +import importlib.metadata -__version__ = '0.0.1' - +__version__ = importlib.metadata.version(__name__) From 11258b72ddea806e453f4cd1213ecc7921b4c731 Mon Sep 17 00:00:00 2001 From: David Arnold Date: Tue, 19 Dec 2023 12:39:19 +0100 Subject: [PATCH 2/2] fix: add bench backwards compat --- setup.cfg | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 setup.cfg diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..e8ec689 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,3 @@ +[metadata] +# compatibility until https://github.com/frappe/bench/pull/1502 is more adopted +version = 0.0.1