Skip to content

Commit 72d50cb

Browse files
committed
adding changelog and version to 0.0.41
1 parent 9f1dde2 commit 72d50cb

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ The client here will eventually be released as "spython" (and eventually to
1717
singularity on pypi), and the versions here will coincide with these releases.
1818

1919
## [master](https://github.com/singularityhub/singularity-cli/tree/master)
20+
- adding nvidia flag as nv argument (with default False) to run/exec (0.0.41)
2021
- fixing bug in shell.py, cli should be client (0.0.40)
2122
- remove uri function should only right strip to support relative paths (0.0.39)
2223
- adjusting container build to use correct Github branch (vault/release-2.5)

spython/main/execute.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ def execute(self,
3030
writable = False,
3131
contain = False,
3232
bind = None,
33-
stream=False,
34-
nv=False):
33+
stream = False,
34+
nv = False):
3535

3636
''' execute: send a command to a container
3737
@@ -47,15 +47,14 @@ def execute(self,
4747
bind: list or single string of bind paths.
4848
This option allows you to map directories on your host system to
4949
directories within your container using bind mounts
50-
nv: if True, load Nvidia Drivers in Runtime.
51-
50+
nv: if True, load Nvidia Drivers in runtime (default False)
5251
'''
5352
from spython.utils import check_install
5453
check_install()
5554

5655
cmd = self._init_command('exec')
5756

58-
# It option leverage the GPU card
57+
# nv option leverages any GPU cards
5958
if nv is True:
6059
cmd += ['--nv']
6160

spython/main/run.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ def run(self,
2929
writable = False,
3030
contain = False,
3131
bind = None,
32-
stream=False,
33-
nv=False):
32+
stream = False,
33+
nv = False):
3434

3535
'''
3636
run will run the container, with or withour arguments (which
@@ -48,14 +48,14 @@ def run(self,
4848
This option allows you to map directories on your host system to
4949
directories within your container using bind mounts
5050
stream: if True, return <generator> for the user to run
51-
nv: if True, load Nvidia Drivers in Runtime.
51+
nv: if True, load Nvidia Drivers in runtime (default False)
5252
'''
5353
from spython.utils import check_install
5454
check_install()
5555

5656
cmd = self._init_command('run')
5757

58-
# It option leverage the GPU card
58+
# nv option leverages any GPU cards
5959
if nv is True:
6060
cmd += ['--nv']
6161

spython/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919

2020

21-
__version__ = "0.0.40"
21+
__version__ = "0.0.41"
2222
AUTHOR = 'Vanessa Sochat'
2323
AUTHOR_EMAIL = '[email protected]'
2424
NAME = 'spython'

0 commit comments

Comments
 (0)