pycompss-cli 3.3__tar.gz → 3.3.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. {pycompss-cli-3.3/pycompss_cli.egg-info → pycompss-cli-3.3.2}/PKG-INFO +1 -1
  2. pycompss-cli-3.3.2/VERSION.txt +1 -0
  3. {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/core/actions_dispatcher.py +4 -4
  4. {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/core/docker/actions.py +6 -8
  5. {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/core/local/actions.py +5 -1
  6. {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/core/remote/arguments.py +0 -1
  7. {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/core/unicore/actions.py +0 -2
  8. {pycompss-cli-3.3 → pycompss-cli-3.3.2/pycompss_cli.egg-info}/PKG-INFO +1 -1
  9. pycompss-cli-3.3/VERSION.txt +0 -1
  10. {pycompss-cli-3.3 → pycompss-cli-3.3.2}/LICENSE.txt +0 -0
  11. {pycompss-cli-3.3 → pycompss-cli-3.3.2}/MANIFEST.in +0 -0
  12. {pycompss-cli-3.3 → pycompss-cli-3.3.2}/README.rst +0 -0
  13. {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/__init__.py +0 -0
  14. {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/assets/__init__.py +0 -0
  15. {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/assets/enqueue_compss_args.txt +0 -0
  16. {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/assets/runcompss_args.txt +0 -0
  17. {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/cli/__init__.py +0 -0
  18. {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/cli/compss.py +0 -0
  19. {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/cli/dislib.py +0 -0
  20. {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/cli/pycompss.py +0 -0
  21. {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/core/__init__.py +0 -0
  22. {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/core/actions.py +0 -0
  23. {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/core/arguments.py +0 -0
  24. {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/core/cmd_helpers.py +0 -0
  25. {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/core/docker/__init__.py +0 -0
  26. {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/core/docker/arguments.py +0 -0
  27. {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/core/docker/cmd.py +0 -0
  28. {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/core/local/__init__.py +0 -0
  29. {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/core/local/arguments.py +0 -0
  30. {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/core/local/cmd.py +0 -0
  31. {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/core/remote/__init__.py +0 -0
  32. {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/core/remote/actions.py +0 -0
  33. {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/core/remote/cmd.py +0 -0
  34. {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/core/remote/interactive_sc/__init__.py +0 -0
  35. {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/core/remote/interactive_sc/core.py +0 -0
  36. {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/core/remote/interactive_sc/defaults.py +0 -0
  37. {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/core/remote/job_scripts/__init__.py +0 -0
  38. {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/core/remote/job_scripts/cancel.py +0 -0
  39. {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/core/remote/job_scripts/commons.py +0 -0
  40. {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/core/remote/job_scripts/find.py +0 -0
  41. {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/core/remote/job_scripts/info.py +0 -0
  42. {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/core/remote/job_scripts/status.py +0 -0
  43. {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/core/unicore/__init__.py +0 -0
  44. {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/core/unicore/arguments.py +0 -0
  45. {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/core/utils.py +0 -0
  46. {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/models/__init__.py +0 -0
  47. {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/models/app.py +0 -0
  48. {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli.egg-info/SOURCES.txt +0 -0
  49. {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli.egg-info/dependency_links.txt +0 -0
  50. {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli.egg-info/entry_points.txt +0 -0
  51. {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli.egg-info/requires.txt +0 -0
  52. {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli.egg-info/top_level.txt +0 -0
  53. {pycompss-cli-3.3 → pycompss-cli-3.3.2}/requirements.txt +0 -0
  54. {pycompss-cli-3.3 → pycompss-cli-3.3.2}/setup.cfg +0 -0
  55. {pycompss-cli-3.3 → pycompss-cli-3.3.2}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pycompss-cli
3
- Version: 3.3
3
+ Version: 3.3.2
4
4
  Summary: PyCOMPSs cli
5
5
  Home-page: https://compss.bsc.es
6
6
  Author: Workflows and Distributed Computing Group (WDC) - Barcelona Supercomputing Center (BSC)
@@ -0,0 +1 @@
1
+ 3.3.2
@@ -14,10 +14,6 @@
14
14
  # See the License for the specific language governing permissions and
15
15
  # limitations under the License.
16
16
  #
17
- from pycompss_cli.core.local.actions import LocalActions
18
- from pycompss_cli.core.docker.actions import DockerActions
19
- from pycompss_cli.core.remote.actions import RemoteActions
20
- from pycompss_cli.core.unicore.actions import UnicoreActions
21
17
  from pycompss_cli.core import utils
22
18
  from copy import deepcopy
23
19
  import os
@@ -86,12 +82,16 @@ class ActionsDispatcher(object):
86
82
  debug = arguments.debug
87
83
 
88
84
  if env_type == "local":
85
+ from pycompss_cli.core.local.actions import LocalActions
89
86
  return LocalActions(arguments, debug, env_conf)
90
87
  elif env_type == "docker":
88
+ from pycompss_cli.core.docker.actions import DockerActions
91
89
  return DockerActions(arguments, debug, env_conf)
92
90
  elif env_type == "remote":
91
+ from pycompss_cli.core.remote.actions import RemoteActions
93
92
  return RemoteActions(arguments, debug, env_conf)
94
93
  elif env_type == "unicore":
94
+ from pycompss_cli.core.unicore.actions import UnicoreActions
95
95
  return UnicoreActions(arguments, debug, env_conf)
96
96
  else:
97
97
  raise NotImplementedError(f"Environment `{env_type}` not implemented")
@@ -155,15 +155,13 @@ class DockerActions(Actions):
155
155
 
156
156
  self.docker_cmd.docker_exec_in_daemon('pkill jupyter')
157
157
 
158
+ cmd = 'notebook'
159
+ if len(self.arguments.rest_args) > 0:
160
+ if self.arguments.rest_args[0] == 'lab' or self.arguments.rest_args[0] == 'notebook':
161
+ cmd = ''
162
+
158
163
  arguments = " ".join(self.arguments.rest_args)
159
- working_dir = self.env_conf['working_dir']
160
- for arg in self.arguments.rest_args:
161
- dir = working_dir + '/' + arg
162
- if os.path.isdir(dir):
163
- print(f"Opening jupyter server in `{dir}`")
164
- break
165
-
166
- jupyter_cmd = "jupyter-notebook " + \
164
+ jupyter_cmd = f"jupyter {cmd} " + \
167
165
  arguments + " " + \
168
166
  f"--ip={self.env_conf['master_ip']} " + \
169
167
  "--allow-root " + \
@@ -108,7 +108,11 @@ class LocalActions(Actions):
108
108
  working_dir = self.env_conf['working_dir']
109
109
 
110
110
  jupyter_args = self.arguments.rest_args
111
- local_jupyter(working_dir, ' '.join(jupyter_args))
111
+ if jupyter_args[0] == 'lab':
112
+ cmd = 'lab'
113
+ else:
114
+ cmd = 'notebook'
115
+ local_jupyter(working_dir, cmd, ' '.join(jupyter_args))
112
116
 
113
117
  def exec(self):
114
118
  command = ' '.join(self.arguments.exec_cmd)
@@ -47,7 +47,6 @@ def remote_init_parser():
47
47
  help="Login info username@remote_hostname")
48
48
 
49
49
  parser_init.add_argument("-m", "--modules",
50
- nargs='*',
51
50
  help="Module list or file to load in remote environment")
52
51
 
53
52
  return parser_init
@@ -1,7 +1,5 @@
1
1
 
2
- import re
3
2
  from shutil import copyfile
4
- import tempfile
5
3
  import traceback
6
4
  from pycompss_cli.core.actions import Actions
7
5
  from pycompss_cli.core.unicore import UNICORE_URL_ENVAR
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pycompss-cli
3
- Version: 3.3
3
+ Version: 3.3.2
4
4
  Summary: PyCOMPSs cli
5
5
  Home-page: https://compss.bsc.es
6
6
  Author: Workflows and Distributed Computing Group (WDC) - Barcelona Supercomputing Center (BSC)
@@ -1 +0,0 @@
1
- 3.3
File without changes
File without changes
File without changes
File without changes
File without changes