external-systems 0.100.0__tar.gz → 0.101.0rc2__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.
- {external_systems-0.100.0 → external_systems-0.101.0rc2}/PKG-INFO +1 -1
- {external_systems-0.100.0 → external_systems-0.101.0rc2}/external_systems/_version.py +1 -1
- {external_systems-0.100.0 → external_systems-0.101.0rc2}/external_systems/sources/_proxies.py +16 -2
- {external_systems-0.100.0 → external_systems-0.101.0rc2}/external_systems/sources/_sources.py +1 -1
- {external_systems-0.100.0 → external_systems-0.101.0rc2}/pyproject.toml +1 -1
- {external_systems-0.100.0 → external_systems-0.101.0rc2}/LICENSE.txt +0 -0
- {external_systems-0.100.0 → external_systems-0.101.0rc2}/README.md +0 -0
- {external_systems-0.100.0 → external_systems-0.101.0rc2}/external_systems/__init__.py +0 -0
- {external_systems-0.100.0 → external_systems-0.101.0rc2}/external_systems/py.typed +0 -0
- {external_systems-0.100.0 → external_systems-0.101.0rc2}/external_systems/sources/__init__.py +0 -0
- {external_systems-0.100.0 → external_systems-0.101.0rc2}/external_systems/sources/_api.py +0 -0
- {external_systems-0.100.0 → external_systems-0.101.0rc2}/external_systems/sources/_connections.py +0 -0
- {external_systems-0.100.0 → external_systems-0.101.0rc2}/external_systems/sources/_refreshable.py +0 -0
- {external_systems-0.100.0 → external_systems-0.101.0rc2}/external_systems/sources/_sockets.py +0 -0
- {external_systems-0.100.0 → external_systems-0.101.0rc2}/external_systems/sources/_utils.py +0 -0
{external_systems-0.100.0 → external_systems-0.101.0rc2}/external_systems/sources/_proxies.py
RENAMED
|
@@ -20,6 +20,20 @@ from requests.adapters import HTTPAdapter
|
|
|
20
20
|
from urllib3.util.retry import Retry
|
|
21
21
|
|
|
22
22
|
|
|
23
|
+
class WrappedSession(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/kennethreitz/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(WrappedSession, self).merge_environment_settings(url, proxies, stream, verify, *args, **kwargs)
|
|
35
|
+
|
|
36
|
+
|
|
23
37
|
class RetryingTimeoutHttpAdapter(HTTPAdapter):
|
|
24
38
|
def __init__(
|
|
25
39
|
self,
|
|
@@ -83,7 +97,7 @@ def create_proxy_session(proxy_url: str, proxy_token: str) -> Session:
|
|
|
83
97
|
"""
|
|
84
98
|
|
|
85
99
|
adapter = ProxyAdapter(proxy_auth={proxy_url: f"Bearer {proxy_token}"})
|
|
86
|
-
session =
|
|
100
|
+
session = WrappedSession()
|
|
87
101
|
session.mount("http://", adapter)
|
|
88
102
|
session.mount("https://", adapter)
|
|
89
103
|
session.proxies = {"all": proxy_url}
|
|
@@ -110,7 +124,7 @@ def create_session(
|
|
|
110
124
|
timeout (Optional[Union[float, tuple[float, float], tuple[float, None]]]): Timeout settings for the session.
|
|
111
125
|
"""
|
|
112
126
|
|
|
113
|
-
session =
|
|
127
|
+
session = WrappedSession()
|
|
114
128
|
|
|
115
129
|
if cert:
|
|
116
130
|
session.cert = cert
|
{external_systems-0.100.0 → external_systems-0.101.0rc2}/external_systems/sources/_sources.py
RENAMED
|
@@ -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(
|
|
107
|
+
ca_bundle_file.write("".join(new_ca_contents) + os.linesep)
|
|
108
108
|
return ca_bundle_file.name
|
|
109
109
|
|
|
110
110
|
@cached_property
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{external_systems-0.100.0 → external_systems-0.101.0rc2}/external_systems/sources/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{external_systems-0.100.0 → external_systems-0.101.0rc2}/external_systems/sources/_connections.py
RENAMED
|
File without changes
|
{external_systems-0.100.0 → external_systems-0.101.0rc2}/external_systems/sources/_refreshable.py
RENAMED
|
File without changes
|
{external_systems-0.100.0 → external_systems-0.101.0rc2}/external_systems/sources/_sockets.py
RENAMED
|
File without changes
|
|
File without changes
|