Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 4d0229d7 authored by MERCIER Michael's avatar MERCIER Michael
Browse files

Set the vesion correctly

parent c01ddb0d
No related branches found
No related tags found
No related merge requests found
__version__ = "2.1.1"
#!/usr/bin/env python #!/usr/bin/env python3
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import sys import sys
import subprocess import subprocess
...@@ -106,12 +106,19 @@ class FormatCommand(UserCommand): ...@@ -106,12 +106,19 @@ class FormatCommand(UserCommand):
self.path) self.path)
# To change the version, set it in this file:
# ./batsim/__init__.py
version = {}
with open("./batsim/__init__.py") as fp:
exec(fp.read(), version)
# later on we use: version['__version__']
setup( setup(
name='pybatsim', name='pybatsim',
author="Michael Mercier", author="Michael Mercier",
author_email="michael.mercier@inria.fr", author_email="michael.mercier@inria.fr",
version=2.0,
url='https://gitlab.inria.fr/batsim/pybatsim', url='https://gitlab.inria.fr/batsim/pybatsim',
version=version['__version__'],
packages=find_packages(), packages=find_packages(),
install_requires=requirements, install_requires=requirements,
setup_requires=setup_requirements, setup_requires=setup_requirements,
......
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