forked from pool/python-certifi
Compare commits
15 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 18e59734cc | |||
| 95a35a0763 | |||
| cb1db18440 | |||
| 943458996b | |||
| 951f0a5fdc | |||
| 71092e591d | |||
| a586e2e2de | |||
| 56eea36485 | |||
| 26ef900fd6 | |||
| 306b1e8aa1 | |||
| bc320ef8cd | |||
| 90c521d3c6 | |||
| dcfa846929 | |||
| 512239f2e2 | |||
| 9e95ff7ca7 |
BIN
certifi-2024.7.4.tar.gz
LFS
BIN
certifi-2024.7.4.tar.gz
LFS
Binary file not shown.
3
certifi-2025.11.12.tar.gz
Normal file
3
certifi-2025.11.12.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d8ab5478f2ecd78af242878415affce761ca6bc54a22a27e026d7c25357c3316
|
||||
size 160538
|
||||
@@ -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")
|
||||
|
||||
@@ -1,3 +1,76 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 26 13:11:47 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||
|
||||
- Update to 2025.11.12
|
||||
* Bump actions/download-artifact from 5.0.0 to 6.0.0 (#373)
|
||||
* Bump actions/upload-artifact from 4.6.2 to 5.0.0 (#374)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 22 10:49:37 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||
|
||||
- Update to 2025.10.15
|
||||
* Bump actions/download-artifact from 4.3.0 to 5.0.0
|
||||
* Bump actions/checkout from 4.2.2 to 5.0.0
|
||||
* Bump pypa/gh-action-pypi-publish from 1.12.4 to 1.13.0 (#366)
|
||||
* Bump actions/setup-python from 5.6.0 to 6.0.0 (#367)
|
||||
* Add Python 3.14 classifier in setup.py
|
||||
- from version 2025.08.03
|
||||
* No changes recorded
|
||||
- from version 2025.07.14
|
||||
* No changes recorded
|
||||
- from version 2025.07.09
|
||||
* No changes recorded
|
||||
|
||||
-------------------------------------------------------------------
|
||||
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>
|
||||
|
||||
- Update to 2025.1.31
|
||||
* Added certs
|
||||
- Subject: CN=D-TRUST BR Root CA 2 2023 O=D-Trust GmbH
|
||||
- Subject: CN=D-TRUST EV Root CA 2 2023 O=D-Trust GmbH
|
||||
* Removed certs
|
||||
- Subject: CN=SwissSign Silver CA - G2 O=SwissSign AG
|
||||
- from version 2024.12.14
|
||||
* Upload attestations to PyPI
|
||||
* Added 3.13 classifier (#322)
|
||||
* Test against 3.13 final
|
||||
* Added certs
|
||||
- Subject: CN=GLOBALTRUST 2020 O=e-commerce monitoring GmbH
|
||||
* Removed certs
|
||||
- Subject: CN=SecureSign RootCA11 O=Japan Certification Services, Inc.
|
||||
- Subject: CN=Entrust Root Certification Authority - G4 O=Entrust, Inc.
|
||||
OU=See www.entrust.net/legal-terms/(c) 2015 Entrust, Inc. - for
|
||||
authorized use only
|
||||
- Subject: CN=Security Communication RootCA3 O=SECOM Trust Systems CO.,LTD.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 7 09:18:40 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
|
||||
|
||||
- Make the test suite working just with the standard library.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 9 06:43:31 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 2024.8.30:
|
||||
added certs:
|
||||
* TWCA CYBER Root CA O=TAIWAN-CA OU=Root CA
|
||||
* SecureSign Root CA12 O=Cybertrust Japan Co., Ltd.
|
||||
* SecureSign Root CA14 O=Cybertrust Japan Co., Ltd.
|
||||
* SecureSign Root CA15 O=Cybertrust Japan Co., Ltd.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 9 06:36:13 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-certifi
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC and contributors
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -18,11 +18,10 @@
|
||||
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-certifi
|
||||
Version: 2024.7.4
|
||||
Version: 2025.11.12
|
||||
Release: 0
|
||||
Summary: Python package for providing Mozilla's CA Bundle
|
||||
License: MPL-2.0
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/certifi/python-certifi
|
||||
Source: https://files.pythonhosted.org/packages/source/c/certifi/certifi-%{version}.tar.gz
|
||||
# PATCH-FIX-SUSE -- prefer SUSE certificates
|
||||
@@ -30,7 +29,9 @@ Patch0: python-certifi-shipped-requests-cabundle.patch
|
||||
# PATCH-FEATURE-UPSTREAM two-basic-unit-tests.patch gh#certifi/python-certifi#137 mcepl@suse.com
|
||||
# Add at least primitive test suite (by bnavigator)
|
||||
Patch1: two-basic-unit-tests.patch
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: ca-certificates
|
||||
BuildRequires: ca-certificates-mozilla
|
||||
BuildRequires: fdupes
|
||||
@@ -51,10 +52,10 @@ Note that on SUSE packages the used CA bundle is actually the system bundle
|
||||
%autosetup -p1 -n certifi-%{version}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
|
||||
%{python_expand #
|
||||
rm %{buildroot}%{$python_sitelib}/certifi/cacert.pem
|
||||
@@ -72,6 +73,6 @@ Note that on SUSE packages the used CA bundle is actually the system bundle
|
||||
%license LICENSE
|
||||
%doc README.rst
|
||||
%{python_sitelib}/certifi/
|
||||
%{python_sitelib}/certifi-%{version}-py*.egg-info
|
||||
%{python_sitelib}/certifi-%{version}.dist-info
|
||||
|
||||
%changelog
|
||||
|
||||
@@ -11,18 +11,14 @@ Subject: [PATCH 1/2] add 2 basic unit tests
|
||||
create mode 100644 certifi/tests/__init__.py
|
||||
create mode 100755 certifi/tests/test_certifi.py
|
||||
|
||||
Index: certifi-2024.7.4/certifi/tests/__init__.py
|
||||
===================================================================
|
||||
--- /dev/null
|
||||
+++ certifi-2024.7.4/certifi/tests/__init__.py
|
||||
+++ b/certifi/tests/__init__.py
|
||||
@@ -0,0 +1,2 @@
|
||||
+# certifi.tests module
|
||||
+
|
||||
Index: certifi-2024.7.4/certifi/tests/test_certifi.py
|
||||
===================================================================
|
||||
--- /dev/null
|
||||
+++ certifi-2024.7.4/certifi/tests/test_certifi.py
|
||||
@@ -0,0 +1,23 @@
|
||||
+++ b/certifi/tests/test_certifi.py
|
||||
@@ -0,0 +1,19 @@
|
||||
+# -*- coding: utf-8 -*-
|
||||
+"""
|
||||
+unit tests to make sure everything behaves as expected
|
||||
@@ -35,21 +31,15 @@ Index: certifi-2024.7.4/certifi/tests/test_certifi.py
|
||||
+
|
||||
+
|
||||
+class TestCertifi(unittest.TestCase):
|
||||
+ def test_cabundle_exists(self) -> None:
|
||||
+ assert os.path.exists(certifi.where())
|
||||
+ def test_cabundle_exists(self):
|
||||
+ """Check that the reported bundle exists"""
|
||||
+ self.assertTrue(os.path.exists(certifi.where()))
|
||||
+
|
||||
+ def test_read_contents(self) -> None:
|
||||
+ content = certifi.contents()
|
||||
+ assert "-----BEGIN CERTIFICATE-----" in content
|
||||
+
|
||||
+ def test_py_typed_exists(self) -> None:
|
||||
+ assert os.path.exists(
|
||||
+ os.path.join(os.path.dirname(certifi.__file__), 'py.typed')
|
||||
+ )
|
||||
Index: certifi-2024.7.4/.github/workflows/python-package.yml
|
||||
===================================================================
|
||||
+ def test_read_contents(self):
|
||||
+ """Check that the returned contents contain a certificate"""
|
||||
+ self.assertIn("-----BEGIN CERTIFICATE-----", certifi.contents())
|
||||
--- /dev/null
|
||||
+++ certifi-2024.7.4/.github/workflows/python-package.yml
|
||||
+++ b/.github/workflows/python-package.yml
|
||||
@@ -0,0 +1,40 @@
|
||||
+# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
|
||||
+# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
|
||||
|
||||
Reference in New Issue
Block a user