Skip to content

Commit e321885

Browse files
committed
Update truststore to 0.6.1
1 parent 0d5ec43 commit e321885

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed
+2-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
"""Verify certificates using OS trust stores. This is useful when your system contains
2-
custom certificate authorities such as when using a corporate proxy or using test certificates.
3-
Supports macOS, Windows, and Linux (with OpenSSL).
4-
"""
1+
"""Verify certificates using native system trust stores"""
52

63
import sys as _sys
74

@@ -13,4 +10,4 @@
1310
del _api, _sys # type: ignore[name-defined] # noqa: F821
1411

1512
__all__ = ["SSLContext", "inject_into_ssl", "extract_from_ssl"]
16-
__version__ = "0.6.0"
13+
__version__ = "0.6.1"

src/pip/_vendor/truststore/_api.py

+8-4
Original file line numberDiff line numberDiff line change
@@ -215,15 +215,19 @@ def maximum_version(self) -> ssl.TLSVersion:
215215

216216
@maximum_version.setter
217217
def maximum_version(self, value: ssl.TLSVersion) -> None:
218-
self._ctx.maximum_version = value
218+
_original_super_SSLContext.maximum_version.__set__( # type: ignore[attr-defined]
219+
self._ctx, value
220+
)
219221

220222
@property
221223
def minimum_version(self) -> ssl.TLSVersion:
222224
return self._ctx.minimum_version
223225

224226
@minimum_version.setter
225227
def minimum_version(self, value: ssl.TLSVersion) -> None:
226-
self._ctx.minimum_version = value
228+
_original_super_SSLContext.minimum_version.__set__( # type: ignore[attr-defined]
229+
self._ctx, value
230+
)
227231

228232
@property
229233
def options(self) -> ssl.Options:
@@ -248,8 +252,8 @@ def protocol(self) -> ssl._SSLMethod:
248252
return self._ctx.protocol
249253

250254
@property
251-
def security_level(self) -> int:
252-
return self._ctx.security_level # type: ignore[attr-defined,no-any-return]
255+
def security_level(self) -> int: # type: ignore[override]
256+
return self._ctx.security_level
253257

254258
@property
255259
def verify_flags(self) -> ssl.VerifyFlags:

src/pip/_vendor/vendor.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ setuptools==65.6.3
2020
six==1.16.0
2121
tenacity==8.1.0
2222
tomli==2.0.1
23-
truststore==0.6.0
23+
truststore==0.6.1
2424
webencodings==0.5.1

0 commit comments

Comments
 (0)