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

fix(version): Going backward on version handling

* Source code is the master of version numbering, it then should be copied in git
* Single source of version is __init__.py
parent aa5bbb67
No related branches found
No related tags found
No related merge requests found
......@@ -14,4 +14,4 @@ This package is cut in several modules:
For basic usage, see doc of FofbTool.Utils
"""
from FofbTool._version import version as __version__
__version__ = "2.2.1"
VERSION:
echo version=\'$(shell git describe --tags | sed 's/\(.*\)-.*/\1/')\' > FofbTool/_version.py
build: VERSION
python setup.py sdist
clean:
rm -f FofbTool/_version.py
#!/usr/bin/env python
from distutils.core import setup
from FofbTool._version import version
from FofbTool.__init__ import __version__
setup(name='FofbTool',
version=version,
version=__version__,
description='Python module to operate and configure SOLEIL FOFB.',
url='https://gitlab.synchrotron-soleil.fr/dg/fofb/fofbtool',
license="GNU-GPL-v3",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment