Skip to content

Commit 6a0cac5

Browse files
jkhsjdhjss-heppner
authored andcommitted
move version declaration to basyx.aas module
This moves the version declaration to the basyx.aas module and imports it from there in the docs configuration and setup.py. This avoid having to change the version number in multiple locations.
1 parent 8ed22a8 commit 6a0cac5

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

basyx/aas/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@
66
in 'adapter', you can find JSON and XML adapters to translate between BaSyx Python SDK objects and JSON/XML schemas;
77
and in 'util', some helpful functionality to actually use the AAS meta-model you created with 'model' is located.
88
"""
9+
10+
__version__ = "1.0.0"

docs/source/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717

1818
sys.path.insert(0, os.path.abspath('../..'))
19+
from basyx.aas import __version__
1920

2021

2122
# -- Project information -----------------------------------------------------
@@ -25,7 +26,7 @@
2526
author = 'The Eclipse BaSyx Authors'
2627

2728
# The full version, including alpha/beta/rc tags
28-
release = '0.2.0'
29+
release = __version__
2930

3031

3132
# -- General configuration ---------------------------------------------------

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@
77
# SPDX-License-Identifier: MIT
88

99
import setuptools
10+
from basyx.aas import __version__
1011

1112
with open("README.md", "r", encoding='utf-8') as fh:
1213
long_description = fh.read()
1314

1415
setuptools.setup(
1516
name="basyx-python-sdk",
16-
version="1.0.0",
17+
version=__version__,
1718
author="The Eclipse BaSyx Authors",
1819
description="The Eclipse BaSyx Python SDK, an implementation of the Asset Administration Shell for Industry 4.0 "
1920
"systems",

0 commit comments

Comments
 (0)