idmtools-platform-comps 0.0.0.dev0__py3-none-any.whl → 0.0.2__py3-none-any.whl
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.
- idmtools_platform_comps/__init__.py +25 -8
- idmtools_platform_comps/cli/__init__.py +4 -0
- idmtools_platform_comps/cli/cli_functions.py +50 -0
- idmtools_platform_comps/cli/comps.py +492 -0
- idmtools_platform_comps/comps_cli.py +48 -0
- idmtools_platform_comps/comps_operations/__init__.py +6 -0
- idmtools_platform_comps/comps_operations/asset_collection_operations.py +263 -0
- idmtools_platform_comps/comps_operations/experiment_operations.py +569 -0
- idmtools_platform_comps/comps_operations/simulation_operations.py +678 -0
- idmtools_platform_comps/comps_operations/suite_operations.py +228 -0
- idmtools_platform_comps/comps_operations/workflow_item_operations.py +269 -0
- idmtools_platform_comps/comps_platform.py +309 -0
- idmtools_platform_comps/plugin_info.py +168 -0
- idmtools_platform_comps/ssmt_operations/__init__.py +6 -0
- idmtools_platform_comps/ssmt_operations/simulation_operations.py +77 -0
- idmtools_platform_comps/ssmt_operations/workflow_item_operations.py +73 -0
- idmtools_platform_comps/ssmt_platform.py +44 -0
- idmtools_platform_comps/ssmt_work_items/__init__.py +4 -0
- idmtools_platform_comps/ssmt_work_items/comps_work_order_task.py +29 -0
- idmtools_platform_comps/ssmt_work_items/comps_workitems.py +113 -0
- idmtools_platform_comps/ssmt_work_items/icomps_workflowitem.py +71 -0
- idmtools_platform_comps/ssmt_work_items/work_order.py +54 -0
- idmtools_platform_comps/utils/__init__.py +4 -0
- idmtools_platform_comps/utils/assetize_output/__init__.py +4 -0
- idmtools_platform_comps/utils/assetize_output/assetize_output.py +125 -0
- idmtools_platform_comps/utils/assetize_output/assetize_ssmt_script.py +144 -0
- idmtools_platform_comps/utils/base_singularity_work_order.json +6 -0
- idmtools_platform_comps/utils/download/__init__.py +4 -0
- idmtools_platform_comps/utils/download/download.py +178 -0
- idmtools_platform_comps/utils/download/download_ssmt.py +81 -0
- idmtools_platform_comps/utils/download_experiment.py +116 -0
- idmtools_platform_comps/utils/file_filter_workitem.py +519 -0
- idmtools_platform_comps/utils/general.py +358 -0
- idmtools_platform_comps/utils/linux_mounts.py +73 -0
- idmtools_platform_comps/utils/lookups.py +123 -0
- idmtools_platform_comps/utils/package_version.py +489 -0
- idmtools_platform_comps/utils/python_requirements_ac/__init__.py +4 -0
- idmtools_platform_comps/utils/python_requirements_ac/create_asset_collection.py +155 -0
- idmtools_platform_comps/utils/python_requirements_ac/install_requirements.py +109 -0
- idmtools_platform_comps/utils/python_requirements_ac/requirements_to_asset_collection.py +374 -0
- idmtools_platform_comps/utils/python_version.py +40 -0
- idmtools_platform_comps/utils/scheduling.py +154 -0
- idmtools_platform_comps/utils/singularity_build.py +491 -0
- idmtools_platform_comps/utils/spatial_output.py +76 -0
- idmtools_platform_comps/utils/ssmt_utils/__init__.py +6 -0
- idmtools_platform_comps/utils/ssmt_utils/common.py +70 -0
- idmtools_platform_comps/utils/ssmt_utils/file_filter.py +568 -0
- idmtools_platform_comps/utils/sweeping.py +162 -0
- idmtools_platform_comps-0.0.2.dist-info/METADATA +100 -0
- idmtools_platform_comps-0.0.2.dist-info/RECORD +62 -0
- idmtools_platform_comps-0.0.2.dist-info/entry_points.txt +9 -0
- idmtools_platform_comps-0.0.2.dist-info/licenses/LICENSE.TXT +3 -0
- {idmtools_platform_comps-0.0.0.dev0.dist-info → idmtools_platform_comps-0.0.2.dist-info}/top_level.txt +1 -0
- ssmt_image/Dockerfile +52 -0
- ssmt_image/Makefile +21 -0
- ssmt_image/__init__.py +6 -0
- ssmt_image/bootstrap.sh +30 -0
- ssmt_image/build_docker_image.py +161 -0
- ssmt_image/pip.conf +3 -0
- ssmt_image/push_docker_image.py +49 -0
- ssmt_image/requirements.txt +9 -0
- idmtools_platform_comps-0.0.0.dev0.dist-info/METADATA +0 -41
- idmtools_platform_comps-0.0.0.dev0.dist-info/RECORD +0 -5
- {idmtools_platform_comps-0.0.0.dev0.dist-info → idmtools_platform_comps-0.0.2.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"""This is a workaround script to get docker versions working with pip versions and to automate build of those images.
|
|
2
|
+
|
|
3
|
+
Copyright 2021, Bill & Melinda Gates Foundation. All rights reserved.
|
|
4
|
+
"""
|
|
5
|
+
import os
|
|
6
|
+
import subprocess
|
|
7
|
+
import sys
|
|
8
|
+
from getpass import getpass
|
|
9
|
+
import requests
|
|
10
|
+
from requests.auth import HTTPBasicAuth
|
|
11
|
+
from natsort import natsorted
|
|
12
|
+
|
|
13
|
+
base_version = open('../VERSION').read().strip()
|
|
14
|
+
BASE_REPO = 'packages.idmod.org'
|
|
15
|
+
REPO_KEY = 'idm-docker-staging'
|
|
16
|
+
DOCKER_REPO = f'{REPO_KEY}.{BASE_REPO}'
|
|
17
|
+
IMAGE_NAME = 'idmtools/comps_ssmt_worker'
|
|
18
|
+
BASE_IMAGE_NAME = f'{DOCKER_REPO}/{IMAGE_NAME}'
|
|
19
|
+
|
|
20
|
+
if 'PYPI_STAGING_USERNAME' in os.environ:
|
|
21
|
+
username = os.environ['PYPI_STAGING_USERNAME']
|
|
22
|
+
else:
|
|
23
|
+
print("Username:")
|
|
24
|
+
username = input('Username:')
|
|
25
|
+
if 'PYPI_STAGING_PASSWORD' in os.environ:
|
|
26
|
+
password = os.environ['PYPI_STAGING_PASSWORD']
|
|
27
|
+
else:
|
|
28
|
+
password = getpass(prompt='Password:')
|
|
29
|
+
auth = HTTPBasicAuth(username=username, password=password)
|
|
30
|
+
response = requests.get(f'https://{BASE_REPO}/artifactory/api/docker/{REPO_KEY}/v2/{IMAGE_NAME}/tags/list', auth=auth)
|
|
31
|
+
if response.status_code == 200:
|
|
32
|
+
images = natsorted(response.json()['tags'], reverse=True)
|
|
33
|
+
images = [i for i in images if len(i) > 6]
|
|
34
|
+
last_version = images[0]
|
|
35
|
+
if base_version in last_version:
|
|
36
|
+
version_parts = last_version.split('.')
|
|
37
|
+
version_parts[-1] = str(int(version_parts[-1]) + 1)
|
|
38
|
+
version = '.'.join(version_parts)
|
|
39
|
+
else:
|
|
40
|
+
version = f'{base_version}.0'
|
|
41
|
+
else:
|
|
42
|
+
print(response.content)
|
|
43
|
+
raise Exception('Could not load images')
|
|
44
|
+
|
|
45
|
+
cmd = ['docker', 'push', f'{REPO_KEY}.{BASE_REPO}/idmtools/comps_ssmt_worker:{version}']
|
|
46
|
+
print(f'Running: {" ".join(cmd)}')
|
|
47
|
+
p = subprocess.Popen(" ".join(cmd), cwd=os.path.abspath(os.path.dirname(__file__)), shell=True)
|
|
48
|
+
p.wait()
|
|
49
|
+
sys.exit(p.returncode)
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: idmtools-platform-comps
|
|
3
|
-
Version: 0.0.0.dev0
|
|
4
|
-
Summary: Placeholder package for idmtools-platform-comps - reserved for future use
|
|
5
|
-
Author-email: IDM <idmtools@idmod.org>
|
|
6
|
-
License: Proprietary
|
|
7
|
-
Project-URL: Homepage, https://github.com/InstituteforDiseaseModeling/idmtools
|
|
8
|
-
Project-URL: Bug Tracker, https://github.com/InstituteforDiseaseModeling/idmtools/issues
|
|
9
|
-
Keywords: placeholder,reserved,idmtools
|
|
10
|
-
Classifier: Development Status :: 1 - Planning
|
|
11
|
-
Classifier: Intended Audience :: Developers
|
|
12
|
-
Classifier: Programming Language :: Python :: 3
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
14
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
16
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
-
Requires-Python: >=3.8
|
|
19
|
-
Description-Content-Type: text/markdown
|
|
20
|
-
|
|
21
|
-
# idmtools-platform-comps
|
|
22
|
-
|
|
23
|
-
**PLACEHOLDER PACKAGE - NOT FOR USE**
|
|
24
|
-
|
|
25
|
-
This package is a placeholder to reserve the name `idmtools-platform-comps` on PyPI.
|
|
26
|
-
|
|
27
|
-
The actual package implementation will be released in the future.
|
|
28
|
-
|
|
29
|
-
## Purpose
|
|
30
|
-
|
|
31
|
-
This placeholder ensures the package name is reserved and prevents name squatting.
|
|
32
|
-
|
|
33
|
-
## Status
|
|
34
|
-
|
|
35
|
-
This is version 0.0.0.dev0 - a minimal placeholder release.
|
|
36
|
-
|
|
37
|
-
## Future Release
|
|
38
|
-
|
|
39
|
-
The full implementation of idmtools-platform-comps will be published when ready.
|
|
40
|
-
|
|
41
|
-
For more information, visit: https://github.com/InstituteforDiseaseModeling/idmtools
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
idmtools_platform_comps/__init__.py,sha256=Ntu18lJ3Q820Bs5ZOPvljrCcEIZqXPC6yDMbxajn_ik,194
|
|
2
|
-
idmtools_platform_comps-0.0.0.dev0.dist-info/METADATA,sha256=6g8jaapd6Qxeg55OX8Ku8x7k_dSUC7aAu2xex0Nr3_A,1493
|
|
3
|
-
idmtools_platform_comps-0.0.0.dev0.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
4
|
-
idmtools_platform_comps-0.0.0.dev0.dist-info/top_level.txt,sha256=XsVgBTbzmllMEsHE9Wswy5okOu2KPL_Ui4XzTeNCt3E,24
|
|
5
|
-
idmtools_platform_comps-0.0.0.dev0.dist-info/RECORD,,
|
{idmtools_platform_comps-0.0.0.dev0.dist-info → idmtools_platform_comps-0.0.2.dist-info}/WHEEL
RENAMED
|
File without changes
|