Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-josepy for openSUSE:Factory checked in at 2025-02-05 12:42:41 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-josepy (Old) and /work/SRC/openSUSE:Factory/.python-josepy.new.2316 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-josepy" Wed Feb 5 12:42:41 2025 rev:16 rq:1243289 version:1.15.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-josepy/python-josepy.changes 2024-10-29 14:37:19.802943427 +0100 +++ /work/SRC/openSUSE:Factory/.python-josepy.new.2316/python-josepy.changes 2025-02-05 12:43:02.203015604 +0100 @@ -1,0 +2,17 @@ +Wed Feb 5 08:59:30 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaub...@suse.com> + +- Update to 1.15.0 + * Added a deprecation warning about future backwards incompatible changes. The + text of that warning is "The next major version of josepy will remove + josepy.util.ComparableX509 and all uses of it as part of removing our + dependency on PyOpenSSL. This includes modifying any functions with + ComparableX509 parameters or return values. This will be a breaking change. + To avoid breakage, we recommend pinning josepy < 2.0.0 until josepy 2.0.0 is + out and you've had time to update your code." + * Added support for Python 3.13. + * Dropped support for Python 3.7. + * Support for Python 3.8 has been deprecated and will be removed in the next + scheduled release. +- Drop ignore-pyopenssl-warnings.patch, merged upstream + +------------------------------------------------------------------- Old: ---- ignore-pyopenssl-warnings.patch josepy-1.14.0.tar.gz New: ---- josepy-1.15.0.tar.gz BETA DEBUG BEGIN: Old: scheduled release. - Drop ignore-pyopenssl-warnings.patch, merged upstream BETA DEBUG END: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-josepy.spec ++++++ --- /var/tmp/diff_new_pack.NhRo2w/_old 2025-02-05 12:43:02.699036075 +0100 +++ /var/tmp/diff_new_pack.NhRo2w/_new 2025-02-05 12:43:02.703036241 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-josepy # -# 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 @@ -19,14 +19,13 @@ %define libname josepy %{?sle15_python_module_pythons} Name: python-%{libname} -Version: 1.14.0 +Version: 1.15.0 Release: 0 Summary: JOSE protocol implementation in Python License: Apache-2.0 URL: https://github.com/certbot/josepy Source0: https://files.pythonhosted.org/packages/source/j/%{libname}/%{libname}-%{version}.tar.gz Source2: %{name}.keyring -Patch1: https://github.com/certbot/josepy/commit/350410fc1d38c4ac8422816b6865ac8cd9c60fc7.patch#/ignore-pyopenssl-warnings.patch BuildRequires: %{python_module base >= 3.7} BuildRequires: %{python_module coverage >= 4.0} BuildRequires: %{python_module cryptography >= 1.5} ++++++ josepy-1.14.0.tar.gz -> josepy-1.15.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/josepy-1.14.0/CHANGELOG.rst new/josepy-1.15.0/CHANGELOG.rst --- old/josepy-1.14.0/CHANGELOG.rst 2023-11-01 14:36:41.805958700 +0100 +++ new/josepy-1.15.0/CHANGELOG.rst 2025-01-23 00:52:14.976892700 +0100 @@ -1,6 +1,21 @@ Changelog ========= +1.15.0 (2025-01-22) +------------------- + +* Added a deprecation warning about future backwards incompatible changes. The + text of that warning is "The next major version of josepy will remove + josepy.util.ComparableX509 and all uses of it as part of removing our + dependency on PyOpenSSL. This includes modifying any functions with + ComparableX509 parameters or return values. This will be a breaking change. + To avoid breakage, we recommend pinning josepy < 2.0.0 until josepy 2.0.0 is + out and you've had time to update your code." +* Added support for Python 3.13. +* Dropped support for Python 3.7. +* Support for Python 3.8 has been deprecated and will be removed in the next + scheduled release. + 1.14.0 (2023-11-01) ------------------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/josepy-1.14.0/CONTRIBUTING.md new/josepy-1.15.0/CONTRIBUTING.md --- old/josepy-1.14.0/CONTRIBUTING.md 2023-11-01 14:36:41.806066000 +0100 +++ new/josepy-1.15.0/CONTRIBUTING.md 2025-01-23 00:52:14.976948000 +0100 @@ -28,7 +28,7 @@ If you're a developer, we have some helpful information in our [Developer's Guide](https://certbot.eff.org/docs/contributing.html) to get you -started. In particular, we recommend you read these sections +started. In particular, we recommend you read these sections - [Finding issues to work on](https://certbot.eff.org/docs/contributing.html#find-issues-to-work-on) - [Coding style](https://certbot.eff.org/docs/contributing.html#coding-style) @@ -71,3 +71,10 @@ ```bash $ tox -l ``` + +## Updating dependencies + +Our poetry.lock file is only used during development so security +vulnerabilities in the pinned packages are rarely relevant. With that said, if +you want to update package versions, you can use the [`poetry update` +command](https://python-poetry.org/docs/cli/#update). diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/josepy-1.14.0/PKG-INFO new/josepy-1.15.0/PKG-INFO --- old/josepy-1.14.0/PKG-INFO 1970-01-01 01:00:00.000000000 +0100 +++ new/josepy-1.15.0/PKG-INFO 1970-01-01 01:00:00.000000000 +0100 @@ -1,23 +1,23 @@ Metadata-Version: 2.1 Name: josepy -Version: 1.14.0 +Version: 1.15.0 Summary: JOSE protocol implementation in Python Home-page: https://github.com/certbot/josepy License: Apache-2.0 Author: Certbot Project Author-email: certbot-...@eff.org -Requires-Python: >=3.7,<4.0 +Requires-Python: >=3.8,<4.0 Classifier: Development Status :: 5 - Production/Stable Classifier: Intended Audience :: Developers Classifier: License :: OSI Approved :: Apache Software License Classifier: Programming Language :: Python Classifier: Programming Language :: Python :: 3 -Classifier: Programming Language :: Python :: 3.7 Classifier: Programming Language :: Python :: 3.8 Classifier: Programming Language :: Python :: 3.9 Classifier: Programming Language :: Python :: 3.10 Classifier: Programming Language :: Python :: 3.11 Classifier: Programming Language :: Python :: 3.12 +Classifier: Programming Language :: Python :: 3.13 Classifier: Topic :: Internet :: WWW/HTTP Classifier: Topic :: Security Provides-Extra: docs @@ -38,11 +38,7 @@ .. image:: https://img.shields.io/badge/code%20style-black-000000.svg :target: https://github.com/psf/black -Originally developed as part of the ACME_ protocol implementation. - -.. _ACME: https://pypi.python.org/pypi/acme - -To learn how to contribute to this project, see CONTRIBUTING.md_. +For more information about contributing to this project, see CONTRIBUTING.md_. .. _CONTRIBUTING.md: CONTRIBUTING.md diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/josepy-1.14.0/README.rst new/josepy-1.15.0/README.rst --- old/josepy-1.14.0/README.rst 2023-11-01 14:36:41.806271000 +0100 +++ new/josepy-1.15.0/README.rst 2025-01-23 00:52:14.977072200 +0100 @@ -9,10 +9,6 @@ .. image:: https://img.shields.io/badge/code%20style-black-000000.svg :target: https://github.com/psf/black -Originally developed as part of the ACME_ protocol implementation. - -.. _ACME: https://pypi.python.org/pypi/acme - -To learn how to contribute to this project, see CONTRIBUTING.md_. +For more information about contributing to this project, see CONTRIBUTING.md_. .. _CONTRIBUTING.md: CONTRIBUTING.md diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/josepy-1.14.0/docs/conf.py new/josepy-1.15.0/docs/conf.py --- old/josepy-1.14.0/docs/conf.py 2023-11-01 14:36:41.833833500 +0100 +++ new/josepy-1.15.0/docs/conf.py 2025-01-23 00:52:15.005099000 +0100 @@ -63,9 +63,9 @@ # built documents. # # The short X.Y version. -version = u'1.14' +version = "1.15" # The full version, including alpha/beta/rc tags. -release = u'1.14.0' +release = "1.15.0" # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. @@ -185,6 +185,6 @@ # Example configuration for intersphinx: refer to the Python standard library. intersphinx_mapping = { - "https://docs.python.org/": None, - "https://cryptography.io/en/latest/": None, + "python": ("https://docs.python.org/", None), + "cryptography": ("https://cryptography.io/en/latest/", None), } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/josepy-1.14.0/docs/requirements.txt new/josepy-1.15.0/docs/requirements.txt --- old/josepy-1.14.0/docs/requirements.txt 2023-11-01 14:36:41.807566200 +0100 +++ new/josepy-1.15.0/docs/requirements.txt 1970-01-01 01:00:00.000000000 +0100 @@ -1,4 +0,0 @@ -# We pin our dependencies with a constraints file for increased stability. - --c ../constraints.txt --e .[docs] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/josepy-1.14.0/pyproject.toml new/josepy-1.15.0/pyproject.toml --- old/josepy-1.14.0/pyproject.toml 2023-11-01 14:36:42.032093000 +0100 +++ new/josepy-1.15.0/pyproject.toml 2025-01-23 00:52:15.189929200 +0100 @@ -8,7 +8,7 @@ [tool.poetry] name = "josepy" -version = "1.14.0" +version = "1.15.0" description = "JOSE protocol implementation in Python" license = "Apache License 2.0" classifiers = [ @@ -17,12 +17,12 @@ "License :: OSI Approved :: Apache Software License", "Programming Language :: Python", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Topic :: Internet :: WWW/HTTP", "Topic :: Security", ] @@ -38,7 +38,7 @@ [tool.poetry.dependencies] # This should be kept in sync with the value of target-version in our # configuration for black below. -python = "^3.7" +python = "^3.8" # load_pem_private/public_key (>=0.6) # rsa_recover_prime_factors (>=0.8) # add sign() and verify() to asymetric keys (RSA >=1.4, ECDSA >=1.5) @@ -82,7 +82,7 @@ line-length = 100 # This should be kept in sync with the version of Python specified in poetry's # dependencies above. -target-version = ['py37', 'py38', 'py39', 'py310', 'py311', 'py312'] +target-version = ['py38', 'py39', 'py310', 'py311', 'py312', 'py313'] # Mypy tooling configuration @@ -95,8 +95,14 @@ # Pytest tooling configuration [tool.pytest.ini_options] -# We also ignore our own deprecation warning about dropping Python 3.7 support. -filterwarnings = ["error", "ignore:Python 3.7 support will be dropped:DeprecationWarning"] +filterwarnings = [ + "error", + "ignore:CSR support in pyOpenSSL is deprecated:DeprecationWarning", + # We ignore our own warning about dropping Python 3.8 support. + "ignore:Python 3.8 support will be dropped:DeprecationWarning", + # We ignore our own warning about ComparableX509 + "ignore:.*josepy will remove josepy.util.ComparableX509", +] norecursedirs = "*.egg .eggs dist build docs .tox" # Isort tooling configuration diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/josepy-1.14.0/src/josepy/__init__.py new/josepy-1.15.0/src/josepy/__init__.py --- old/josepy-1.14.0/src/josepy/__init__.py 2023-11-01 14:36:41.808747000 +0100 +++ new/josepy-1.15.0/src/josepy/__init__.py 2025-01-23 00:52:14.979236800 +0100 @@ -25,6 +25,7 @@ .. _ACME: https://pypi.python.org/pypi/acme """ + import sys import warnings @@ -76,9 +77,9 @@ ImmutableMap, ) -if sys.version_info[:2] == (3, 7): +if sys.version_info[:2] == (3, 8): warnings.warn( - "Python 3.7 support will be dropped in the next scheduled release of " + "Python 3.8 support will be dropped in the next scheduled release of " "josepy. Please upgrade your Python version.", DeprecationWarning, ) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/josepy-1.14.0/src/josepy/b64.py new/josepy-1.15.0/src/josepy/b64.py --- old/josepy-1.14.0/src/josepy/b64.py 2023-11-01 14:36:41.808879100 +0100 +++ new/josepy-1.15.0/src/josepy/b64.py 2025-01-23 00:52:14.979285000 +0100 @@ -10,6 +10,7 @@ standard library. """ + import base64 from typing import Union diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/josepy-1.14.0/src/josepy/errors.py new/josepy-1.15.0/src/josepy/errors.py --- old/josepy-1.14.0/src/josepy/errors.py 2023-11-01 14:36:41.808996700 +0100 +++ new/josepy-1.15.0/src/josepy/errors.py 2025-01-23 00:52:14.979330800 +0100 @@ -1,4 +1,5 @@ """JOSE errors.""" + from typing import Any diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/josepy-1.14.0/src/josepy/interfaces.py new/josepy-1.15.0/src/josepy/interfaces.py --- old/josepy-1.14.0/src/josepy/interfaces.py 2023-11-01 14:36:41.809141400 +0100 +++ new/josepy-1.15.0/src/josepy/interfaces.py 2025-01-23 00:52:14.979390000 +0100 @@ -1,4 +1,5 @@ """JOSE interfaces.""" + import abc import json from collections.abc import Mapping, Sequence diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/josepy-1.14.0/src/josepy/json_util.py new/josepy-1.15.0/src/josepy/json_util.py --- old/josepy-1.14.0/src/josepy/json_util.py 2023-11-01 14:36:41.809327800 +0100 +++ new/josepy-1.15.0/src/josepy/json_util.py 2025-01-23 00:52:14.979458600 +0100 @@ -6,6 +6,7 @@ .. _`Go's "json" package`: http://golang.org/pkg/encoding/json/ """ + import abc import binascii import logging diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/josepy-1.14.0/src/josepy/jwa.py new/josepy-1.15.0/src/josepy/jwa.py --- old/josepy-1.14.0/src/josepy/jwa.py 2023-11-01 14:36:41.809478800 +0100 +++ new/josepy-1.15.0/src/josepy/jwa.py 2025-01-23 00:52:14.979534100 +0100 @@ -3,6 +3,7 @@ https://tools.ietf.org/html/draft-ietf-jose-json-web-algorithms-40 """ + import abc import logging from collections.abc import Hashable diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/josepy-1.14.0/src/josepy/jwk.py new/josepy-1.15.0/src/josepy/jwk.py --- old/josepy-1.14.0/src/josepy/jwk.py 2023-11-01 14:36:41.809641400 +0100 +++ new/josepy-1.15.0/src/josepy/jwk.py 2025-01-23 00:52:14.979608300 +0100 @@ -1,4 +1,5 @@ """JSON Web Key.""" + import abc import json import logging diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/josepy-1.14.0/src/josepy/jws.py new/josepy-1.15.0/src/josepy/jws.py --- old/josepy-1.14.0/src/josepy/jws.py 2023-11-01 14:36:41.809802000 +0100 +++ new/josepy-1.15.0/src/josepy/jws.py 2025-01-23 00:52:14.979677700 +0100 @@ -1,4 +1,5 @@ """JSON Web Signature.""" + import argparse import base64 import sys diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/josepy-1.14.0/src/josepy/magic_typing.py new/josepy-1.15.0/src/josepy/magic_typing.py --- old/josepy-1.14.0/src/josepy/magic_typing.py 2023-11-01 14:36:41.809918900 +0100 +++ new/josepy-1.15.0/src/josepy/magic_typing.py 2025-01-23 00:52:14.979720600 +0100 @@ -1,4 +1,5 @@ """Shim class to not have to depend on typing module in prod.""" + # mypy: ignore-errors import sys import warnings diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/josepy-1.14.0/src/josepy/util.py new/josepy-1.15.0/src/josepy/util.py --- old/josepy-1.14.0/src/josepy/util.py 2023-11-01 14:36:41.810105600 +0100 +++ new/josepy-1.15.0/src/josepy/util.py 2025-01-23 00:52:14.979972800 +0100 @@ -1,4 +1,5 @@ """JOSE utilities.""" + import abc import sys import warnings @@ -21,9 +22,19 @@ :ivar wrapped: Wrapped certificate or certificate request. :type wrapped: `OpenSSL.crypto.X509` or `OpenSSL.crypto.X509Req`. + .. deprecated:: 1.15.0 """ def __init__(self, wrapped: Union[crypto.X509, crypto.X509Req]) -> None: + warnings.warn( + "The next major version of josepy will remove josepy.util.ComparableX509 and all " + "uses of it as part of removing our dependency on PyOpenSSL. This includes " + "modifying any functions with ComparableX509 parameters or return values. This " + "will be a breaking change. To avoid breakage, we recommend pinning josepy < 2.0.0 " + "until josepy 2.0.0 is out and you've had time to update your code.", + DeprecationWarning, + stacklevel=2, + ) assert isinstance(wrapped, crypto.X509) or isinstance(wrapped, crypto.X509Req) self.wrapped = wrapped diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/josepy-1.14.0/tests/b64_test.py new/josepy-1.15.0/tests/b64_test.py --- old/josepy-1.14.0/tests/b64_test.py 2023-11-01 14:36:41.810268000 +0100 +++ new/josepy-1.15.0/tests/b64_test.py 2025-01-23 00:52:14.980046000 +0100 @@ -1,4 +1,5 @@ """Tests for josepy.b64.""" + import sys from typing import Union diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/josepy-1.14.0/tests/errors_test.py new/josepy-1.15.0/tests/errors_test.py --- old/josepy-1.14.0/tests/errors_test.py 2023-11-01 14:36:41.810395700 +0100 +++ new/josepy-1.15.0/tests/errors_test.py 2025-01-23 00:52:14.980092500 +0100 @@ -1,4 +1,5 @@ """Tests for josepy.errors.""" + import sys import unittest diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/josepy-1.14.0/tests/init_test.py new/josepy-1.15.0/tests/init_test.py --- old/josepy-1.14.0/tests/init_test.py 2023-11-01 14:36:41.810521000 +0100 +++ new/josepy-1.15.0/tests/init_test.py 2025-01-23 00:52:14.980136600 +0100 @@ -8,13 +8,13 @@ import josepy -@pytest.mark.skipif(sys.version_info[:2] != (3, 7), reason="requires Python 3.7") +@pytest.mark.skipif(sys.version_info[:2] != (3, 8), reason="requires Python 3.8") def test_warns() -> None: - with pytest.warns(DeprecationWarning, match=re.escape(r"Python 3.7 support")): + with pytest.warns(DeprecationWarning, match=re.escape(r"Python 3.8 support")): importlib.reload(josepy) -@pytest.mark.skipif(sys.version_info[:2] == (3, 7), reason="requires Python != 3.7") +@pytest.mark.skipif(sys.version_info[:2] == (3, 8), reason="requires Python != 3.8") def test_does_not_warn() -> None: with warnings.catch_warnings(): warnings.simplefilter("error") diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/josepy-1.14.0/tests/interfaces_test.py new/josepy-1.15.0/tests/interfaces_test.py --- old/josepy-1.14.0/tests/interfaces_test.py 2023-11-01 14:36:41.810647000 +0100 +++ new/josepy-1.15.0/tests/interfaces_test.py 2025-01-23 00:52:14.980183800 +0100 @@ -1,4 +1,5 @@ """Tests for josepy.interfaces.""" + import sys import unittest from typing import Any, Dict, List diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/josepy-1.14.0/tests/json_util_test.py new/josepy-1.15.0/tests/json_util_test.py --- old/josepy-1.14.0/tests/json_util_test.py 2023-11-01 14:36:41.810800800 +0100 +++ new/josepy-1.15.0/tests/json_util_test.py 2025-01-23 00:52:14.980270000 +0100 @@ -1,4 +1,5 @@ """Tests for josepy.json_util.""" + import itertools import sys import unittest diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/josepy-1.14.0/tests/jwa_test.py new/josepy-1.15.0/tests/jwa_test.py --- old/josepy-1.14.0/tests/jwa_test.py 2023-11-01 14:36:41.810944800 +0100 +++ new/josepy-1.15.0/tests/jwa_test.py 2025-01-23 00:52:14.980324700 +0100 @@ -1,4 +1,5 @@ """Tests for josepy.jwa.""" + import sys import unittest from typing import Any diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/josepy-1.14.0/tests/jwk_test.py new/josepy-1.15.0/tests/jwk_test.py --- old/josepy-1.14.0/tests/jwk_test.py 2023-11-01 14:36:41.811095200 +0100 +++ new/josepy-1.15.0/tests/jwk_test.py 2025-01-23 00:52:14.980399100 +0100 @@ -1,4 +1,5 @@ """Tests for josepy.jwk.""" + import binascii import sys import unittest diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/josepy-1.14.0/tests/jws_test.py new/josepy-1.15.0/tests/jws_test.py --- old/josepy-1.14.0/tests/jws_test.py 2023-11-01 14:36:41.811241600 +0100 +++ new/josepy-1.15.0/tests/jws_test.py 2025-01-23 00:52:14.980472600 +0100 @@ -1,4 +1,5 @@ """Tests for josepy.jws.""" + import base64 import sys import unittest diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/josepy-1.14.0/tests/magic_typing_test.py new/josepy-1.15.0/tests/magic_typing_test.py --- old/josepy-1.14.0/tests/magic_typing_test.py 2023-11-01 14:36:41.811362300 +0100 +++ new/josepy-1.15.0/tests/magic_typing_test.py 2025-01-23 00:52:14.980519800 +0100 @@ -1,4 +1,5 @@ """Tests for josepy.magic_typing.""" + import sys import warnings from unittest import mock diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/josepy-1.14.0/tests/test_util.py new/josepy-1.15.0/tests/test_util.py --- old/josepy-1.14.0/tests/test_util.py 2023-11-01 14:36:41.811495300 +0100 +++ new/josepy-1.15.0/tests/test_util.py 2025-01-23 00:52:14.980573400 +0100 @@ -1,4 +1,5 @@ """Test utilities.""" + import atexit import contextlib import os diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/josepy-1.14.0/tests/util_test.py new/josepy-1.15.0/tests/util_test.py --- old/josepy-1.14.0/tests/util_test.py 2023-11-01 14:36:41.813426700 +0100 +++ new/josepy-1.15.0/tests/util_test.py 2025-01-23 00:52:14.981837000 +0100 @@ -1,7 +1,9 @@ """Tests for josepy.util.""" + import functools import sys import unittest +import warnings import pytest import test_util @@ -21,7 +23,13 @@ self.cert_other = test_util.load_comparable_cert("cert-san.pem") def test_getattr_proxy(self) -> None: - assert self.cert1.has_expired() is True + with warnings.catch_warnings(): + warnings.filterwarnings( + "ignore", + category=DeprecationWarning, + message=".*Use timezone-aware objects to represent datetimes", + ) + assert self.cert1.has_expired() is True def test_eq(self) -> None: assert self.req1 == self.req2