From eab0740d611d76f7f4516321a0a3f0f00f3bad03 Mon Sep 17 00:00:00 2001 From: David Arnold Date: Wed, 15 Nov 2023 13:24:17 +0100 Subject: [PATCH] fix(build): avoid dynamic metadata --- erpnext/__init__.py | 4 +++- pyproject.toml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/erpnext/__init__.py b/erpnext/__init__.py index 3e418c48cf81..bc6009f63467 100644 --- a/erpnext/__init__.py +++ b/erpnext/__init__.py @@ -1,9 +1,11 @@ import functools import inspect +import importlib.metadata import frappe -__version__ = "15.0.0-dev" +__version__ = importlib.metadata.version(__name__) + def get_default_company(user=None): diff --git a/pyproject.toml b/pyproject.toml index 604aa4458581..16c1e8666a1c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ authors = [ description = "Open Source ERP" requires-python = ">=3.10" readme = "README.md" -dynamic = ["version"] +version = "15.0.0-dev" dependencies = [ # Core dependencies "pycountry~=22.3.5",