zenml-nightly 0.82.0.dev20250511__py3-none-any.whl → 0.82.0.dev20250513__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.
- zenml/VERSION +1 -1
- zenml/cli/login.py +1 -1
- zenml/zen_stores/migrations/alembic.py +37 -13
- zenml/zen_stores/rest_zen_store.py +6 -2
- {zenml_nightly-0.82.0.dev20250511.dist-info → zenml_nightly-0.82.0.dev20250513.dist-info}/METADATA +2 -2
- {zenml_nightly-0.82.0.dev20250511.dist-info → zenml_nightly-0.82.0.dev20250513.dist-info}/RECORD +9 -9
- {zenml_nightly-0.82.0.dev20250511.dist-info → zenml_nightly-0.82.0.dev20250513.dist-info}/LICENSE +0 -0
- {zenml_nightly-0.82.0.dev20250511.dist-info → zenml_nightly-0.82.0.dev20250513.dist-info}/WHEEL +0 -0
- {zenml_nightly-0.82.0.dev20250511.dist-info → zenml_nightly-0.82.0.dev20250513.dist-info}/entry_points.txt +0 -0
zenml/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.82.0.
|
1
|
+
0.82.0.dev20250513
|
zenml/cli/login.py
CHANGED
@@ -1061,7 +1061,7 @@ def logout(
|
|
1061
1061
|
if clear:
|
1062
1062
|
credentials_store.clear_credentials(server_url=server)
|
1063
1063
|
cli_utils.declare(
|
1064
|
-
f"Logged out from {server}
|
1064
|
+
f"Logged out from {server}.\n"
|
1065
1065
|
f"Hint: You can run `zenml login '{server}'` to log in again "
|
1066
1066
|
"to the same server or 'zenml server list' to view other available "
|
1067
1067
|
"servers that you can connect to with 'zenml login <server-url>'."
|
@@ -39,7 +39,7 @@ exclude_tables = ["sqlite_sequence"]
|
|
39
39
|
|
40
40
|
|
41
41
|
def include_object(
|
42
|
-
object: Any, name: str, type_: str, *args: Any, **kwargs: Any
|
42
|
+
object: Any, name: Optional[str], type_: str, *args: Any, **kwargs: Any
|
43
43
|
) -> bool:
|
44
44
|
"""Function used to exclude tables from the migration scripts.
|
45
45
|
|
@@ -135,6 +135,7 @@ class Alembic:
|
|
135
135
|
fn_context_args["fn"] = fn
|
136
136
|
|
137
137
|
with self.engine.connect() as connection:
|
138
|
+
# Configure the context with our metadata
|
138
139
|
self.environment_context.configure(
|
139
140
|
connection=connection,
|
140
141
|
target_metadata=self.metadata,
|
@@ -180,9 +181,15 @@ class Alembic:
|
|
180
181
|
def do_get_current_rev(rev: _RevIdType, context: Any) -> List[Any]:
|
181
182
|
nonlocal current_revisions
|
182
183
|
|
183
|
-
|
184
|
-
|
185
|
-
):
|
184
|
+
# Handle rev parameter in a way that's compatible with different alembic versions
|
185
|
+
rev_input: Any
|
186
|
+
if isinstance(rev, str):
|
187
|
+
rev_input = rev
|
188
|
+
else:
|
189
|
+
rev_input = tuple(str(r) for r in rev)
|
190
|
+
|
191
|
+
# Get current revision(s)
|
192
|
+
for r in self.script_directory.get_all_current(rev_input):
|
186
193
|
if r is None:
|
187
194
|
continue
|
188
195
|
current_revisions.append(r.revision)
|
@@ -200,7 +207,13 @@ class Alembic:
|
|
200
207
|
"""
|
201
208
|
|
202
209
|
def do_stamp(rev: _RevIdType, context: Any) -> List[Any]:
|
203
|
-
|
210
|
+
# Handle rev parameter in a way that's compatible with different alembic versions
|
211
|
+
if isinstance(rev, str):
|
212
|
+
return self.script_directory._stamp_revs(revision, rev)
|
213
|
+
else:
|
214
|
+
# Convert to tuple for compatibility
|
215
|
+
rev_tuple = tuple(str(r) for r in rev)
|
216
|
+
return self.script_directory._stamp_revs(revision, rev_tuple)
|
204
217
|
|
205
218
|
self.run_migrations(do_stamp)
|
206
219
|
|
@@ -212,10 +225,16 @@ class Alembic:
|
|
212
225
|
"""
|
213
226
|
|
214
227
|
def do_upgrade(rev: _RevIdType, context: Any) -> List[Any]:
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
228
|
+
# Handle rev parameter in a way that's compatible with different alembic versions
|
229
|
+
if isinstance(rev, str):
|
230
|
+
return self.script_directory._upgrade_revs(revision, rev)
|
231
|
+
else:
|
232
|
+
if rev:
|
233
|
+
# Use first element or revs for compatibility
|
234
|
+
return self.script_directory._upgrade_revs(
|
235
|
+
revision, str(rev[0])
|
236
|
+
)
|
237
|
+
return []
|
219
238
|
|
220
239
|
self.run_migrations(do_upgrade)
|
221
240
|
|
@@ -227,9 +246,14 @@ class Alembic:
|
|
227
246
|
"""
|
228
247
|
|
229
248
|
def do_downgrade(rev: _RevIdType, context: Any) -> List[Any]:
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
249
|
+
# Handle rev parameter in a way that's compatible with different alembic versions
|
250
|
+
if isinstance(rev, str):
|
251
|
+
return self.script_directory._downgrade_revs(revision, rev)
|
252
|
+
else:
|
253
|
+
if rev:
|
254
|
+
return self.script_directory._downgrade_revs(
|
255
|
+
revision, str(rev[0])
|
256
|
+
)
|
257
|
+
return self.script_directory._downgrade_revs(revision, None)
|
234
258
|
|
235
259
|
self.run_migrations(do_downgrade)
|
@@ -4413,11 +4413,15 @@ class RestZenStore(BaseZenStore):
|
|
4413
4413
|
"The current token is no longer valid, and "
|
4414
4414
|
"it is not possible to generate a new token using the "
|
4415
4415
|
"configured credentials. Please run "
|
4416
|
-
f"`zenml login
|
4417
|
-
"the server or authenticate using
|
4416
|
+
f"`zenml login {self.url}` to "
|
4417
|
+
"re-authenticate to the server or authenticate using "
|
4418
|
+
"an API key. See "
|
4418
4419
|
"https://docs.zenml.io/how-to/project-setup-and-management/connecting-to-zenml/connect-with-a-service-account "
|
4419
4420
|
"for more information."
|
4420
4421
|
)
|
4422
|
+
# Clear the current token from the credentials store to
|
4423
|
+
# force a new authentication flow next time.
|
4424
|
+
get_credentials_store().clear_token(self.url)
|
4421
4425
|
raise e
|
4422
4426
|
elif not re_authenticated:
|
4423
4427
|
# The last request was authenticated with an API token
|
{zenml_nightly-0.82.0.dev20250511.dist-info → zenml_nightly-0.82.0.dev20250513.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: zenml-nightly
|
3
|
-
Version: 0.82.0.
|
3
|
+
Version: 0.82.0.dev20250513
|
4
4
|
Summary: ZenML: Write production-ready ML code.
|
5
5
|
License: Apache-2.0
|
6
6
|
Keywords: machine learning,production,pipeline,mlops,devops
|
@@ -41,7 +41,7 @@ Provides-Extra: terraform
|
|
41
41
|
Provides-Extra: vertex
|
42
42
|
Requires-Dist: Jinja2 ; extra == "server"
|
43
43
|
Requires-Dist: adlfs (>=2021.10.0) ; extra == "adlfs"
|
44
|
-
Requires-Dist: alembic (>=1.8.1
|
44
|
+
Requires-Dist: alembic (>=1.8.1,<=1.15.2)
|
45
45
|
Requires-Dist: aws-profile-manager (>=0.5.0) ; extra == "connectors-aws"
|
46
46
|
Requires-Dist: azure-ai-ml (==1.23.1) ; extra == "azureml"
|
47
47
|
Requires-Dist: azure-identity (>=1.4.0) ; extra == "secrets-azure" or extra == "connectors-azure"
|
{zenml_nightly-0.82.0.dev20250511.dist-info → zenml_nightly-0.82.0.dev20250513.dist-info}/RECORD
RENAMED
@@ -1,5 +1,5 @@
|
|
1
1
|
zenml/README.md,sha256=827dekbOWAs1BpW7VF1a4d7EbwPbjwccX-2zdXBENZo,1777
|
2
|
-
zenml/VERSION,sha256=
|
2
|
+
zenml/VERSION,sha256=GgvcZ4qW8lpLu66ULVW2IWU5xLriT6P_N-LWtNfqCL8,19
|
3
3
|
zenml/__init__.py,sha256=CKEyepFK-7akXYiMrNVh92Nb01Cjs23w4_YyI6sgdc8,2242
|
4
4
|
zenml/actions/__init__.py,sha256=mrt6wPo73iKRxK754_NqsGyJ3buW7RnVeIGXr1xEw8Y,681
|
5
5
|
zenml/actions/base_action.py,sha256=UcaHev6BTuLDwuswnyaPjdA8AgUqB5xPZ-lRtuvf2FU,25553
|
@@ -38,7 +38,7 @@ zenml/cli/downgrade.py,sha256=eTpXts8y4s3wEUwOlvZGWsTngoMV8Stuzj0K-SAQUGU,1887
|
|
38
38
|
zenml/cli/feature.py,sha256=Q8tNvWBlRze3FUyn0_VpOdl316ZW87476j7ezJb16GA,4387
|
39
39
|
zenml/cli/formatter.py,sha256=OoAzgxpOEXrzT9FSFG0Bs5VRtVFEYck0gDYo02GCjzI,6440
|
40
40
|
zenml/cli/integration.py,sha256=Rq37R-QiSvaFOMmlA0YJTwDti4slLp-hEf05vbWxkFk,17346
|
41
|
-
zenml/cli/login.py,sha256
|
41
|
+
zenml/cli/login.py,sha256=7PHA7YEHF3NuBeZLslWivjHbIRtS2POa_V_Gz6Kv0fc,38838
|
42
42
|
zenml/cli/model.py,sha256=HvzyRqcbpcgAPMcFAh4UmHZWbCJq0RMQzYVOUGNUXfM,22638
|
43
43
|
zenml/cli/model_registry.py,sha256=zzxWXXFhKu2B1Wp0u7prKVnN1ftM-JdGdQwlD-5G-QM,20786
|
44
44
|
zenml/cli/pipeline.py,sha256=Vlz1OgGb1Ep-4Ekgd-Wz5SmieWigfx56i8wA5BGl228,19222
|
@@ -1072,7 +1072,7 @@ zenml/zen_stores/__init__.py,sha256=6LTgH6XwDeDxKqVJ1JTfGhmS8II1NLopPloINGmdyI0,
|
|
1072
1072
|
zenml/zen_stores/base_zen_store.py,sha256=AplsW2NR-G9_CU54XvNTQJo4W0KJ5TJV22cjKW4n2BY,16124
|
1073
1073
|
zenml/zen_stores/migrations/README.md,sha256=x04jsb6EOP6PBEGMQlDELiqKEham2O-iztAs9AylMFc,4898
|
1074
1074
|
zenml/zen_stores/migrations/__init__.py,sha256=N9CHfdz0AZ6KniQ450VCIV3H0CuWtx83AloYy82woho,657
|
1075
|
-
zenml/zen_stores/migrations/alembic.py,sha256=
|
1075
|
+
zenml/zen_stores/migrations/alembic.py,sha256=wGiWy9R2MNAos4zj5lYQOJ9ZSfMTmUFu3SGhp1AoMd8,8753
|
1076
1076
|
zenml/zen_stores/migrations/env.py,sha256=hN6GqD2toKL-r9y0FFAf2seJfr79Mzaeqslh5kObcos,1730
|
1077
1077
|
zenml/zen_stores/migrations/script.py.mako,sha256=wTJhgE4DA8I2iVA29sfx74WLfbi3GBnXEwGnH5nNj4s,695
|
1078
1078
|
zenml/zen_stores/migrations/utils.py,sha256=_o6qr0_fKrcYYtrVK3kT0ZrjpyqFiMzRGsSmsqRPaZ0,29527
|
@@ -1272,7 +1272,7 @@ zenml/zen_stores/migrations/versions/f49904a80aa7_increase_length_of_artifact_ta
|
|
1272
1272
|
zenml/zen_stores/migrations/versions/f76a368a25a5_add_stack_description.py,sha256=u8fRomaasFeGhxvM2zU-Ab-AEpVsWm5zRcixxKFXdRw,904
|
1273
1273
|
zenml/zen_stores/migrations/versions/fbd7f18ced1e_increase_step_run_field_lengths.py,sha256=kn-ng5EHe_mmLfffIFbz7T59z-to3oMx8III_4wOsz4,1956
|
1274
1274
|
zenml/zen_stores/migrations/versions/ff538a321a92_migrate_onboarding_state.py,sha256=gsUFLJQ32_o9U35JCVqkqJVVk-zfq3yel25hXhzVFm4,3829
|
1275
|
-
zenml/zen_stores/rest_zen_store.py,sha256
|
1275
|
+
zenml/zen_stores/rest_zen_store.py,sha256=d5JHoGeO_FSg55MmVNIFYmwN1JdAnJ2QbE6R590fKZU,158599
|
1276
1276
|
zenml/zen_stores/schemas/__init__.py,sha256=4EXqExiVyxdnGxhQ_Hz79mOdRuMD0LsGlw0PaP2Ef6o,4333
|
1277
1277
|
zenml/zen_stores/schemas/action_schemas.py,sha256=sv2J2TP12MeyGPQR2JsOPIivbPQ5OImg64exYS7CZBM,6496
|
1278
1278
|
zenml/zen_stores/schemas/api_key_schemas.py,sha256=0pK7b9HlJuQL3DuKT4eGjFb87tyd4x-E2VyxJLpRv3o,7459
|
@@ -1318,8 +1318,8 @@ zenml/zen_stores/secrets_stores/sql_secrets_store.py,sha256=LPFW757WCJLP1S8vrvjs
|
|
1318
1318
|
zenml/zen_stores/sql_zen_store.py,sha256=biOoDb2_zYmpsN-J-FSlKICYdwM9KDIe-_KN_yDf_mA,441414
|
1319
1319
|
zenml/zen_stores/template_utils.py,sha256=GbJ7LgGVYHSCKPEA8RNTxPoVTWqpC77F_lGzjJ4O1Fw,9220
|
1320
1320
|
zenml/zen_stores/zen_store_interface.py,sha256=fF_uL_FplnvGvM5o3jOQ8i1zHXhuhKLL2n4nvIKSR7E,92090
|
1321
|
-
zenml_nightly-0.82.0.
|
1322
|
-
zenml_nightly-0.82.0.
|
1323
|
-
zenml_nightly-0.82.0.
|
1324
|
-
zenml_nightly-0.82.0.
|
1325
|
-
zenml_nightly-0.82.0.
|
1321
|
+
zenml_nightly-0.82.0.dev20250513.dist-info/LICENSE,sha256=wbnfEnXnafPbqwANHkV6LUsPKOtdpsd-SNw37rogLtc,11359
|
1322
|
+
zenml_nightly-0.82.0.dev20250513.dist-info/METADATA,sha256=hMwBzq4y98Z1jeZUvJMdUimsg1jZUzvmzqDMXpMrSIs,24317
|
1323
|
+
zenml_nightly-0.82.0.dev20250513.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
1324
|
+
zenml_nightly-0.82.0.dev20250513.dist-info/entry_points.txt,sha256=QK3ETQE0YswAM2mWypNMOv8TLtr7EjnqAFq1br_jEFE,43
|
1325
|
+
zenml_nightly-0.82.0.dev20250513.dist-info/RECORD,,
|
{zenml_nightly-0.82.0.dev20250511.dist-info → zenml_nightly-0.82.0.dev20250513.dist-info}/LICENSE
RENAMED
File without changes
|
{zenml_nightly-0.82.0.dev20250511.dist-info → zenml_nightly-0.82.0.dev20250513.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|