From 20f8ff048c5a56f1127e59f1c95c73f6f8f0872a Mon Sep 17 00:00:00 2001 From: bwheelz36 <64300337+bwheelz36@users.noreply.github.com> Date: Tue, 25 Jun 2024 13:36:21 +1000 Subject: [PATCH] Update __init__.py should read version from `pyproject.toml` --- ParticlePhaseSpace/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ParticlePhaseSpace/__init__.py b/ParticlePhaseSpace/__init__.py index 2f2a479..e89d146 100644 --- a/ParticlePhaseSpace/__init__.py +++ b/ParticlePhaseSpace/__init__.py @@ -1,4 +1,5 @@ -__version__ = '0.6.0' +import importlib.metadata +__version__ = importlib.metadata.version('bayesian-optimization') # from ParticlePhaseSpace._ParticlePhaseSpace import PhaseSpace from ParticlePhaseSpace.__unit_config__ import ParticlePhaseSpaceUnits, UnitSet