azureml-core 1.59.0.post2__py3-none-any.whl → 1.60.0.post1__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.
@@ -1 +1 @@
1
- ver = "1.59.0"
1
+ ver = "1.60.0"
@@ -208,10 +208,10 @@ def wrap_execution_script(execution_script, schema_file, dependencies, log_aml_d
208
208
  new_script_loc = tempfile.mkstemp(suffix='.py')[1]
209
209
  execution_script = os.path.normpath(execution_script)
210
210
  # CodeQL [SM01305] untrusted data is validated before being used in the path
211
- dependencies.append(execution_script)
212
211
  if not os.path.exists(execution_script):
213
212
  raise WebserviceException('Path to execution script {} does not exist.'.format(execution_script),
214
213
  logger=module_logger)
214
+ dependencies.append(execution_script)
215
215
  if not schema_file:
216
216
  schema_file = ''
217
217
  else:
@@ -1,8 +1,8 @@
1
1
  {
2
- "mcr.microsoft.com/azureml/openmpi4.1.0-cuda11.8-cudnn8-ubuntu22.04": "20250303.v1",
3
- "mcr.microsoft.com/azureml/openmpi4.1.0-ubuntu22.04": "20250303.v1",
4
- "mcr.microsoft.com/azureml/openmpi5.0-cuda12.4-ubuntu22.04": "20250303.v1",
5
- "mcr.microsoft.com/azureml/openmpi5.0-cuda12.5-ubuntu22.04": "20250303.v1",
6
- "mcr.microsoft.com/azureml/openmpi5.0-cuda12.6-ubuntu24.04": "20250303.v1",
7
- "mcr.microsoft.com/azureml/openmpi5.0-ubuntu24.04": "20250303.v1"
2
+ "mcr.microsoft.com/azureml/openmpi4.1.0-cuda11.8-cudnn8-ubuntu22.04": "20250505.v1",
3
+ "mcr.microsoft.com/azureml/openmpi4.1.0-ubuntu22.04": "20250505.v1",
4
+ "mcr.microsoft.com/azureml/openmpi5.0-cuda12.4-ubuntu22.04": "20250505.v1",
5
+ "mcr.microsoft.com/azureml/openmpi5.0-cuda12.5-ubuntu22.04": "20250505.v1",
6
+ "mcr.microsoft.com/azureml/openmpi5.0-cuda12.6-ubuntu24.04": "20250505.v1",
7
+ "mcr.microsoft.com/azureml/openmpi5.0-ubuntu24.04": "20250505.v1"
8
8
  }
@@ -18,7 +18,7 @@ def create_directory(path, set_hidden=False):
18
18
 
19
19
  :rtype None
20
20
  """
21
- path = os.path.normpath(path)
21
+ path = os.path.abspath(os.path.normpath(path))
22
22
  # CodeQL [SM01305] untrusted data is validated before being used in the path
23
23
  if os.path.exists(path):
24
24
  return
@@ -245,20 +245,23 @@ class GCMBlobEncryptionStream:
245
245
 
246
246
  def _encrypt_region(self, data: bytes) -> bytes:
247
247
  """
248
- Encrypt the given region of data using AES-GCM. The result
249
- includes the data in the form: nonce + ciphertext + tag.
250
-
251
- :param bytes data: The data to encrypt.
248
+ Encrypt the given region of data using AES-CBC.
249
+ The result includes the IV + ciphertext.
252
250
  """
253
- # Each region MUST use a different nonce
254
- nonce = os.urandom(12)
251
+ # Generate IV (must be random)
252
+ iv = os.urandom(16)
255
253
 
256
- aesgcm = AESGCM(self.content_encryption_key)
254
+ # Create cipher object
255
+ cipher = Cipher(AES(self.content_encryption_key), CBC(iv), backend=default_backend())
256
+ encryptor = cipher.encryptor()
257
257
 
258
- # Returns ciphertext + tag
259
- cipertext_with_tag = aesgcm.encrypt(nonce, data, None)
260
- return nonce + cipertext_with_tag
258
+ # Pad data to block size
259
+ padder = PKCS7(128).padder()
260
+ padded_data = padder.update(data) + padder.finalize()
261
261
 
262
+ # Encrypt data
263
+ ciphertext = encryptor.update(padded_data) + encryptor.finalize()
264
+ return iv + ciphertext
262
265
 
263
266
  def is_encryption_v2(encryption_data: Optional[_EncryptionData]) -> bool:
264
267
  """
@@ -176,8 +176,7 @@ class CondaDependencies(object):
176
176
 
177
177
  # set index url to sdk origin pypi index if not specified
178
178
  if pip_indexurl or _sdk_origin_url != DEFAULT_SDK_ORIGIN:
179
- cd.set_pip_index_url(
180
- "--index-url {}".format(pip_indexurl if pip_indexurl else _sdk_origin_url))
179
+ cd.set_pip_option("--find-links {}".format(pip_indexurl if pip_indexurl else _sdk_origin_url))
181
180
  cd.set_pip_option("--extra-index-url {}".format(DEFAULT_SDK_ORIGIN))
182
181
 
183
182
  cd.set_python_version(python_version)
@@ -49,8 +49,8 @@ except ImportError:
49
49
 
50
50
  module_logger = logging.getLogger(__name__)
51
51
 
52
- DEFAULT_CPU_IMAGE = _get_tagged_image("mcr.microsoft.com/azureml/openmpi4.1.0-ubuntu20.04")
53
- DEFAULT_GPU_IMAGE = _get_tagged_image("mcr.microsoft.com/azureml/openmpi4.1.0-cuda11.3-cudnn8-ubuntu20.04")
52
+ DEFAULT_CPU_IMAGE = _get_tagged_image("mcr.microsoft.com/azureml/openmpi4.1.0-ubuntu22.04")
53
+ DEFAULT_GPU_IMAGE = _get_tagged_image("mcr.microsoft.com/azureml/openmpi4.1.0-cuda11.8-cudnn8-ubuntu22.04")
54
54
  _DEFAULT_SHM_SIZE = "2g"
55
55
 
56
56
  _CONDA_DEPENDENCIES_FILE_NAME = "conda_dependencies.yml"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: azureml-core
3
- Version: 1.59.0.post2
3
+ Version: 1.60.0.post1
4
4
  Summary: Azure Machine Learning core packages, modules, and classes
5
5
  Home-page: https://docs.microsoft.com/python/api/overview/azure/ml/?view=azure-ml-py
6
6
  Author: Microsoft Corp
@@ -30,9 +30,9 @@ Requires-Dist: argcomplete<4
30
30
  Requires-Dist: humanfriendly<11.0,>=4.7
31
31
  Requires-Dist: paramiko<4.0.0,>=2.0.8
32
32
  Requires-Dist: azure-mgmt-resource<=24.0.0,>=15.0.0
33
- Requires-Dist: azure-mgmt-containerregistry<11,>=8.2.0
34
- Requires-Dist: azure-mgmt-storage<=22.0.0,>=16.0.0
35
- Requires-Dist: azure-mgmt-keyvault<11.0.0,>=0.40.0
33
+ Requires-Dist: azure-mgmt-containerregistry<14,>=8.2.0
34
+ Requires-Dist: azure-mgmt-storage<=23.0.0,>=16.0.0
35
+ Requires-Dist: azure-mgmt-keyvault<12.0.0,>=0.40.0
36
36
  Requires-Dist: azure-mgmt-authorization<5,>=0.40.0
37
37
  Requires-Dist: azure-mgmt-network<=29.0.0
38
38
  Requires-Dist: azure-graphrbac<1.0.0,>=0.40.0
@@ -40,7 +40,7 @@ Requires-Dist: azure-common<2.0.0,>=1.1.12
40
40
  Requires-Dist: msrest<=0.7.1,>=0.5.1
41
41
  Requires-Dist: msrestazure<=0.7,>=0.4.33
42
42
  Requires-Dist: urllib3<3.0.0,>1.26.17
43
- Requires-Dist: packaging<=25.0,>=20.0
43
+ Requires-Dist: packaging<26.0,>=20.0
44
44
  Requires-Dist: python-dateutil<3.0.0,>=2.7.3
45
45
  Requires-Dist: ndg-httpsclient<=0.5.1
46
46
  Requires-Dist: SecretStorage<4.0.0
@@ -49,7 +49,7 @@ Requires-Dist: contextlib2<22.0.0
49
49
  Requires-Dist: docker<8.0.0
50
50
  Requires-Dist: PyJWT<3.0.0
51
51
  Requires-Dist: adal<=1.2.7,>=1.2.0
52
- Requires-Dist: pyopenssl<25.0.0
52
+ Requires-Dist: pyopenssl<26.0.0
53
53
  Requires-Dist: jmespath<2.0.0
54
54
  Dynamic: author
55
55
  Dynamic: classifier
@@ -8,7 +8,7 @@ azureml/_async/worker_pool.py,sha256=L0wPG7JskcjmgCfcIruIyk71pRkL0HbcTritBdcC2rk
8
8
  azureml/_base_sdk_common/__init__.py,sha256=E04eAB1KyV8xIhdRtGDe2IaYMteRQ194h7Pem5ic8Kg,356
9
9
  azureml/_base_sdk_common/_arcadia_token_wrapper.py,sha256=4dMGzRM6pdQiz7BI6PvcW2_pjs3t7lsZck39AiOvmbw,2112
10
10
  azureml/_base_sdk_common/_docstring_wrapper.py,sha256=haPzBtUqTgx4gipecCMggR_pHBaMiUmlkZj-fUHo1do,3390
11
- azureml/_base_sdk_common/_version.py,sha256=bE5CSlrSxu544XGXeH9RM-gCmaSd1lzRoASWKGWfOhE,16
11
+ azureml/_base_sdk_common/_version.py,sha256=k3UgjYQbQQ2ZZJnN7Vtmm85tei5Me7rmP48rD5ca8WA,16
12
12
  azureml/_base_sdk_common/abstract_run_config_element.py,sha256=TTTVNWr17ss1AuWkKPFXgVzcGQt11QlEJ2weIsIZ5qc,1190
13
13
  azureml/_base_sdk_common/auth_utils.py,sha256=c7jiAw_u70xU7HymEgtiGvqch8OqfoGzLW6Mdjuo9Lo,2512
14
14
  azureml/_base_sdk_common/common.py,sha256=oBQrzsb56zjFhLD1OMIfNXNLeVb_wdinDtOebwk9qLI,27836
@@ -232,7 +232,7 @@ azureml/_model_converters/_utils.py,sha256=hSyO7DX0yvA51M9RGD4FeFSYMvXDWpFr_8vKf
232
232
  azureml/_model_converters/model_convert_operation.py,sha256=be45MnV-Jt-f4ebM55b6rCb-DIB0SKvs5kruXwS7SUM,8127
233
233
  azureml/_model_management/__init__.py,sha256=2XIGQap-7lSF-4gfhUFtGzpx9FB7-iUVpW_2omvxiII,269
234
234
  azureml/_model_management/_constants.py,sha256=KfgB8azTm16_DA1ADfTwNXTTXT1m9G5Xnepxy5uSNws,3687
235
- azureml/_model_management/_util.py,sha256=yl5_COrggUp0bNDPtuCKnWel-4OjMZ6W7iAHzfdqeY0,64470
235
+ azureml/_model_management/_util.py,sha256=_chutPsnnaTHmSDjksVucnFURp13Nygp0c2kxSedpjo,64470
236
236
  azureml/_model_management/data/aci_service_payload_template.json,sha256=w_FE0vBE6NHC8FmP72k6YhBIPAKwcZda1CArElpPCmk,465
237
237
  azureml/_model_management/data/aci_specific_service_create_payload_template.json,sha256=QbJ18ayQSLM642iWfjBef9Ra9qr4nOPchvnDptXya9o,371
238
238
  azureml/_model_management/data/aks_service_payload_template.json,sha256=HJq9KXkVG1vG7l740CwlGHKBHI--dfUydAh4QEdWTcs,1091
@@ -247,9 +247,9 @@ azureml/_model_management/data/mms_workspace_image_payload_template.json,sha256=
247
247
  azureml/_project/__init__.py,sha256=fXk56x7HrgsyVMGN5yuE08JN9x0JszBhsBNBX5NOneY,412
248
248
  azureml/_project/_commands.py,sha256=gUNeO7UoxFDplcm5dT68t2pAL_rTKRY8_0oZIS0O_ec,39864
249
249
  azureml/_project/_compute_target_commands.py,sha256=9tEnGkChnFAWvj1xAQHgFd39QOS_Vf2aZYT8DvOYh_w,13262
250
- azureml/_project/azureml_base_images.json,sha256=lXypUbj96jBdaC5rkjOx04KTFCDOhNiJti_enNExg1M,482
250
+ azureml/_project/azureml_base_images.json,sha256=sn-Ho--uL-K1pEy2Ialzsnl7YSxht2wQ8Y_F2xXzcjo,482
251
251
  azureml/_project/azureml_sdk_scope.txt,sha256=5YqX2w4p-GU-a9jvGMr40N5SMLE6ewyJ_plbUmdjxxE,36
252
- azureml/_project/file_utilities.py,sha256=CYpLPh6VFsGirVUBXwKmm6pM_7TbGihKK-WfSlx1D3E,2679
252
+ azureml/_project/file_utilities.py,sha256=D_bjiEJLwUVLCn4gWIPmV-O8xqKJPJooJZNRgAsfSEc,2696
253
253
  azureml/_project/ignore_file.py,sha256=H19Yn2yngfAaK9Lfbz-uuHc-V-vqUhhKUv24IW_s2e8,3395
254
254
  azureml/_project/index_location.txt,sha256=y0QQZ0ezioStHt6IkKGm3Z5FCjS7oBAtBH4QkxQOHsQ,32
255
255
  azureml/_project/mappings.py,sha256=-z_Qfo0EvjqyTpvhR7pv3c8XsPzKmLNQYuQbCz8L_-s,3054
@@ -992,7 +992,7 @@ azureml/_vendor/azure_storage/blob/_blob_service_client.py,sha256=Gf0NcVe8gYb7tR
992
992
  azureml/_vendor/azure_storage/blob/_container_client.py,sha256=cFMkWy_9P9TKqiBaDpWKqpu6uhZKaBOLlOIC7kNvJtI,83005
993
993
  azureml/_vendor/azure_storage/blob/_deserialize.py,sha256=RHJNhg33YmXeREeo6qSnKvCLgADsaeRP06PeVfcL-Jg,8234
994
994
  azureml/_vendor/azure_storage/blob/_download.py,sha256=cLQWcrpzuAV0Fj91LSX-3Hg_-l9AeRPAO9STC0ku7kE,28172
995
- azureml/_vendor/azure_storage/blob/_encryption.py,sha256=_L0xgUmaXmb4rEAveX-qJcrVcd4QvD77KlWWk0j2sTA,41963
995
+ azureml/_vendor/azure_storage/blob/_encryption.py,sha256=-O0OaF9s1GMlqWfeCH-HSUehw0fHuqXiBWa_Z5ybJ2g,42116
996
996
  azureml/_vendor/azure_storage/blob/_lease.py,sha256=qt1KPJWoJHMSaWctZtDz4Zw9OBGMk3WcVrqQLE8bmmQ,16970
997
997
  azureml/_vendor/azure_storage/blob/_list_blobs_helper.py,sha256=UlgLkI5qLpgAWUnDLdqo_tv5nv6bzSGCzWID3NRfAyY,11320
998
998
  azureml/_vendor/azure_storage/blob/_models.py,sha256=uj-AQV34CiWwFqWirwqwsygijrKrWVn35xsRnfI07Fs,58622
@@ -1177,12 +1177,12 @@ azureml/core/_portal.py,sha256=MvzYl-0m1M9nmorgWl7gbpHtQhkf5bL92Ul9H0pB2ds,5987
1177
1177
  azureml/core/_serialization_utils.py,sha256=MnNB6Q62Wv1T1F_obbyVczkGmw1_TqgpruaSf80CWK4,12059
1178
1178
  azureml/core/authentication.py,sha256=HhqjBJoTYEzaTwe9ijjHaouShy-kQBlKIH2991uqYTw,107477
1179
1179
  azureml/core/compute_target.py,sha256=u2Xbfz6qA0jKbWWVrhry_DmBmXu2yYbA-hmWUsLOAFo,17909
1180
- azureml/core/conda_dependencies.py,sha256=HdeqIaxuLPKuvT4zNVsGUDMjZalgbYpNBAXnpEwDUUs,41354
1180
+ azureml/core/conda_dependencies.py,sha256=Y29s0lwU9czj94oSLkTPwN3IajjUtTeXZLRTwgtbc2o,41334
1181
1181
  azureml/core/container_registry.py,sha256=PGwGMaZ0pEolaKv1s_wpAJjJoqB5krEfjbDmbkrvv5Q,2422
1182
1182
  azureml/core/databricks.py,sha256=cbJT89_kc80Rfb5RoCHVttqVHI8_0HeXwSxC4fHXNQo,20593
1183
1183
  azureml/core/dataset.py,sha256=lWnN4kpkEStugePes-qhTqbkKl5y3W_HjMZNWk6FRL0,65849
1184
1184
  azureml/core/datastore.py,sha256=EMbZCkIJcYhi5cugUXS4c8dQxuEwO-Cx6BgznLYP_m0,44333
1185
- azureml/core/environment.py,sha256=YF8TWgsKRdzRUNISKx383SVQQNcdmPzgpZpDoePPk9w,79070
1185
+ azureml/core/environment.py,sha256=MiP_wj-i0E_mIfp5nc9Z0s8S_z1-Ltj9yyx7pAddsHw,79070
1186
1186
  azureml/core/experiment.py,sha256=yC3lVr97RoFXFZGNb1tQUdKJTlK_88jLBjKZXeLun3Q,24537
1187
1187
  azureml/core/keyvault.py,sha256=QchGc35DAimaWzdeEH-1wVatFgFFSWUgMNvtH5othIM,6602
1188
1188
  azureml/core/linked_service.py,sha256=zZEu28ooMIb9fUmuKtqfmNU25GwEvqKciGpDmVoqM5Y,9547
@@ -1323,9 +1323,9 @@ azureml/exceptions/__init__.py,sha256=wAB_C_TNpL8FK6GXeygupED6mG5IfSrLx_moV7NHIp
1323
1323
  azureml/exceptions/_azureml_exception.py,sha256=XxvMTrADJiTIHSn8DHj2fmyDUhYyBuVUqxYR3cuibz4,18989
1324
1324
  azureml/history/__init__.py,sha256=8U_yD6fMdk8Ok3Z-GO_ibddTgQEB-aY6BTT8t9aYGZw,274
1325
1325
  azureml/history/_tracking.py,sha256=IcZoVbHsOA01eQ3Ealnxe1YbNNnQi4LA5ccINB1cTrU,18541
1326
- azureml_core-1.59.0.post2.dist-info/licenses/LICENSE.txt,sha256=GBoIyZ-6vJ4xjRc8U3wTw4EfkuaEdVTm_gbr1Nm8uDI,859
1327
- azureml_core-1.59.0.post2.dist-info/METADATA,sha256=F-yfdrYa4VFPz6AGwtpkNMvWNvBjLkyoI9Iln560GFI,3395
1328
- azureml_core-1.59.0.post2.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
1329
- azureml_core-1.59.0.post2.dist-info/entry_points.txt,sha256=EKn4UdjSeleaw9lk1z12dZ7YK6tX4Ig6FYqaC2Uk8b8,154
1330
- azureml_core-1.59.0.post2.dist-info/top_level.txt,sha256=ZOeEa0TAXo6i5wOjwBoqfIGEuxOcKuscGgNSpizqREY,8
1331
- azureml_core-1.59.0.post2.dist-info/RECORD,,
1326
+ azureml_core-1.60.0.post1.dist-info/licenses/LICENSE.txt,sha256=GBoIyZ-6vJ4xjRc8U3wTw4EfkuaEdVTm_gbr1Nm8uDI,859
1327
+ azureml_core-1.60.0.post1.dist-info/METADATA,sha256=NzEOkcHYQwGBA1iEuSI7F3B4Jcjxo4E4vMZg0LrKhVk,3394
1328
+ azureml_core-1.60.0.post1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
1329
+ azureml_core-1.60.0.post1.dist-info/entry_points.txt,sha256=EKn4UdjSeleaw9lk1z12dZ7YK6tX4Ig6FYqaC2Uk8b8,154
1330
+ azureml_core-1.60.0.post1.dist-info/top_level.txt,sha256=ZOeEa0TAXo6i5wOjwBoqfIGEuxOcKuscGgNSpizqREY,8
1331
+ azureml_core-1.60.0.post1.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (78.1.0)
2
+ Generator: setuptools (80.9.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5