forked from pool/python-certifi
Compare commits
11 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 26ef900fd6 | |||
| 306b1e8aa1 | |||
| bc320ef8cd | |||
| 90c521d3c6 | |||
| dcfa846929 | |||
| 512239f2e2 | |||
| 9e95ff7ca7 | |||
| fcdfc2a685 | |||
| a6c3507a8a | |||
| 8acc9964fd | |||
| e857a608cb |
BIN
certifi-2025.1.31.tar.gz
LFS
Normal file
BIN
certifi-2025.1.31.tar.gz
LFS
Normal file
Binary file not shown.
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:d747aa5a8b9bbbb1bb8c22bb13e22bd1f18e9796defa16bab421f7f7a317323b
|
|
||||||
size 158753
|
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
Index: certifi-2025.6.15/certifi/core.py
|
Index: certifi-2024.7.4/certifi/core.py
|
||||||
===================================================================
|
===================================================================
|
||||||
--- certifi-2025.6.15.orig/certifi/core.py
|
--- certifi-2024.7.4.orig/certifi/core.py
|
||||||
+++ certifi-2025.6.15/certifi/core.py
|
+++ certifi-2024.7.4/certifi/core.py
|
||||||
@@ -3,81 +3,19 @@ certifi.py
|
@@ -3,112 +3,19 @@ certifi.py
|
||||||
~~~~~~~~~~
|
~~~~~~~~~~
|
||||||
|
|
||||||
This module returns the installation location of cacert.pem or its contents.
|
This module returns the installation location of cacert.pem or its contents.
|
||||||
@@ -54,7 +54,7 @@ Index: certifi-2025.6.15/certifi/core.py
|
|||||||
- def contents() -> str:
|
- def contents() -> str:
|
||||||
- return files("certifi").joinpath("cacert.pem").read_text(encoding="ascii")
|
- return files("certifi").joinpath("cacert.pem").read_text(encoding="ascii")
|
||||||
-
|
-
|
||||||
-else:
|
-elif sys.version_info >= (3, 7):
|
||||||
-
|
-
|
||||||
- from importlib.resources import path as get_path, read_text
|
- from importlib.resources import path as get_path, read_text
|
||||||
-
|
-
|
||||||
@@ -84,10 +84,41 @@ Index: certifi-2025.6.15/certifi/core.py
|
|||||||
- _CACERT_CTX = get_path("certifi", "cacert.pem")
|
- _CACERT_CTX = get_path("certifi", "cacert.pem")
|
||||||
- _CACERT_PATH = str(_CACERT_CTX.__enter__())
|
- _CACERT_PATH = str(_CACERT_CTX.__enter__())
|
||||||
- atexit.register(exit_cacert_ctx)
|
- 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():
|
+def where():
|
||||||
+ return "/etc/ssl/ca-bundle.pem"
|
+ return "/etc/ssl/ca-bundle.pem"
|
||||||
|
|
||||||
- return _CACERT_PATH
|
- return os.path.join(f, "cacert.pem")
|
||||||
|
|
||||||
- def contents() -> str:
|
- def contents() -> str:
|
||||||
- return read_text("certifi", "cacert.pem", encoding="ascii")
|
- return read_text("certifi", "cacert.pem", encoding="ascii")
|
||||||
|
|||||||
@@ -1,16 +1,3 @@
|
|||||||
-------------------------------------------------------------------
|
|
||||||
Tue Jun 17 12:54:57 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
|
||||||
|
|
||||||
- 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 <steven.kowalik@suse.com>
|
|
||||||
|
|
||||||
- Switch to pyroject macros.
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Apr 8 13:14:58 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
Tue Apr 8 13:14:58 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -18,10 +18,11 @@
|
|||||||
|
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-certifi
|
Name: python-certifi
|
||||||
Version: 2025.6.15
|
Version: 2025.1.31
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Python package for providing Mozilla's CA Bundle
|
Summary: Python package for providing Mozilla's CA Bundle
|
||||||
License: MPL-2.0
|
License: MPL-2.0
|
||||||
|
Group: Development/Languages/Python
|
||||||
URL: https://github.com/certifi/python-certifi
|
URL: https://github.com/certifi/python-certifi
|
||||||
Source: https://files.pythonhosted.org/packages/source/c/certifi/certifi-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/c/certifi/certifi-%{version}.tar.gz
|
||||||
# PATCH-FIX-SUSE -- prefer SUSE certificates
|
# PATCH-FIX-SUSE -- prefer SUSE certificates
|
||||||
@@ -29,9 +30,7 @@ Patch0: python-certifi-shipped-requests-cabundle.patch
|
|||||||
# PATCH-FEATURE-UPSTREAM two-basic-unit-tests.patch gh#certifi/python-certifi#137 mcepl@suse.com
|
# PATCH-FEATURE-UPSTREAM two-basic-unit-tests.patch gh#certifi/python-certifi#137 mcepl@suse.com
|
||||||
# Add at least primitive test suite (by bnavigator)
|
# Add at least primitive test suite (by bnavigator)
|
||||||
Patch1: two-basic-unit-tests.patch
|
Patch1: two-basic-unit-tests.patch
|
||||||
BuildRequires: %{python_module pip}
|
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module wheel}
|
|
||||||
BuildRequires: ca-certificates
|
BuildRequires: ca-certificates
|
||||||
BuildRequires: ca-certificates-mozilla
|
BuildRequires: ca-certificates-mozilla
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
@@ -52,10 +51,10 @@ Note that on SUSE packages the used CA bundle is actually the system bundle
|
|||||||
%autosetup -p1 -n certifi-%{version}
|
%autosetup -p1 -n certifi-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%pyproject_wheel
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%pyproject_install
|
%python_install
|
||||||
|
|
||||||
%{python_expand #
|
%{python_expand #
|
||||||
rm %{buildroot}%{$python_sitelib}/certifi/cacert.pem
|
rm %{buildroot}%{$python_sitelib}/certifi/cacert.pem
|
||||||
@@ -73,6 +72,6 @@ Note that on SUSE packages the used CA bundle is actually the system bundle
|
|||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%{python_sitelib}/certifi/
|
%{python_sitelib}/certifi/
|
||||||
%{python_sitelib}/certifi-%{version}.dist-info
|
%{python_sitelib}/certifi-%{version}-py*.egg-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user