mlrun 1.6.2rc3__py3-none-any.whl → 1.6.2rc5__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.

Potentially problematic release.


This version of mlrun might be problematic. Click here for more details.

mlrun/config.py CHANGED
@@ -444,7 +444,7 @@ default_config = {
444
444
  # pip install <requirement_specifier>, e.g. mlrun==0.5.4, mlrun~=0.5,
445
445
  # git+https://github.com/mlrun/mlrun@development. by default uses the version
446
446
  "mlrun_version_specifier": "",
447
- "kaniko_image": "gcr.io/kaniko-project/executor:v1.8.0", # kaniko builder image
447
+ "kaniko_image": "gcr.io/kaniko-project/executor:v1.21.1", # kaniko builder image
448
448
  "kaniko_init_container_image": "alpine:3.18",
449
449
  # image for kaniko init container when docker registry is ECR
450
450
  "kaniko_aws_cli_image": "amazon/aws-cli:2.7.10",
mlrun/datastore/base.py CHANGED
@@ -27,6 +27,7 @@ import requests
27
27
  import urllib3
28
28
  from deprecated import deprecated
29
29
 
30
+ import mlrun.config
30
31
  import mlrun.errors
31
32
  from mlrun.errors import err_to_str
32
33
  from mlrun.utils import StorePrefix, is_ipython, logger
@@ -34,10 +35,6 @@ from mlrun.utils import StorePrefix, is_ipython, logger
34
35
  from .store_resources import is_store_uri, parse_store_uri
35
36
  from .utils import filter_df_start_end_time, select_columns_from_df
36
37
 
37
- verify_ssl = False
38
- if not verify_ssl:
39
- urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
40
-
41
38
 
42
39
  class FileStats:
43
40
  def __init__(self, size, modified, content_type=None):
@@ -643,17 +640,6 @@ def basic_auth_header(user, password):
643
640
  return {"Authorization": authstr}
644
641
 
645
642
 
646
- def http_get(url, headers=None, auth=None):
647
- try:
648
- response = requests.get(url, headers=headers, auth=auth, verify=verify_ssl)
649
- except OSError as exc:
650
- raise OSError(f"error: cannot connect to {url}: {err_to_str(exc)}")
651
-
652
- mlrun.errors.raise_for_status(response)
653
-
654
- return response.content
655
-
656
-
657
643
  class HttpStore(DataStore):
658
644
  def __init__(self, parent, schema, name, endpoint="", secrets: dict = None):
659
645
  super().__init__(parent, name, schema, endpoint, secrets)
@@ -681,7 +667,7 @@ class HttpStore(DataStore):
681
667
  raise ValueError("unimplemented")
682
668
 
683
669
  def get(self, key, size=None, offset=0):
684
- data = http_get(self.url + self._join(key), self._headers, self.auth)
670
+ data = self._http_get(self.url + self._join(key), self._headers, self.auth)
685
671
  if offset:
686
672
  data = data[offset:]
687
673
  if size:
@@ -701,6 +687,26 @@ class HttpStore(DataStore):
701
687
  f"schema as it is not secure and is not recommended."
702
688
  )
703
689
 
690
+ def _http_get(
691
+ self,
692
+ url,
693
+ headers=None,
694
+ auth=None,
695
+ ):
696
+ # import here to prevent import cycle
697
+ from mlrun.config import config as mlconf
698
+
699
+ verify_ssl = mlconf.httpdb.http.verify
700
+ try:
701
+ if not verify_ssl:
702
+ urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
703
+ response = requests.get(url, headers=headers, auth=auth, verify=verify_ssl)
704
+ except OSError as exc:
705
+ raise OSError(f"error: cannot connect to {url}: {err_to_str(exc)}")
706
+
707
+ mlrun.errors.raise_for_status(response)
708
+ return response.content
709
+
704
710
 
705
711
  # This wrapper class is designed to extract the 'ds' schema and profile name from URL-formatted paths.
706
712
  # Within fsspec, the AbstractFileSystem::_strip_protocol() internal method is used to handle complete URL paths.
@@ -1,4 +1,4 @@
1
1
  {
2
- "git_commit": "2f7cf62583c4ef1f62a48781dbacbb13ec2cc373",
3
- "version": "1.6.2-rc3"
2
+ "git_commit": "467e492c609b314126e880f26a0c116253d4a48c",
3
+ "version": "1.6.2-rc5"
4
4
  }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mlrun
3
- Version: 1.6.2rc3
3
+ Version: 1.6.2rc5
4
4
  Summary: Tracking and config of machine learning runs
5
5
  Home-page: https://github.com/mlrun/mlrun
6
6
  Author: Yaron Haviv
@@ -1,6 +1,6 @@
1
1
  mlrun/__init__.py,sha256=o9dHUfVFADfsi6GnOPLr2OkfkHdPvOnA7rkoECen0-I,7248
2
2
  mlrun/__main__.py,sha256=zd-o0SkFH69HhIWKhqXnNURsrtpIcOJYYq50JfAxW7k,49234
3
- mlrun/config.py,sha256=1XHLhXRfjAHRHvkX5Ld4tu88MK2LMS1F0UMZgo6I9Uk,62698
3
+ mlrun/config.py,sha256=h-ibiSUHu3RoJlYR84uzBQ4XaBP1gqbh5V9wLfztnkY,62699
4
4
  mlrun/errors.py,sha256=YdUtkN3qJ6yrseNygmKxmSWOfQ_RdKBhRxwwyMlTQCM,7106
5
5
  mlrun/execution.py,sha256=tgp6PcujZvGhDDVzPNs32YH_JNzaxfSd25yeuLwmjzg,40880
6
6
  mlrun/features.py,sha256=UQQ2uh5Xh9XsMGiYBqh3bKgDhOHANjv1gQgWyId9qQE,15624
@@ -66,7 +66,7 @@ mlrun/data_types/spark.py,sha256=qKQ2TIAPQWDgmIOmpyV5_uuyUX3AnXWSq6GPpVjVIek,945
66
66
  mlrun/data_types/to_pandas.py,sha256=uq7y1svEzaDaPg92YP3p3k3BDI48XWZ2bDdH6aJSvso,9991
67
67
  mlrun/datastore/__init__.py,sha256=bsRzu39UOocQAAl_nOKCbhxrZhWUEXrAc8WV3zs0VyI,4118
68
68
  mlrun/datastore/azure_blob.py,sha256=pnl7XITAxz7MMp7owgKWIM0nTMUlMCMvlqZW2fpKkus,8734
69
- mlrun/datastore/base.py,sha256=KN120uIJIkGdeZvG1gVZzbXH-BAgup3wrxpY4OQVz4A,24750
69
+ mlrun/datastore/base.py,sha256=ldisbMJ-Cy6EbayrXwcakRjx1ETpA4TIYlLTFx59arI,24996
70
70
  mlrun/datastore/datastore.py,sha256=xnK-zKrDwTkiZQgzLpcz8d629avpjYtU9UN3WZpdjww,8810
71
71
  mlrun/datastore/datastore_profile.py,sha256=vBpkAcnGiYUO09ihg_jPgPdpo2GVBrOOSHYWWttqBag,14899
72
72
  mlrun/datastore/dbfs_store.py,sha256=5IkxnFQXkW0fdx-ca5jjQnUdTsTfNdJzMvV31ZpDNrM,6634
@@ -304,11 +304,11 @@ mlrun/utils/notifications/notification/ipython.py,sha256=qrBmtECiRG6sZpCIVMg7RZc
304
304
  mlrun/utils/notifications/notification/slack.py,sha256=5JysqIpUYUZKXPSeeZtbl7qb2L9dj7p2NvnEBcEsZkA,3898
305
305
  mlrun/utils/notifications/notification/webhook.py,sha256=QHezCuN5uXkLcroAGxGrhGHaxAdUvkDLIsp27_Yrfd4,2390
306
306
  mlrun/utils/version/__init__.py,sha256=7kkrB7hEZ3cLXoWj1kPoDwo4MaswsI2JVOBpbKgPAgc,614
307
- mlrun/utils/version/version.json,sha256=2dWT7X4oFhl7dz_DuSTIRRraAx9Wwamq91U317URAUk,88
307
+ mlrun/utils/version/version.json,sha256=YIkVDLi1JX_TONuWPjSwtFW540w1375CUcgwIAjAQg8,88
308
308
  mlrun/utils/version/version.py,sha256=HMwseV8xjTQ__6T6yUWojx_z6yUj7Io7O4NcCCH_sz8,1970
309
- mlrun-1.6.2rc3.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
310
- mlrun-1.6.2rc3.dist-info/METADATA,sha256=YGh5nV9B1wTT03n0R6ndwIxpTnJ2yL1-hEJSko1AJ8s,18291
311
- mlrun-1.6.2rc3.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
312
- mlrun-1.6.2rc3.dist-info/entry_points.txt,sha256=1Owd16eAclD5pfRCoJpYC2ZJSyGNTtUr0nCELMioMmU,46
313
- mlrun-1.6.2rc3.dist-info/top_level.txt,sha256=NObLzw3maSF9wVrgSeYBv-fgnHkAJ1kEkh12DLdd5KM,6
314
- mlrun-1.6.2rc3.dist-info/RECORD,,
309
+ mlrun-1.6.2rc5.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
310
+ mlrun-1.6.2rc5.dist-info/METADATA,sha256=HWiySCk5hexzTIkyKNMeoBE9OZMp00kj0f9BlmCO7IM,18291
311
+ mlrun-1.6.2rc5.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
312
+ mlrun-1.6.2rc5.dist-info/entry_points.txt,sha256=1Owd16eAclD5pfRCoJpYC2ZJSyGNTtUr0nCELMioMmU,46
313
+ mlrun-1.6.2rc5.dist-info/top_level.txt,sha256=NObLzw3maSF9wVrgSeYBv-fgnHkAJ1kEkh12DLdd5KM,6
314
+ mlrun-1.6.2rc5.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.42.0)
2
+ Generator: bdist_wheel (0.43.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5