Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
batsim
pybatsim
Commits
cd41c625
Commit
cd41c625
authored
Oct 26, 2018
by
MERCIER Michael
Browse files
Better version handling + Fix launchers
parent
5938a384
Changes
6
Hide whitespace changes
Inline
Side-by-side
VERSION
deleted
100644 → 0
View file @
5938a384
3.0.0-alpha
batsim/__init__.py
View file @
cd41c625
from
batsim._version
import
__version__
batsim/_version.py
0 → 100644
View file @
cd41c625
__version__
=
"3.0.0-alpha"
batsim/cmds/experiments.py
View file @
cd41c625
...
...
@@ -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"
])
...
...
batsim/cmds/launcher.py
View file @
cd41c625
...
...
@@ -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
...
...
setup.py
View file @
cd41c625
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment