cornflow 2.0.0a14__py3-none-any.whl → 2.0.0a16__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.
- cornflow/cli/service.py +11 -7
- {cornflow-2.0.0a14.dist-info → cornflow-2.0.0a16.dist-info}/METADATA +2 -2
- {cornflow-2.0.0a14.dist-info → cornflow-2.0.0a16.dist-info}/RECORD +6 -6
- {cornflow-2.0.0a14.dist-info → cornflow-2.0.0a16.dist-info}/WHEEL +0 -0
- {cornflow-2.0.0a14.dist-info → cornflow-2.0.0a16.dist-info}/entry_points.txt +0 -0
- {cornflow-2.0.0a14.dist-info → cornflow-2.0.0a16.dist-info}/top_level.txt +0 -0
cornflow/cli/service.py
CHANGED
@@ -72,6 +72,7 @@ def init_cornflow_service():
|
|
72
72
|
config["cornflow_service_email"],
|
73
73
|
config["cornflow_service_pwd"],
|
74
74
|
)
|
75
|
+
if config["cornflow_backend"] == AIRFLOW_BACKEND:
|
75
76
|
_sync_with_airflow(
|
76
77
|
config["airflow_url"],
|
77
78
|
config["airflow_user"],
|
@@ -103,13 +104,14 @@ def init_cornflow_service():
|
|
103
104
|
config["cornflow_service_email"],
|
104
105
|
config["cornflow_service_pwd"],
|
105
106
|
)
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
107
|
+
if config["cornflow_backend"] == AIRFLOW_BACKEND:
|
108
|
+
_sync_with_airflow(
|
109
|
+
config["airflow_url"],
|
110
|
+
config["airflow_user"],
|
111
|
+
config["airflow_pwd"],
|
112
|
+
config["open_deployment"],
|
113
|
+
external_app=True,
|
114
|
+
)
|
113
115
|
_start_application(external_application, environment, external_app_module)
|
114
116
|
|
115
117
|
else:
|
@@ -216,6 +218,7 @@ def _setup_environment_variables():
|
|
216
218
|
"open_deployment": open_deployment,
|
217
219
|
"external_application": external_application,
|
218
220
|
"external_app_module": external_app_module,
|
221
|
+
"cornflow_backend": cornflow_backend,
|
219
222
|
}
|
220
223
|
elif cornflow_backend == DATABRICKS_BACKEND:
|
221
224
|
return {
|
@@ -237,6 +240,7 @@ def _setup_environment_variables():
|
|
237
240
|
"open_deployment": open_deployment,
|
238
241
|
"external_application": external_application,
|
239
242
|
"external_app_module": external_app_module,
|
243
|
+
"cornflow_backend": cornflow_backend,
|
240
244
|
}
|
241
245
|
else:
|
242
246
|
raise Exception("Selected backend not among valid options")
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: cornflow
|
3
|
-
Version: 2.0.
|
3
|
+
Version: 2.0.0a16
|
4
4
|
Summary: cornflow is an open source multi-solver optimization server with a REST API built using flask.
|
5
5
|
Home-page: https://github.com/baobabsoluciones/cornflow
|
6
6
|
Author: baobab soluciones
|
@@ -14,7 +14,7 @@ Requires-Dist: alembic==1.9.2
|
|
14
14
|
Requires-Dist: apispec<=6.3.0
|
15
15
|
Requires-Dist: cachetools==5.3.3
|
16
16
|
Requires-Dist: click<=8.1.7
|
17
|
-
Requires-Dist: cornflow-client==2.0.
|
17
|
+
Requires-Dist: cornflow-client==2.0.0a16
|
18
18
|
Requires-Dist: cryptography<=44.0.1
|
19
19
|
Requires-Dist: databricks-sdk==0.29.0
|
20
20
|
Requires-Dist: disposable-email-domains>=0.0.86
|
@@ -17,7 +17,7 @@ cornflow/cli/migrations.py,sha256=nJbmulqwFxuaSPmo9hJiTl1pUSojeXfAdd9aGM_g9ic,24
|
|
17
17
|
cornflow/cli/permissions.py,sha256=fyIp5M0ZpJWVf_tGZG0DN0Gnk1geruadkdKK11cmRk8,1116
|
18
18
|
cornflow/cli/roles.py,sha256=o7P3yt1g2us2B-vv5R7sXNDgUagPsvPGc7ABL0lCBOQ,521
|
19
19
|
cornflow/cli/schemas.py,sha256=s9IUJWa2G0kpqJaN6PcwbwZtGChTaqq451QqWEyWPBI,6197
|
20
|
-
cornflow/cli/service.py,sha256=
|
20
|
+
cornflow/cli/service.py,sha256=NQuIZQ9HcuTgfKs_qbP_PMmf56sgPnDlyoGQfgWlYB4,15152
|
21
21
|
cornflow/cli/users.py,sha256=VBUqOrS80qdp9E4XLn4ihocHVNWVhWSt19tp0o8mZII,2324
|
22
22
|
cornflow/cli/utils.py,sha256=p54xJEnYWda6rqSQDoZU2qZrFu9kTs4FoF0y3pJLQvI,1377
|
23
23
|
cornflow/cli/views.py,sha256=BjJRIQ5T3C8zl3-pVVkToVjQ6xdAGwnuT9LVEnn_jqM,746
|
@@ -173,8 +173,8 @@ cornflow/tests/unit/test_tables.py,sha256=SW_K8LRLwR1nB0uH8CPQCjeN8Gei-TasAgkOin
|
|
173
173
|
cornflow/tests/unit/test_token.py,sha256=PZ11b46UCQpCESsRiAPhpgWkGAsAwKCVNxVQai_kxXM,4199
|
174
174
|
cornflow/tests/unit/test_users.py,sha256=N5tcF5nSncD0F_ZlBxGuS87p6kNS4hUzRLr3_AcnK-o,22802
|
175
175
|
cornflow/tests/unit/tools.py,sha256=5LuIWqQ4dvnnWn1NiOtDJstRmwGIFRFy7GBFOdnqFEU,3752
|
176
|
-
cornflow-2.0.
|
177
|
-
cornflow-2.0.
|
178
|
-
cornflow-2.0.
|
179
|
-
cornflow-2.0.
|
180
|
-
cornflow-2.0.
|
176
|
+
cornflow-2.0.0a16.dist-info/METADATA,sha256=LpmUtyLc1dSy31nxR5kCysvbK_uMAXwXMuoU8Bm-5Uw,9571
|
177
|
+
cornflow-2.0.0a16.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
|
178
|
+
cornflow-2.0.0a16.dist-info/entry_points.txt,sha256=q9cPKAFBsmHkERCqQ2JcOTM-tVBLHTl-DGxwCXowAWM,46
|
179
|
+
cornflow-2.0.0a16.dist-info/top_level.txt,sha256=Qj9kLFJW1PLb-ZV2s_aCkQ-Wi5W6KC6fFR-LTBrx-rU,24
|
180
|
+
cornflow-2.0.0a16.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|