Sync from SUSE:SLFO:Main python-certifi revision 0d83a1ba71859765f41e0f6419745698

This commit is contained in:
2025-05-13 19:54:18 +02:00
parent 8b2a5dcec9
commit a6a98ccd4c
5 changed files with 52 additions and 25 deletions

BIN
certifi-2024.7.4.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
certifi-2025.1.31.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -1,3 +1,40 @@
-------------------------------------------------------------------
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>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-certifi
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
%{?sle15_python_module_pythons}
Name: python-certifi
Version: 2024.7.4
Version: 2025.1.31
Release: 0
Summary: Python package for providing Mozilla's CA Bundle
License: MPL-2.0

View File

@@ -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