Skip to content

Commit f796d2f

Browse files
committed
Upgrade truststore to 0.10.3
1 parent bef3535 commit f796d2f

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

news/truststore.vendor.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Upgrade truststore to 0.10.3

src/pip/_vendor/truststore/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@
3333
del _api, _sys # type: ignore[name-defined] # noqa: F821
3434

3535
__all__ = ["SSLContext", "inject_into_ssl", "extract_from_ssl"]
36-
__version__ = "0.10.1"
36+
__version__ = "0.10.3"

src/pip/_vendor/truststore/_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def extract_from_ssl() -> None:
6767
try:
6868
import pip._vendor.urllib3.util.ssl_ as urllib3_ssl
6969

70-
urllib3_ssl.SSLContext = _original_SSLContext # type: ignore[assignment]
70+
urllib3_ssl.SSLContext = _original_SSLContext
7171
except ImportError:
7272
pass
7373

@@ -300,7 +300,7 @@ def verify_mode(self, value: ssl.VerifyMode) -> None:
300300
if sys.version_info >= (3, 13):
301301

302302
def _get_unverified_chain_bytes(sslobj: ssl.SSLObject) -> list[bytes]:
303-
unverified_chain = sslobj.get_unverified_chain() or () # type: ignore[attr-defined]
303+
unverified_chain = sslobj.get_unverified_chain() or ()
304304
return [
305305
cert if isinstance(cert, bytes) else cert.public_bytes(_ssl.ENCODING_DER)
306306
for cert in unverified_chain

src/pip/_vendor/truststore/_openssl.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66

77
# candidates based on https://github.com/tiran/certifi-system-store by Christian Heimes
88
_CA_FILE_CANDIDATES = [
9-
# Alpine, Arch, Fedora 34+, OpenWRT, RHEL 9+, BSD
9+
# Alpine, Arch, Fedora 34-42, OpenWRT, RHEL 9-10, BSD
1010
"/etc/ssl/cert.pem",
11+
# Fedora 43+, RHEL 11+
12+
"/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem",
1113
# Fedora <= 34, RHEL <= 9, CentOS <= 9
1214
"/etc/pki/tls/cert.pem",
1315
# Debian, Ubuntu (requires ca-certificates)

src/pip/_vendor/vendor.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ resolvelib==1.2.0
1515
setuptools==70.3.0
1616
tomli==2.2.1
1717
tomli-w==1.2.0
18-
truststore==0.10.1
18+
truststore==0.10.3
1919
dependency-groups==1.3.1

0 commit comments

Comments
 (0)