diff --git a/fix2038.patch b/fix2038.patch deleted file mode 100644 index 918b8aa..0000000 --- a/fix2038.patch +++ /dev/null @@ -1,17 +0,0 @@ -Author: Bernhard M. Wiedemann -Date: 2023-01-14 -Subject: Fix tests of python-aiosmtplib after 2038 - -Index: trustme-1.0.0/src/trustme/__init__.py -=================================================================== ---- trustme-1.0.0.orig/src/trustme/__init__.py -+++ trustme-1.0.0/src/trustme/__init__.py -@@ -37,7 +37,7 @@ __all__ = ["CA"] - # Some versions of cryptography on 32-bit platforms fail if you give - # them dates after ~2038-01-19: - # https://github.com/pyca/cryptography/pull/4658 --DEFAULT_EXPIRY = datetime.datetime(2038, 1, 1) -+DEFAULT_EXPIRY = datetime.datetime(2098, 1, 1) - - def _name(name: str, organization_name: Optional[str] = None, common_name: Optional[str] = None) -> x509.Name: - name_pieces = [ diff --git a/python-trustme.changes b/python-trustme.changes index 29baf88..80ad201 100644 --- a/python-trustme.changes +++ b/python-trustme.changes @@ -1,3 +1,34 @@ +------------------------------------------------------------------- +Thu Jan 16 11:20:19 UTC 2025 - John Paul Adrian Glaubitz + +- Update to 1.2.1 + * Update from deprecated pyOpenSSL APIs to non-deprecated + cryptography APIs. (#670) + +------------------------------------------------------------------- +Tue Nov 5 15:14:17 UTC 2024 - John Paul Adrian Glaubitz + +- Update to 1.2.0 + * Add support for Python 3.13. (#664) + * Allow setting of cert's notBefore attribute (#628) + * Add the Authority Key Identifier extension to child + CA certificates. (#642) + * Remove support for Python 3.8 and PyPy 3.9. (#664) +- Drop add-aki-to-child-certs.patch, merged upstream +- Drop fix2038.patch, fixed upstream +- Update BuildRequires from pyproject.toml + +------------------------------------------------------------------- +Wed Aug 28 06:38:39 UTC 2024 - Steve Kowalik + +- Add patch add-aki-to-child-certs.patch + * Also add Authority Key Identifiers to children certs. + +------------------------------------------------------------------- +Tue Mar 5 02:52:27 UTC 2024 - Steve Kowalik + +- Switch to pyproject and autosetup macros. + ------------------------------------------------------------------- Thu Sep 7 11:03:12 UTC 2023 - Dirk Müller diff --git a/python-trustme.spec b/python-trustme.spec index a21b90a..90bd3a2 100644 --- a/python-trustme.spec +++ b/python-trustme.spec @@ -1,7 +1,7 @@ # # spec file for package python-trustme # -# Copyright (c) 2023 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,19 +18,21 @@ %{?sle15_python_module_pythons} Name: python-trustme -Version: 1.1.0 +Version: 1.2.1 Release: 0 Summary: Fake CA provider for Python tests License: Apache-2.0 OR MIT URL: https://github.com/python-trio/trustme Source: https://files.pythonhosted.org/packages/source/t/trustme/trustme-%{version}.tar.gz -Patch0: fix2038.patch BuildRequires: %{python_module cryptography} +BuildRequires: %{python_module hatchling} BuildRequires: %{python_module idna} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pyOpenSSL} BuildRequires: %{python_module pytest} BuildRequires: %{python_module service_identity} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-cryptography >= 41.0.1 @@ -46,14 +48,13 @@ https://martinfowler.com/bliki/TestDouble.html, that is, the trust circle of the CA is limited to the test environment. %prep -%setup -q -n trustme-%{version} -%patch0 -p1 +%autosetup -p1 -n trustme-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -65,6 +66,6 @@ circle of the CA is limited to the test environment. %license LICENSE.APACHE2 %doc README.rst %{python_sitelib}/trustme -%{python_sitelib}/trustme-%{version}*-info +%{python_sitelib}/trustme-%{version}.dist-info %changelog diff --git a/trustme-1.1.0.tar.gz b/trustme-1.1.0.tar.gz deleted file mode 100644 index 48b1b9d..0000000 --- a/trustme-1.1.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5375ad7fb427074bec956592e0d4ee2a4cf4da68934e1ba4bcf4217126bc45e6 -size 29611 diff --git a/trustme-1.2.1.tar.gz b/trustme-1.2.1.tar.gz new file mode 100644 index 0000000..9ece40d --- /dev/null +++ b/trustme-1.2.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6528ba2bbc7f2db41f33825c8dd13e3e3eb9d334ba0f909713c8c3139f4ae47f +size 26844