nextmv 0.34.0.dev2__py3-none-any.whl → 0.34.0.dev3__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.
nextmv/__about__.py CHANGED
@@ -1 +1 @@
1
- __version__ = "v0.34.0.dev2"
1
+ __version__ = "v0.34.0.dev3"
nextmv/manifest.py CHANGED
@@ -1024,17 +1024,28 @@ class Manifest(BaseModel):
1024
1024
  ['main.py', 'model_logic/']
1025
1025
  """
1026
1026
 
1027
- files: list[str]
1028
- """The files to include (or exclude) in the app. This is mandatory."""
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
- type: ManifestType = ManifestType.PYTHON
1036
+ python: Optional[ManifestPython] = None
1036
1037
  """
1037
- Type of application, based on the programming language. This is mandatory.
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(self.to_dict(), file)
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
- return Manifest(
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,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nextmv
3
- Version: 0.34.0.dev2
3
+ Version: 0.34.0.dev3
4
4
  Summary: The all-purpose Python SDK for Nextmv
5
5
  Project-URL: Homepage, https://www.nextmv.io
6
6
  Project-URL: Documentation, https://nextmv-py.docs.nextmv.io/en/latest/nextmv/
@@ -1,4 +1,4 @@
1
- nextmv/__about__.py,sha256=WcWnZ8lpgoA_G-fijdz035TaA0Zl0FpZlN5F9plJBGU,29
1
+ nextmv/__about__.py,sha256=DsLmieJeEYDa6llfj0-ywyjDq25tl2JnmYHkfnN9tbY,29
2
2
  nextmv/__entrypoint__.py,sha256=dA0iwwHtrq6Z9w9FxmxKLoBGLyhe7jWtUAU-Y3PEgHg,1094
3
3
  nextmv/__init__.py,sha256=C2f8MteVvvOX1Wj-0GFjfUt-0RzCT0zpLpLI2yyZQw8,3796
4
4
  nextmv/_serialization.py,sha256=JlSl6BL0M2Esf7F89GsGIZ__Pp8RnFRNM0UxYhuuYU4,2853
@@ -6,7 +6,7 @@ nextmv/base_model.py,sha256=qmJ4AsYr9Yv01HQX_BERrn3229gyoZrYyP9tcyqNfeU,2311
6
6
  nextmv/deprecated.py,sha256=kEVfyQ-nT0v2ePXTNldjQG9uH5IlfQVy3L4tztIxwmU,1638
7
7
  nextmv/input.py,sha256=m9sVfO9ZL3F5i1l8amEtlWlbkekyUP4C3y9DduHWGFs,40211
8
8
  nextmv/logger.py,sha256=kNIbu46MisrzYe4T0hNMpWfRTKKacDVvbtQcNys_c_E,2513
9
- nextmv/manifest.py,sha256=NmiuagEsrRwLMoDXh6eBOCl5rGBBJqPoY8qDHszCuLw,46546
9
+ nextmv/manifest.py,sha256=N4Te82rKgcqzlXIpFGH-JX8JHDVW9sd7NoDvy9zZI6U,46859
10
10
  nextmv/model.py,sha256=vI3pSV3iTwjRPflar7nAg-6h98XRUyi9II5O2J06-Kc,15018
11
11
  nextmv/options.py,sha256=yPJu5lYMbV6YioMwAXv7ctpZUggLXKlZc9CqIbUFvE4,37895
12
12
  nextmv/output.py,sha256=HdvWYG3gIzwoXquulaEVI4LLchXJDjkbag0BkBPM0vQ,55128
@@ -44,7 +44,7 @@ nextmv/local/geojson_handler.py,sha256=7FavJdkUonop-yskjis0x3qFGB8A5wZyoBUblw-bV
44
44
  nextmv/local/local.py,sha256=cp56UpI8h19Ob6Jvb_Ni0ceXH5Vv3ET_iPTDe6ftq3Y,2617
45
45
  nextmv/local/plotly_handler.py,sha256=bLb50e3AkVr_W-F6S7lXfeRdN60mG2jk3UElNmhoMWU,1930
46
46
  nextmv/local/runner.py,sha256=hwkITHrQG_J9TzxufnaP1mjLWG-iSsNQD66UFZY4pp4,8602
47
- nextmv-0.34.0.dev2.dist-info/METADATA,sha256=r9BN6BPrbvO0YTgj_QeV4_Yq_K3uG9wK9kWFVfdIs7o,16013
48
- nextmv-0.34.0.dev2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
49
- nextmv-0.34.0.dev2.dist-info/licenses/LICENSE,sha256=ZIbK-sSWA-OZprjNbmJAglYRtl5_K4l9UwAV3PGJAPc,11349
50
- nextmv-0.34.0.dev2.dist-info/RECORD,,
47
+ nextmv-0.34.0.dev3.dist-info/METADATA,sha256=6K9eoJKvAufPITu_j0f0dlfMIMUNSKu0KEUcS_OJhk8,16013
48
+ nextmv-0.34.0.dev3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
49
+ nextmv-0.34.0.dev3.dist-info/licenses/LICENSE,sha256=ZIbK-sSWA-OZprjNbmJAglYRtl5_K4l9UwAV3PGJAPc,11349
50
+ nextmv-0.34.0.dev3.dist-info/RECORD,,