Skip to content
Snippets Groups Projects
Commit f76eb7fc authored by Florian Schröder's avatar Florian Schröder
Browse files

Refactor version management to a dedicated file.

Moved the `__version__` variable from `__init__.py` to a new `__version.py` file. Updated `setup.py` to retrieve the version from the new file, improving maintainability and separation of concerns.
parent 53607a05
No related branches found
No related tags found
No related merge requests found
Pipeline #78282 failed
...@@ -427,7 +427,6 @@ Cooperative Cuisine © 2025 by [Social Cognitive Systems Group](https://scs.tech ...@@ -427,7 +427,6 @@ Cooperative Cuisine © 2025 by [Social Cognitive Systems Group](https://scs.tech
import os import os
from pathlib import Path from pathlib import Path
__version__ = "0.1.3"
ROOT_DIR = Path(os.path.dirname(os.path.abspath(__file__))) # This is your Project Root ROOT_DIR = Path(os.path.dirname(os.path.abspath(__file__))) # This is your Project Root
"""A path variable to get access to the layouts coming with the package. For example, """A path variable to get access to the layouts coming with the package. For example,
......
__version__ = "0.1.3"
\ No newline at end of file
...@@ -8,7 +8,7 @@ from setuptools import setup, find_packages ...@@ -8,7 +8,7 @@ from setuptools import setup, find_packages
from distutils.util import convert_path from distutils.util import convert_path
init_ns = {} init_ns = {}
ver_path = convert_path('cooperative_cuisine/__init__.py') ver_path = convert_path('cooperative_cuisine/__version.py')
with open(ver_path) as ver_file: with open(ver_path) as ver_file:
exec(ver_file.read(), init_ns) exec(ver_file.read(), init_ns)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment