python-josepy fails to build with Python 3.11.0a7. ==================================== ERRORS ==================================== ___________________ ERROR collecting tests/json_util_test.py ___________________ tests/json_util_test.py:6: in <module> import test_util <frozen importlib._bootstrap>:1178: in _find_and_load ??? <frozen importlib._bootstrap>:1149: in _find_and_load_unlocked ??? <frozen importlib._bootstrap>:690: in _load_unlocked ??? /usr/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:171: in exec_module exec(co, module.__dict__) tests/test_util.py:5: in <module> import pkg_resources /usr/lib/python3.11/site-packages/pkg_resources/__init__.py:84: in <module> __import__('pkg_resources.extern.packaging.requirements') /usr/lib/python3.11/site-packages/pkg_resources/_vendor/packaging/requirements.py:10: in <module> from pkg_resources.extern.pyparsing import ( # noqa <frozen importlib._bootstrap>:1178: in _find_and_load ??? <frozen importlib._bootstrap>:1149: in _find_and_load_unlocked ??? <frozen importlib._bootstrap>:676: in _load_unlocked ??? <frozen importlib._bootstrap>:573: in module_from_spec ??? /usr/lib/python3.11/site-packages/pkg_resources/extern/__init__.py:52: in create_module return self.load_module(spec.name) /usr/lib/python3.11/site-packages/pkg_resources/extern/__init__.py:37: in load_module __import__(extant) /usr/lib/python3.11/site-packages/pkg_resources/_vendor/pyparsing.py:87: in <module> import sre_constants /usr/lib64/python3.11/sre_constants.py:2: in <module> warnings.warn(f"module {__name__!r} is deprecated", E DeprecationWarning: module 'sre_constants' is deprecated ______________________ ERROR collecting tests/jwa_test.py ______________________ tests/jwa_test.py:5: in <module> import test_util <frozen importlib._bootstrap>:1178: in _find_and_load ??? <frozen importlib._bootstrap>:1149: in _find_and_load_unlocked ??? <frozen importlib._bootstrap>:690: in _load_unlocked ??? /usr/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:171: in exec_module exec(co, module.__dict__) tests/test_util.py:5: in <module> import pkg_resources /usr/lib/python3.11/site-packages/pkg_resources/__init__.py:84: in <module> __import__('pkg_resources.extern.packaging.requirements') /usr/lib/python3.11/site-packages/pkg_resources/_vendor/packaging/requirements.py:10: in <module> from pkg_resources.extern.pyparsing import ( # noqa <frozen importlib._bootstrap>:1178: in _find_and_load ??? <frozen importlib._bootstrap>:1149: in _find_and_load_unlocked ??? <frozen importlib._bootstrap>:676: in _load_unlocked ??? <frozen importlib._bootstrap>:573: in module_from_spec ??? /usr/lib/python3.11/site-packages/pkg_resources/extern/__init__.py:52: in create_module return self.load_module(spec.name) /usr/lib/python3.11/site-packages/pkg_resources/extern/__init__.py:37: in load_module __import__(extant) /usr/lib/python3.11/site-packages/pkg_resources/_vendor/pyparsing.py:87: in <module> import sre_constants /usr/lib64/python3.11/sre_constants.py:2: in <module> warnings.warn(f"module {__name__!r} is deprecated", E DeprecationWarning: module 'sre_constants' is deprecated ______________________ ERROR collecting tests/jwk_test.py ______________________ tests/jwk_test.py:5: in <module> import test_util <frozen importlib._bootstrap>:1178: in _find_and_load ??? <frozen importlib._bootstrap>:1149: in _find_and_load_unlocked ??? <frozen importlib._bootstrap>:690: in _load_unlocked ??? /usr/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:171: in exec_module exec(co, module.__dict__) tests/test_util.py:5: in <module> import pkg_resources /usr/lib/python3.11/site-packages/pkg_resources/__init__.py:84: in <module> __import__('pkg_resources.extern.packaging.requirements') /usr/lib/python3.11/site-packages/pkg_resources/_vendor/packaging/requirements.py:10: in <module> from pkg_resources.extern.pyparsing import ( # noqa <frozen importlib._bootstrap>:1178: in _find_and_load ??? <frozen importlib._bootstrap>:1149: in _find_and_load_unlocked ??? <frozen importlib._bootstrap>:676: in _load_unlocked ??? <frozen importlib._bootstrap>:573: in module_from_spec ??? /usr/lib/python3.11/site-packages/pkg_resources/extern/__init__.py:52: in create_module return self.load_module(spec.name) /usr/lib/python3.11/site-packages/pkg_resources/extern/__init__.py:37: in load_module __import__(extant) /usr/lib/python3.11/site-packages/pkg_resources/_vendor/pyparsing.py:87: in <module> import sre_constants /usr/lib64/python3.11/sre_constants.py:2: in <module> warnings.warn(f"module {__name__!r} is deprecated", E DeprecationWarning: module 'sre_constants' is deprecated ______________________ ERROR collecting tests/jws_test.py ______________________ tests/jws_test.py:7: in <module> import test_util <frozen importlib._bootstrap>:1178: in _find_and_load ??? <frozen importlib._bootstrap>:1149: in _find_and_load_unlocked ??? <frozen importlib._bootstrap>:690: in _load_unlocked ??? /usr/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:171: in exec_module exec(co, module.__dict__) tests/test_util.py:5: in <module> import pkg_resources /usr/lib/python3.11/site-packages/pkg_resources/__init__.py:84: in <module> __import__('pkg_resources.extern.packaging.requirements') /usr/lib/python3.11/site-packages/pkg_resources/_vendor/packaging/requirements.py:10: in <module> from pkg_resources.extern.pyparsing import ( # noqa <frozen importlib._bootstrap>:1178: in _find_and_load ??? <frozen importlib._bootstrap>:1149: in _find_and_load_unlocked ??? <frozen importlib._bootstrap>:676: in _load_unlocked ??? <frozen importlib._bootstrap>:573: in module_from_spec ??? /usr/lib/python3.11/site-packages/pkg_resources/extern/__init__.py:52: in create_module return self.load_module(spec.name) /usr/lib/python3.11/site-packages/pkg_resources/extern/__init__.py:37: in load_module __import__(extant) /usr/lib/python3.11/site-packages/pkg_resources/_vendor/pyparsing.py:87: in <module> import sre_constants /usr/lib64/python3.11/sre_constants.py:2: in <module> warnings.warn(f"module {__name__!r} is deprecated", E DeprecationWarning: module 'sre_constants' is deprecated _____________________ ERROR collecting tests/test_util.py ______________________ tests/test_util.py:5: in <module> import pkg_resources /usr/lib/python3.11/site-packages/pkg_resources/__init__.py:84: in <module> __import__('pkg_resources.extern.packaging.requirements') /usr/lib/python3.11/site-packages/pkg_resources/_vendor/packaging/requirements.py:10: in <module> from pkg_resources.extern.pyparsing import ( # noqa <frozen importlib._bootstrap>:1178: in _find_and_load ??? <frozen importlib._bootstrap>:1149: in _find_and_load_unlocked ??? <frozen importlib._bootstrap>:676: in _load_unlocked ??? <frozen importlib._bootstrap>:573: in module_from_spec ??? /usr/lib/python3.11/site-packages/pkg_resources/extern/__init__.py:52: in create_module return self.load_module(spec.name) /usr/lib/python3.11/site-packages/pkg_resources/extern/__init__.py:37: in load_module __import__(extant) /usr/lib/python3.11/site-packages/pkg_resources/_vendor/pyparsing.py:87: in <module> import sre_constants /usr/lib64/python3.11/sre_constants.py:2: in <module> warnings.warn(f"module {__name__!r} is deprecated", E DeprecationWarning: module 'sre_constants' is deprecated _____________________ ERROR collecting tests/util_test.py ______________________ tests/util_test.py:5: in <module> import test_util <frozen importlib._bootstrap>:1178: in _find_and_load ??? <frozen importlib._bootstrap>:1149: in _find_and_load_unlocked ??? <frozen importlib._bootstrap>:690: in _load_unlocked ??? /usr/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:171: in exec_module exec(co, module.__dict__) tests/test_util.py:5: in <module> import pkg_resources /usr/lib/python3.11/site-packages/pkg_resources/__init__.py:84: in <module> __import__('pkg_resources.extern.packaging.requirements') /usr/lib/python3.11/site-packages/pkg_resources/_vendor/packaging/requirements.py:10: in <module> from pkg_resources.extern.pyparsing import ( # noqa <frozen importlib._bootstrap>:1178: in _find_and_load ??? <frozen importlib._bootstrap>:1149: in _find_and_load_unlocked ??? <frozen importlib._bootstrap>:676: in _load_unlocked ??? <frozen importlib._bootstrap>:573: in module_from_spec ??? /usr/lib/python3.11/site-packages/pkg_resources/extern/__init__.py:52: in create_module return self.load_module(spec.name) /usr/lib/python3.11/site-packages/pkg_resources/extern/__init__.py:37: in load_module __import__(extant) /usr/lib/python3.11/site-packages/pkg_resources/_vendor/pyparsing.py:87: in <module> import sre_constants /usr/lib64/python3.11/sre_constants.py:2: in <module> warnings.warn(f"module {__name__!r} is deprecated", E DeprecationWarning: module 'sre_constants' is deprecated =========================== short test summary info ============================ ERROR tests/json_util_test.py - DeprecationWarning: module 'sre_constants' is... ERROR tests/jwa_test.py - DeprecationWarning: module 'sre_constants' is depre... ERROR tests/jwk_test.py - DeprecationWarning: module 'sre_constants' is depre... ERROR tests/jws_test.py - DeprecationWarning: module 'sre_constants' is depre... ERROR tests/test_util.py - DeprecationWarning: module 'sre_constants' is depr... ERROR tests/util_test.py - DeprecationWarning: module 'sre_constants' is depr... !!!!!!!!!!!!!!!!!!! Interrupted: 6 errors during collection !!!!!!!!!!!!!!!!!!!! ============================== 6 errors in 1.40s =============================== Undocumented modules sre_compile, sre_constants and sre_parse are now deprecated. (Contributed by Serhiy Storchaka in bpo-47152.) https://bugs.python.org/issue?@action=redirect&bpo=47152 https://docs.python.org/3.11/whatsnew/3.11.html For the build logs, see: https://copr-be.cloud.fedoraproject.org/results/@python/python3.11/fedora-rawhide-x86_64/04221132-python-josepy/ For all our attempts to build python-josepy with Python 3.11, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.11/package/python-josepy/ Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.11: https://copr.fedorainfracloud.org/coprs/g/python/python3.11/ Let us know here if you have any questions. Python 3.11 is planned to be included in Fedora 37. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.11. A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon. We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.
This comes from pkg_resources.
*** This bug has been marked as a duplicate of bug 2075487 ***