Skip to content

Python Module: __version__

Podhorszki, Norbert requested to merge github/fork/ax3l/topic-pyVersion into master

Created by: ax3l

The __version__ attribute is a standardized and recommended attribute for Python modules (PEP 396). It also comes in very handy to check if one imported a suitable minimum version. These versions should be strings.

import adios2

print(adios2.__version__)
# '2.4.0'

In case we want to add suffixes, such as release candidate identifiers, please be aware of the specifics in PEP440. Examples:

X.YaN    # Alpha release
X.YbN    # Beta release
X.YrcN   # Release Candidate
X.Y      # Final release
X.Y.devN # Development release

Merge request reports