nextmv 0.34.0.dev2__tar.gz → 0.34.0.dev3__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.
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/PKG-INFO +1 -1
- nextmv-0.34.0.dev3/nextmv/__about__.py +1 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/nextmv/manifest.py +28 -17
- nextmv-0.34.0.dev2/nextmv/__about__.py +0 -1
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/.gitignore +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/LICENSE +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/README.md +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/nextmv/__entrypoint__.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/nextmv/__init__.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/nextmv/_serialization.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/nextmv/base_model.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/nextmv/cloud/__init__.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/nextmv/cloud/acceptance_test.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/nextmv/cloud/account.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/nextmv/cloud/application.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/nextmv/cloud/batch_experiment.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/nextmv/cloud/client.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/nextmv/cloud/ensemble.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/nextmv/cloud/input_set.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/nextmv/cloud/instance.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/nextmv/cloud/package.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/nextmv/cloud/scenario.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/nextmv/cloud/secrets.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/nextmv/cloud/url.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/nextmv/cloud/version.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/nextmv/default_app/.gitignore +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/nextmv/default_app/README.md +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/nextmv/default_app/app.yaml +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/nextmv/default_app/input.json +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/nextmv/default_app/main.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/nextmv/default_app/requirements.txt +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/nextmv/default_app/src/__init__.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/nextmv/default_app/src/main.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/nextmv/default_app/src/visuals.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/nextmv/deprecated.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/nextmv/input.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/nextmv/local/__init__.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/nextmv/local/application.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/nextmv/local/executor.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/nextmv/local/geojson_handler.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/nextmv/local/local.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/nextmv/local/plotly_handler.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/nextmv/local/runner.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/nextmv/logger.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/nextmv/model.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/nextmv/options.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/nextmv/output.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/nextmv/polling.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/nextmv/run.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/nextmv/safe.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/nextmv/status.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/pyproject.toml +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/tests/__init__.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/tests/cloud/__init__.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/tests/cloud/app.yaml +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/tests/cloud/test_client.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/tests/cloud/test_package.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/tests/cloud/test_scenario.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/tests/local/__init__.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/tests/local/test_application.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/tests/local/test_executor.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/tests/local/test_runner.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/tests/scripts/__init__.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/tests/scripts/options1.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/tests/scripts/options2.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/tests/scripts/options3.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/tests/scripts/options4.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/tests/scripts/options5.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/tests/scripts/options6.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/tests/scripts/options7.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/tests/scripts/options_deprecated.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/tests/test_base_model.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/tests/test_entrypoint/__init__.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/tests/test_entrypoint/test_entrypoint.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/tests/test_input.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/tests/test_inputs/test_data.csv +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/tests/test_inputs/test_data.json +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/tests/test_inputs/test_data.txt +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/tests/test_logger.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/tests/test_manifest.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/tests/test_model.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/tests/test_options.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/tests/test_output.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/tests/test_polling.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/tests/test_run.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/tests/test_safe.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/tests/test_serialization.py +0 -0
- {nextmv-0.34.0.dev2 → nextmv-0.34.0.dev3}/tests/test_version.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "v0.34.0.dev3"
|
|
@@ -1024,17 +1024,28 @@ class Manifest(BaseModel):
|
|
|
1024
1024
|
['main.py', 'model_logic/']
|
|
1025
1025
|
"""
|
|
1026
1026
|
|
|
1027
|
-
|
|
1028
|
-
"""
|
|
1029
|
-
|
|
1027
|
+
type: ManifestType = ManifestType.PYTHON
|
|
1028
|
+
"""
|
|
1029
|
+
Type of application, based on the programming language. This is mandatory.
|
|
1030
|
+
"""
|
|
1030
1031
|
runtime: ManifestRuntime = ManifestRuntime.PYTHON
|
|
1031
1032
|
"""
|
|
1032
1033
|
The runtime to use for the app. It provides the environment in which the
|
|
1033
1034
|
app runs. This is mandatory.
|
|
1034
1035
|
"""
|
|
1035
|
-
|
|
1036
|
+
python: Optional[ManifestPython] = None
|
|
1036
1037
|
"""
|
|
1037
|
-
|
|
1038
|
+
Python-specific attributes. Only for Python apps. Contains further
|
|
1039
|
+
Python-specific attributes.
|
|
1040
|
+
"""
|
|
1041
|
+
files: list[str] = Field(
|
|
1042
|
+
default_factory=list,
|
|
1043
|
+
)
|
|
1044
|
+
"""The files to include (or exclude) in the app. This is mandatory."""
|
|
1045
|
+
configuration: Optional[ManifestConfiguration] = None
|
|
1046
|
+
"""
|
|
1047
|
+
Configuration for the decision model. A list of options for the decision
|
|
1048
|
+
model. An option is a parameter that configures the decision model.
|
|
1038
1049
|
"""
|
|
1039
1050
|
build: Optional[ManifestBuild] = None
|
|
1040
1051
|
"""
|
|
@@ -1062,16 +1073,6 @@ class Manifest(BaseModel):
|
|
|
1062
1073
|
process. This command is executed just before the app gets bundled and
|
|
1063
1074
|
pushed (after the build command).
|
|
1064
1075
|
"""
|
|
1065
|
-
python: Optional[ManifestPython] = None
|
|
1066
|
-
"""
|
|
1067
|
-
Python-specific attributes. Only for Python apps. Contains further
|
|
1068
|
-
Python-specific attributes.
|
|
1069
|
-
"""
|
|
1070
|
-
configuration: Optional[ManifestConfiguration] = None
|
|
1071
|
-
"""
|
|
1072
|
-
Configuration for the decision model. A list of options for the decision
|
|
1073
|
-
model. An option is a parameter that configures the decision model.
|
|
1074
|
-
"""
|
|
1075
1076
|
entrypoint: Optional[str] = None
|
|
1076
1077
|
"""
|
|
1077
1078
|
Optional entrypoint for the decision model. When not specified, the
|
|
@@ -1175,7 +1176,14 @@ class Manifest(BaseModel):
|
|
|
1175
1176
|
"""
|
|
1176
1177
|
|
|
1177
1178
|
with open(os.path.join(dirpath, MANIFEST_FILE_NAME), "w") as file:
|
|
1178
|
-
yaml.dump(
|
|
1179
|
+
yaml.dump(
|
|
1180
|
+
self.to_dict(),
|
|
1181
|
+
file,
|
|
1182
|
+
sort_keys=False,
|
|
1183
|
+
default_flow_style=False,
|
|
1184
|
+
indent=2,
|
|
1185
|
+
width=120,
|
|
1186
|
+
)
|
|
1179
1187
|
|
|
1180
1188
|
def extract_options(self) -> Optional[Options]:
|
|
1181
1189
|
"""
|
|
@@ -1376,9 +1384,12 @@ def default_python_manifest() -> Manifest:
|
|
|
1376
1384
|
A default Python manifest with common settings.
|
|
1377
1385
|
"""
|
|
1378
1386
|
|
|
1379
|
-
|
|
1387
|
+
m = Manifest(
|
|
1380
1388
|
files=["main.py"],
|
|
1381
1389
|
runtime=ManifestRuntime.PYTHON,
|
|
1382
1390
|
type=ManifestType.PYTHON,
|
|
1383
1391
|
python=ManifestPython(pip_requirements="requirements.txt"),
|
|
1384
1392
|
)
|
|
1393
|
+
m.entrypoint = None # TODO: change this when we are ready for the entrypoint.
|
|
1394
|
+
|
|
1395
|
+
return m
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "v0.34.0.dev2"
|
|
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
|
|
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
|