Skip to content

Commit

Permalink
move version declaration to basyx.aas module
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jkhsjdhjs authored and s-heppner committed Jan 3, 2024
1 parent 8ed22a8 commit 6a0cac5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions basyx/aas/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@
in 'adapter', you can find JSON and XML adapters to translate between BaSyx Python SDK objects and JSON/XML schemas;
and in 'util', some helpful functionality to actually use the AAS meta-model you created with 'model' is located.
"""

__version__ = "1.0.0"
3 changes: 2 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@


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


# -- Project information -----------------------------------------------------
Expand All @@ -25,7 +26,7 @@
author = 'The Eclipse BaSyx Authors'

# The full version, including alpha/beta/rc tags
release = '0.2.0'
release = __version__


# -- General configuration ---------------------------------------------------
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@
# SPDX-License-Identifier: MIT

import setuptools
from basyx.aas import __version__

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

setuptools.setup(
name="basyx-python-sdk",
version="1.0.0",
version=__version__,
author="The Eclipse BaSyx Authors",
description="The Eclipse BaSyx Python SDK, an implementation of the Asset Administration Shell for Industry 4.0 "
"systems",
Expand Down

0 comments on commit 6a0cac5

Please sign in to comment.