From c383b6d35fc17acbfd16b5ade185af49ad7ec5b2 Mon Sep 17 00:00:00 2001 From: Florian Maurer Date: Fri, 12 Jan 2024 18:58:15 +0100 Subject: [PATCH] use __version__ from pyproject.toml --- assume/__init__.py | 4 +++- assume/scenario/loader_oeds.py | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/assume/__init__.py b/assume/__init__.py index 9116adac..22583ff5 100644 --- a/assume/__init__.py +++ b/assume/__init__.py @@ -2,10 +2,12 @@ # # SPDX-License-Identifier: AGPL-3.0-or-later +from importlib.metadata import version + from assume.common import MarketConfig, MarketProduct from assume.world import World -__version__ = "0.0.1" +__version__ = version("assume-framework") __author__ = "ASSUME Developers: Nick Harder, Kim Miskiw, Florian Maurer, Manish Khanra" __copyright__ = "AGPL-3.0 License" diff --git a/assume/scenario/loader_oeds.py b/assume/scenario/loader_oeds.py index 9ef25856..3954a2d6 100644 --- a/assume/scenario/loader_oeds.py +++ b/assume/scenario/loader_oeds.py @@ -1,6 +1,7 @@ # SPDX-FileCopyrightText: ASSUME Developers # # SPDX-License-Identifier: AGPL-3.0-or-later + import logging import os import shutil