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.
- {pycompss-cli-3.3/pycompss_cli.egg-info → pycompss-cli-3.3.2}/PKG-INFO +1 -1
- pycompss-cli-3.3.2/VERSION.txt +1 -0
- {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/core/actions_dispatcher.py +4 -4
- {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/core/docker/actions.py +6 -8
- {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/core/local/actions.py +5 -1
- {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/core/remote/arguments.py +0 -1
- {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/core/unicore/actions.py +0 -2
- {pycompss-cli-3.3 → pycompss-cli-3.3.2/pycompss_cli.egg-info}/PKG-INFO +1 -1
- pycompss-cli-3.3/VERSION.txt +0 -1
- {pycompss-cli-3.3 → pycompss-cli-3.3.2}/LICENSE.txt +0 -0
- {pycompss-cli-3.3 → pycompss-cli-3.3.2}/MANIFEST.in +0 -0
- {pycompss-cli-3.3 → pycompss-cli-3.3.2}/README.rst +0 -0
- {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/__init__.py +0 -0
- {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/assets/__init__.py +0 -0
- {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/assets/enqueue_compss_args.txt +0 -0
- {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/assets/runcompss_args.txt +0 -0
- {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/cli/__init__.py +0 -0
- {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/cli/compss.py +0 -0
- {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/cli/dislib.py +0 -0
- {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/cli/pycompss.py +0 -0
- {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/core/__init__.py +0 -0
- {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/core/actions.py +0 -0
- {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/core/arguments.py +0 -0
- {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/core/cmd_helpers.py +0 -0
- {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/core/docker/__init__.py +0 -0
- {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/core/docker/arguments.py +0 -0
- {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/core/docker/cmd.py +0 -0
- {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/core/local/__init__.py +0 -0
- {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/core/local/arguments.py +0 -0
- {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/core/local/cmd.py +0 -0
- {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/core/remote/__init__.py +0 -0
- {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/core/remote/actions.py +0 -0
- {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/core/remote/cmd.py +0 -0
- {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/core/remote/interactive_sc/__init__.py +0 -0
- {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/core/remote/interactive_sc/core.py +0 -0
- {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/core/remote/interactive_sc/defaults.py +0 -0
- {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/core/remote/job_scripts/__init__.py +0 -0
- {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/core/remote/job_scripts/cancel.py +0 -0
- {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/core/remote/job_scripts/commons.py +0 -0
- {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/core/remote/job_scripts/find.py +0 -0
- {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/core/remote/job_scripts/info.py +0 -0
- {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/core/remote/job_scripts/status.py +0 -0
- {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/core/unicore/__init__.py +0 -0
- {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/core/unicore/arguments.py +0 -0
- {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/core/utils.py +0 -0
- {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/models/__init__.py +0 -0
- {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli/models/app.py +0 -0
- {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli.egg-info/SOURCES.txt +0 -0
- {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli.egg-info/dependency_links.txt +0 -0
- {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli.egg-info/entry_points.txt +0 -0
- {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli.egg-info/requires.txt +0 -0
- {pycompss-cli-3.3 → pycompss-cli-3.3.2}/pycompss_cli.egg-info/top_level.txt +0 -0
- {pycompss-cli-3.3 → pycompss-cli-3.3.2}/requirements.txt +0 -0
- {pycompss-cli-3.3 → pycompss-cli-3.3.2}/setup.cfg +0 -0
- {pycompss-cli-3.3 → pycompss-cli-3.3.2}/setup.py +0 -0
|
@@ -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
|
-
|
|
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
|
-
|
|
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)
|
pycompss-cli-3.3/VERSION.txt
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
3.3
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|