accli 0.7.4__tar.gz → 0.7.6__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.
- {accli-0.7.4 → accli-0.7.6}/PKG-INFO +5 -2
- {accli-0.7.4 → accli-0.7.6}/README.md +3 -0
- {accli-0.7.4 → accli-0.7.6}/accli/AcceleratorTaskDispatcher.py +18 -2
- {accli-0.7.4 → accli-0.7.6}/accli/_version.py +1 -1
- {accli-0.7.4 → accli-0.7.6}/accli/cli.py +5 -5
- {accli-0.7.4 → accli-0.7.6}/accli.egg-info/PKG-INFO +5 -2
- accli-0.7.6/accli.egg-info/requires.txt +7 -0
- {accli-0.7.4 → accli-0.7.6}/pyproject.toml +9 -9
- accli-0.7.4/accli.egg-info/requires.txt +0 -7
- {accli-0.7.4 → accli-0.7.6}/LICENSE +0 -0
- {accli-0.7.4 → accli-0.7.6}/accli/AcceleratorJobProjectService.py +0 -0
- {accli-0.7.4 → accli-0.7.6}/accli/AcceleratorTerminalCliProjectService.py +0 -0
- {accli-0.7.4 → accli-0.7.6}/accli/CsvRegionalTimeseriesValidator.py +0 -0
- {accli-0.7.4 → accli-0.7.6}/accli/__init__.py +0 -0
- {accli-0.7.4 → accli-0.7.6}/accli/__main__.py +0 -0
- {accli-0.7.4 → accli-0.7.6}/accli/common.py +0 -0
- {accli-0.7.4 → accli-0.7.6}/accli/token.py +0 -0
- {accli-0.7.4 → accli-0.7.6}/accli.egg-info/SOURCES.txt +0 -0
- {accli-0.7.4 → accli-0.7.6}/accli.egg-info/dependency_links.txt +0 -0
- {accli-0.7.4 → accli-0.7.6}/accli.egg-info/entry_points.txt +0 -0
- {accli-0.7.4 → accli-0.7.6}/accli.egg-info/top_level.txt +0 -0
- {accli-0.7.4 → accli-0.7.6}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: accli
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.6
|
|
4
4
|
Summary: IIASA Accelerator Client
|
|
5
5
|
Author-email: Wrufesh S <wrufesh@gmail.com>
|
|
6
6
|
License: The MIT License (MIT)
|
|
@@ -29,7 +29,7 @@ Project-URL: Bug Tracker, https://github.com/iiasa/accli/issues
|
|
|
29
29
|
Classifier: Programming Language :: Python :: 3
|
|
30
30
|
Classifier: License :: OSI Approved :: MIT License
|
|
31
31
|
Classifier: Operating System :: OS Independent
|
|
32
|
-
Requires-Python: >=3.7
|
|
32
|
+
Requires-Python: >=3.7
|
|
33
33
|
Description-Content-Type: text/markdown
|
|
34
34
|
License-File: LICENSE
|
|
35
35
|
|
|
@@ -91,3 +91,6 @@ Please follow [this link.](https://packaging.python.org/en/latest/tutorials/pack
|
|
|
91
91
|
2. Run 'python scripts/tag.py'
|
|
92
92
|
3. `python -m build`
|
|
93
93
|
4. `twine upload -r pypi -u __token__ -p <password-or-token> ./dist/*`
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
#TODO nuitka --standalone --onefile --static-libpython=yes --include-package=accli --output-dir=build -m accli.cli:app
|
|
@@ -56,3 +56,6 @@ Please follow [this link.](https://packaging.python.org/en/latest/tutorials/pack
|
|
|
56
56
|
2. Run 'python scripts/tag.py'
|
|
57
57
|
3. `python -m build`
|
|
58
58
|
4. `twine upload -r pypi -u __token__ -p <password-or-token> ./dist/*`
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
#TODO nuitka --standalone --onefile --static-libpython=yes --include-package=accli --output-dir=build -m accli.cli:app
|
|
@@ -143,6 +143,21 @@ class JobDispatchModel(BaseModel):
|
|
|
143
143
|
children: List['JobDispatchModel'] = []
|
|
144
144
|
callback: Optional['JobDispatchModel']
|
|
145
145
|
|
|
146
|
+
def dict(self, *args, **kwargs):
|
|
147
|
+
result = super().dict(*args, **kwargs)
|
|
148
|
+
if result['is_holder_job'] and result['execute_cluster'] == 'WKUBE':
|
|
149
|
+
if len(result['children']) > 1:
|
|
150
|
+
if not result['children'][0]['job_kwargs'].get('docker_image'):
|
|
151
|
+
builder_task = result['children'][0].copy()
|
|
152
|
+
|
|
153
|
+
builder_task['build_only_task'] = True
|
|
154
|
+
|
|
155
|
+
builder_task['callback'] = result.copy()
|
|
156
|
+
builder_task['name'] = f"{builder_task['callback']['name']} -- Image Builder"
|
|
157
|
+
builder_task['callback']['name'] = f"{builder_task['callback']['name']} -- Holder"
|
|
158
|
+
return builder_task
|
|
159
|
+
return result
|
|
160
|
+
|
|
146
161
|
|
|
147
162
|
class WKubeTaskMeta(BaseModel):
|
|
148
163
|
required_cores: float
|
|
@@ -234,8 +249,9 @@ class WKubeTask(GenericTask):
|
|
|
234
249
|
wkube_task_kwargs = None
|
|
235
250
|
wkube_task_meta = dict()
|
|
236
251
|
|
|
237
|
-
|
|
238
|
-
|
|
252
|
+
|
|
253
|
+
name = t_kwargs.pop('name') if 'name' in t_kwargs else None
|
|
254
|
+
if (t_args or t_kwargs):
|
|
239
255
|
WKubeTaskPydantic(*t_args, **t_kwargs)
|
|
240
256
|
wkube_task_kwargs = WKubeTaskKwargs(*t_args, **t_kwargs)
|
|
241
257
|
wkube_task_meta.update(WKubeTaskMeta(*t_args, **t_kwargs).dict(exclude_unset=True))
|
|
@@ -212,12 +212,12 @@ def dispatch(
|
|
|
212
212
|
print(job_to_dispatch.description)
|
|
213
213
|
|
|
214
214
|
|
|
215
|
-
root_job_id = term_cli_project_service.dispatch(
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
)
|
|
215
|
+
# root_job_id = term_cli_project_service.dispatch(
|
|
216
|
+
# project_slug,
|
|
217
|
+
# job_to_dispatch.description
|
|
218
|
+
# )
|
|
219
219
|
|
|
220
|
-
print(f"Dispatched root job #ID: {root_job_id}")
|
|
220
|
+
# print(f"Dispatched root job #ID: {root_job_id}")
|
|
221
221
|
|
|
222
222
|
|
|
223
223
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: accli
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.6
|
|
4
4
|
Summary: IIASA Accelerator Client
|
|
5
5
|
Author-email: Wrufesh S <wrufesh@gmail.com>
|
|
6
6
|
License: The MIT License (MIT)
|
|
@@ -29,7 +29,7 @@ Project-URL: Bug Tracker, https://github.com/iiasa/accli/issues
|
|
|
29
29
|
Classifier: Programming Language :: Python :: 3
|
|
30
30
|
Classifier: License :: OSI Approved :: MIT License
|
|
31
31
|
Classifier: Operating System :: OS Independent
|
|
32
|
-
Requires-Python: >=3.7
|
|
32
|
+
Requires-Python: >=3.7
|
|
33
33
|
Description-Content-Type: text/markdown
|
|
34
34
|
License-File: LICENSE
|
|
35
35
|
|
|
@@ -91,3 +91,6 @@ Please follow [this link.](https://packaging.python.org/en/latest/tutorials/pack
|
|
|
91
91
|
2. Run 'python scripts/tag.py'
|
|
92
92
|
3. `python -m build`
|
|
93
93
|
4. `twine upload -r pypi -u __token__ -p <password-or-token> ./dist/*`
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
#TODO nuitka --standalone --onefile --static-libpython=yes --include-package=accli --output-dir=build -m accli.cli:app
|
|
@@ -11,15 +11,15 @@ authors = [
|
|
|
11
11
|
description = "IIASA Accelerator Client"
|
|
12
12
|
readme = "README.md"
|
|
13
13
|
license = {file = "LICENSE"}
|
|
14
|
-
requires-python = ">=3.7
|
|
14
|
+
requires-python = ">=3.7"
|
|
15
15
|
dependencies = [
|
|
16
|
-
"urllib3
|
|
17
|
-
"typer[all]
|
|
18
|
-
"tinydb
|
|
19
|
-
"requests
|
|
20
|
-
"jsonschema
|
|
21
|
-
"pydantic
|
|
22
|
-
"gitpython
|
|
16
|
+
"urllib3>=1.26.5", # 2.0.7 is recent, but 1.26.5+ is widely compatible
|
|
17
|
+
"typer[all]>=0.4.0", # 0.4.0+ is stable and has most features
|
|
18
|
+
"tinydb>=4.5.2", # 4.5.2 is a solid release, avoid tight pin
|
|
19
|
+
"requests>=2.25.1", # Commonly supported baseline
|
|
20
|
+
"jsonschema>=4.5.1", # 4.5.1+ is safe across libraries
|
|
21
|
+
"pydantic>=2.0", # Major version 2 required if you're using v2 features
|
|
22
|
+
"gitpython>=3.1.30" # Minimum stable with good Python 3.7+ support
|
|
23
23
|
]
|
|
24
24
|
classifiers = [
|
|
25
25
|
"Programming Language :: Python :: 3",
|
|
@@ -38,4 +38,4 @@ version = {attr="accli._version.VERSION"}
|
|
|
38
38
|
"Bug Tracker" = "https://github.com/iiasa/accli/issues"
|
|
39
39
|
|
|
40
40
|
[project.scripts]
|
|
41
|
-
accli = "accli.cli:app"
|
|
41
|
+
accli = "accli.cli:app"
|
|
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
|