Skip to content

feat: add a Dunder Version and use it in setup.cfg

Lukasz Butkowski requested to merge setup into main

The version string was already defined in setup.cfg, but there it is only available to the build and packaging mechanism, not to the Python runtime. That would typically be made possible by the so called "Dunder Version" which is a __version__ attribute.

The Python Packaging User Guide describes ways to use a single source for both. Accessing the "Dunder Version" from setup.cfg is one.

Now you can do:

>>> import desyrdl
>>> print(desyrdl.__version__)
1.0.1

Merge request reports

Loading