diff --git a/fix2038.patch b/fix2038.patch index 3d99cf6..918b8aa 100644 --- a/fix2038.patch +++ b/fix2038.patch @@ -2,16 +2,16 @@ Author: Bernhard M. Wiedemann Date: 2023-01-14 Subject: Fix tests of python-aiosmtplib after 2038 -diff --git a/trustme/__init__.py b/trustme/__init__.py -index cc280b0..f24e100 100644 ---- a/trustme/__init__.py -+++ b/trustme/__init__.py -@@ -50,7 +50,7 @@ _KEY_SIZE = 2048 +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, organization_name=None, common_name=None): - # type: (Text, Optional[Text], Optional[Text]) -> x509.Name + 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 2588d8c..3f61459 100644 --- a/python-trustme.changes +++ b/python-trustme.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Sun May 14 16:33:47 UTC 2023 - Dirk Müller + +- update to 1.0.0: + * Support for ECDSA keys in certificates and use them by default. + The type of key used for certificates can be controlled by the + key_type parameter on the multiple methods that generate + certificates. ECDSA certificates as they can be generated + significantly faster. + * Support for Python 3.10 and 3.11 (#372, 574) + ------------------------------------------------------------------- Fri Apr 21 12:38:00 UTC 2023 - Dirk Müller diff --git a/python-trustme.spec b/python-trustme.spec index 5834f9d..3b322f9 100644 --- a/python-trustme.spec +++ b/python-trustme.spec @@ -19,7 +19,7 @@ %bcond_without python2 %{?sle15_python_module_pythons} Name: python-trustme -Version: 0.9.0 +Version: 1.0.0 Release: 0 Summary: Fake CA provider for Python tests License: Apache-2.0 OR MIT diff --git a/trustme-0.9.0.tar.gz b/trustme-0.9.0.tar.gz deleted file mode 100644 index fa8da72..0000000 --- a/trustme-0.9.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5e07b23d70ceed64f3bb36ae4b9abc52354c16c98d45ab037bee2b5fbffe586c -size 30081 diff --git a/trustme-1.0.0.tar.gz b/trustme-1.0.0.tar.gz new file mode 100644 index 0000000..c92a8e1 --- /dev/null +++ b/trustme-1.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1d4f0b0fe28091506edc29c19ad90cca387646add436c3ca66ba7bcc53807f55 +size 29567