Skip to content
Snippets Groups Projects
Commit 99368f9c authored by BRONES Romain's avatar BRONES Romain
Browse files

chore(version): Single version sourcing

* Use a _version.py file to hold the version. Created by Makefile.
parent 8f5bc359
No related branches found
No related tags found
No related merge requests found
...@@ -14,4 +14,4 @@ This package is cut in several modules: ...@@ -14,4 +14,4 @@ This package is cut in several modules:
For basic usage, see doc of FofbTool.Utils For basic usage, see doc of FofbTool.Utils
""" """
__version__ = "2.2" from FofbTool._version import version as __version__
VERSION:
echo version=\'$(shell git describe --tags | sed 's/\(.*\)-.*/\1/')\' > FofbTool/_version.py
clean:
rm -f FofbTool/_version.py
#!/usr/bin/env python #!/usr/bin/env python
from distutils.core import setup from distutils.core import setup
from FofbTool._version import version
setup(name='FofbTool', setup(name='FofbTool',
version='2.2', version=version,
description='Python module to operate and configure SOLEIL FOFB.', description='Python module to operate and configure SOLEIL FOFB.',
url='https://gitlab.synchrotron-soleil.fr/dg/fofb/fofbtool', url='https://gitlab.synchrotron-soleil.fr/dg/fofb/fofbtool',
license="GNU-GPL-v3", license="GNU-GPL-v3",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment