Commit cd41c625 authored by MERCIER Michael's avatar MERCIER Michael

Better version handling + Fix launchers

parent 5938a384
from batsim._version import __version__
__version__ = "3.0.0-alpha"
......@@ -17,14 +17,11 @@ import json
from docopt import docopt
from batsim.tools.experiments import launch_experiment
from batsim import __version__
def main():
f = open("./VERSION")
version = f.read().strip()
f.close()
arguments = docopt(__doc__, version=version)
arguments = docopt(__doc__, version=__version__)
verbose = not bool(arguments["--quiet"])
debug = bool(arguments["--debug"])
......
......@@ -22,14 +22,10 @@ import json
from docopt import docopt
from batsim.tools.launcher import launch_scheduler, instanciate_scheduler
from batsim import __version__
def main():
f = open("./VERSION")
version = f.read().strip()
f.close()
arguments = docopt(__doc__, version=version)
arguments = docopt(__doc__, version=__version__)
if arguments['--verbose']:
verbose = 999
......
......@@ -127,19 +127,22 @@ class FormatCommand(UserCommand):
"--experimental",
self.path)
f = open("./README.rst")
read_me = f.read().strip()
f.close()
f = open("./VERSION")
version = f.read().strip()
# Get the version
f = open('batsim/_version.py')
version = f.read()
exec(version)
f.close()
setup(
name='pybatsim',
author="Michael Mercier",
author_email="michael.mercier@inria.fr",
version=version,
version=__version__,
url='https://gitlab.inria.fr/batsim/pybatsim',
packages=find_packages(),
install_requires=requirements,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment