diff --git a/certifi-2025.1.31.tar.gz b/certifi-2025.1.31.tar.gz deleted file mode 100644 index 6e95a39..0000000 --- a/certifi-2025.1.31.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3d5da6925056f6f18f119200434a4780a94263f10d1c21d032a6f6b2baa20651 -size 167577 diff --git a/certifi-2025.6.15.tar.gz b/certifi-2025.6.15.tar.gz new file mode 100644 index 0000000..32fb25d --- /dev/null +++ b/certifi-2025.6.15.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d747aa5a8b9bbbb1bb8c22bb13e22bd1f18e9796defa16bab421f7f7a317323b +size 158753 diff --git a/python-certifi-shipped-requests-cabundle.patch b/python-certifi-shipped-requests-cabundle.patch index 8f7e172..f1f4138 100644 --- a/python-certifi-shipped-requests-cabundle.patch +++ b/python-certifi-shipped-requests-cabundle.patch @@ -1,8 +1,8 @@ -Index: certifi-2024.7.4/certifi/core.py +Index: certifi-2025.6.15/certifi/core.py =================================================================== ---- certifi-2024.7.4.orig/certifi/core.py -+++ certifi-2024.7.4/certifi/core.py -@@ -3,112 +3,19 @@ certifi.py +--- certifi-2025.6.15.orig/certifi/core.py ++++ certifi-2025.6.15/certifi/core.py +@@ -3,81 +3,19 @@ certifi.py ~~~~~~~~~~ This module returns the installation location of cacert.pem or its contents. @@ -54,7 +54,7 @@ Index: certifi-2024.7.4/certifi/core.py - def contents() -> str: - return files("certifi").joinpath("cacert.pem").read_text(encoding="ascii") - --elif sys.version_info >= (3, 7): +-else: - - from importlib.resources import path as get_path, read_text - @@ -84,41 +84,10 @@ Index: certifi-2024.7.4/certifi/core.py - _CACERT_CTX = get_path("certifi", "cacert.pem") - _CACERT_PATH = str(_CACERT_CTX.__enter__()) - atexit.register(exit_cacert_ctx) -- -- return _CACERT_PATH -- -- def contents() -> str: -- return read_text("certifi", "cacert.pem", encoding="ascii") -- --else: -- import os -- import types -- from typing import Union -- -- Package = Union[types.ModuleType, str] -- Resource = Union[str, "os.PathLike"] -- -- # This fallback will work for Python versions prior to 3.7 that lack the -- # importlib.resources module but relies on the existing `where` function -- # so won't address issues with environments like PyOxidizer that don't set -- # __file__ on modules. -- def read_text( -- package: Package, -- resource: Resource, -- encoding: str = 'utf-8', -- errors: str = 'strict' -- ) -> str: -- with open(where(), encoding=encoding) as data: -- return data.read() -- -- # If we don't have importlib.resources, then we will just do the old logic -- # of assuming we're on the filesystem and munge the path directly. -- def where() -> str: -- f = os.path.dirname(__file__) +def where(): + return "/etc/ssl/ca-bundle.pem" -- return os.path.join(f, "cacert.pem") +- return _CACERT_PATH - def contents() -> str: - return read_text("certifi", "cacert.pem", encoding="ascii") diff --git a/python-certifi.changes b/python-certifi.changes index ff3f0c8..bad5434 100644 --- a/python-certifi.changes +++ b/python-certifi.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Tue Jun 17 12:54:57 UTC 2025 - Markéta Machová + +- Update to 2024.6.15 + * Declare setuptools as the build backend in pyproject.toml + * remove code that's no longer required that 3.7 is our minimum +- Rebase python-certifi-shipped-requests-cabundle.patch + ------------------------------------------------------------------- Mon Jun 16 06:12:17 UTC 2025 - Steve Kowalik diff --git a/python-certifi.spec b/python-certifi.spec index 5630156..2b101d8 100644 --- a/python-certifi.spec +++ b/python-certifi.spec @@ -18,7 +18,7 @@ %{?sle15_python_module_pythons} Name: python-certifi -Version: 2025.1.31 +Version: 2025.6.15 Release: 0 Summary: Python package for providing Mozilla's CA Bundle License: MPL-2.0