external-systems 0.100.0__py3-none-any.whl → 0.101.0__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 external-systems might be problematic. Click here for more details.

@@ -16,4 +16,4 @@
16
16
  # The version is set during the publishing step (since we can't know the version in advance)
17
17
  # using the autorelease bot
18
18
 
19
- __version__ = "0.100.0"
19
+ __version__ = "0.101.0"
@@ -20,6 +20,22 @@ from requests.adapters import HTTPAdapter
20
20
  from urllib3.util.retry import Retry
21
21
 
22
22
 
23
+ class CustomCaBundleSession(Session):
24
+ """
25
+ A wrapper for requests.Session to override 'verify' property, ignoring REQUESTS_CA_BUNDLE environment variable.
26
+
27
+ This is a workaround for https://github.com/psf/requests/issues/3829 (will be fixed in requests 3.0.0)
28
+ """
29
+
30
+ def merge_environment_settings(self, url, proxies, stream, verify, *args, **kwargs): # type: ignore[no-untyped-def]
31
+ if isinstance(self.verify, str):
32
+ verify = self.verify
33
+
34
+ return super(CustomCaBundleSession, self).merge_environment_settings(
35
+ url, proxies, stream, verify, *args, **kwargs
36
+ )
37
+
38
+
23
39
  class RetryingTimeoutHttpAdapter(HTTPAdapter):
24
40
  def __init__(
25
41
  self,
@@ -83,7 +99,7 @@ def create_proxy_session(proxy_url: str, proxy_token: str) -> Session:
83
99
  """
84
100
 
85
101
  adapter = ProxyAdapter(proxy_auth={proxy_url: f"Bearer {proxy_token}"})
86
- session = Session()
102
+ session = CustomCaBundleSession()
87
103
  session.mount("http://", adapter)
88
104
  session.mount("https://", adapter)
89
105
  session.proxies = {"all": proxy_url}
@@ -110,7 +126,7 @@ def create_session(
110
126
  timeout (Optional[Union[float, tuple[float, float], tuple[float, None]]]): Timeout settings for the session.
111
127
  """
112
128
 
113
- session = Session()
129
+ session = CustomCaBundleSession()
114
130
 
115
131
  if cert:
116
132
  session.cert = cert
@@ -104,7 +104,7 @@ class Source:
104
104
  new_ca_contents.append(required_ca)
105
105
 
106
106
  with NamedTemporaryFile(delete=False, mode="w") as ca_bundle_file:
107
- ca_bundle_file.write(os.linesep.join(new_ca_contents) + os.linesep)
107
+ ca_bundle_file.write("".join(new_ca_contents) + os.linesep)
108
108
  return ca_bundle_file.name
109
109
 
110
110
  @cached_property
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: external-systems
3
- Version: 0.100.0
3
+ Version: 0.101.0
4
4
  Summary: A Python library for interacting with Foundry Sources
5
5
  License: Apache-2.0
6
6
  Keywords: Palantir,Foundry,Sources,Compute Modules,Python Functions,Transforms
@@ -1,15 +1,15 @@
1
1
  external_systems/__init__.py,sha256=xXDUDD6_qRO-nHuXZx-fXp0R0vc3N_OOsB1F5mF_kpU,651
2
- external_systems/_version.py,sha256=hjlDjGystUTnz8tbYT4EN9fUv5EDzQW6b4kjmTcz03s,749
2
+ external_systems/_version.py,sha256=9hkOxbttQyoLltCQjmnoaDeX4KAllY-mbHklbzg-X4Q,749
3
3
  external_systems/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  external_systems/sources/__init__.py,sha256=aqXbMIy_pnyIC1uPRzQfApLCbhYB4N8iRFnpOX4RdAk,1156
5
5
  external_systems/sources/_api.py,sha256=NV7oNIgzSWz4ROFW8uPpUJjDN5vfFzdTs3yKC37S39k,3262
6
6
  external_systems/sources/_connections.py,sha256=h82npEks29NALAAfMHrXcSnB7TY_OLeXgL3QN9Cssus,2509
7
- external_systems/sources/_proxies.py,sha256=igWRL-kpQ_IlZyJwI_s66rDe0oQ68ltGeFNydgoiR4w,5071
7
+ external_systems/sources/_proxies.py,sha256=8Rq197KkGXVkwlK8lJNxrs3b1xul09XGh9E4r9nedgA,5722
8
8
  external_systems/sources/_refreshable.py,sha256=0pa5XW0_2gTMW-ZymKhlhh3Kka_bWTWffThKvrTTifc,4421
9
9
  external_systems/sources/_sockets.py,sha256=XH51adVnloqg8XYVHPxl6K8R_q2BCh6WZ77cq1L8nRg,4473
10
- external_systems/sources/_sources.py,sha256=-DP1QzuCtXOnsijwTNxI9x2vyEmxgyRB47ZTVQshfXA,10829
10
+ external_systems/sources/_sources.py,sha256=Nqu61CGKyUlErtImCz6tmq8y9RYeEJJ6AGHXA4o5HwA,10821
11
11
  external_systems/sources/_utils.py,sha256=EmUKKiKRDOZ2cZs7FZ4qCSan_lq1K_tquh3kxleB-jA,1004
12
- external_systems-0.100.0.dist-info/LICENSE.txt,sha256=NAk6Uc9K_N_J5V75k9qECpzUnO-ujT-mKK_jk_mboUE,569
13
- external_systems-0.100.0.dist-info/METADATA,sha256=3OYGduGNMYwz9ZI8KIlZRbBzFsNV9N1cJF3FKo6cxXI,4765
14
- external_systems-0.100.0.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
15
- external_systems-0.100.0.dist-info/RECORD,,
12
+ external_systems-0.101.0.dist-info/LICENSE.txt,sha256=NAk6Uc9K_N_J5V75k9qECpzUnO-ujT-mKK_jk_mboUE,569
13
+ external_systems-0.101.0.dist-info/METADATA,sha256=1-jviWJdLiO9z7kXY8IsTVvH-PKUfC0d8B9VhY9BAeU,4765
14
+ external_systems-0.101.0.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
15
+ external_systems-0.101.0.dist-info/RECORD,,