external-systems 0.101.0rc2__tar.gz → 0.102.0__tar.gz

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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: external-systems
3
- Version: 0.101.0rc2
3
+ Version: 0.102.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
@@ -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.101.0-rc2"
19
+ __version__ = "0.102.0"
@@ -20,18 +20,20 @@ from requests.adapters import HTTPAdapter
20
20
  from urllib3.util.retry import Retry
21
21
 
22
22
 
23
- class WrappedSession(Session):
23
+ class CustomCaBundleSession(Session):
24
24
  """
25
25
  A wrapper for requests.Session to override 'verify' property, ignoring REQUESTS_CA_BUNDLE environment variable.
26
26
 
27
- This is a workaround for https://github.com/kennethreitz/requests/issues/3829 (will be fixed in requests 3.0.0)
27
+ This is a workaround for https://github.com/psf/requests/issues/3829 (will be fixed in requests 3.0.0)
28
28
  """
29
29
 
30
30
  def merge_environment_settings(self, url, proxies, stream, verify, *args, **kwargs): # type: ignore[no-untyped-def]
31
31
  if isinstance(self.verify, str):
32
32
  verify = self.verify
33
33
 
34
- return super(WrappedSession, self).merge_environment_settings(url, proxies, stream, verify, *args, **kwargs)
34
+ return super(CustomCaBundleSession, self).merge_environment_settings(
35
+ url, proxies, stream, verify, *args, **kwargs
36
+ )
35
37
 
36
38
 
37
39
  class RetryingTimeoutHttpAdapter(HTTPAdapter):
@@ -97,7 +99,7 @@ def create_proxy_session(proxy_url: str, proxy_token: str) -> Session:
97
99
  """
98
100
 
99
101
  adapter = ProxyAdapter(proxy_auth={proxy_url: f"Bearer {proxy_token}"})
100
- session = WrappedSession()
102
+ session = CustomCaBundleSession()
101
103
  session.mount("http://", adapter)
102
104
  session.mount("https://", adapter)
103
105
  session.proxies = {"all": proxy_url}
@@ -124,7 +126,7 @@ def create_session(
124
126
  timeout (Optional[Union[float, tuple[float, float], tuple[float, None]]]): Timeout settings for the session.
125
127
  """
126
128
 
127
- session = WrappedSession()
129
+ session = CustomCaBundleSession()
128
130
 
129
131
  if cert:
130
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("".join(new_ca_contents) + os.linesep)
107
+ ca_bundle_file.write(os.linesep.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
  [tool.poetry]
2
2
  name = "external-systems"
3
- version = "0.101.0-rc2"
3
+ version = "0.102.0"
4
4
  description = "A Python library for interacting with Foundry Sources"
5
5
  authors = ["Palantir Technologies, Inc."]
6
6
  license = "Apache-2.0"