Bug 2416981

Summary: python-typing-extensions fails to build with Python 3.15: no_type_check_decorator no longer exists in typing
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: python-typing-extensionsAssignee: Jonny Heggheim <hegjon>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: code, epel-packagers-sig, hegjon, ksurma, mhroncok, michel, python-packagers-sig
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2412434, 2424562    

Description Karolina Surma 2025-11-25 10:14:42 UTC
python-typing-extensions fails to build with Python 3.15.0a2.

FAIL: test_alias_names_still_exist (test_typing_extensions.AllTests.test_alias_names_still_exist)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/python-typing-extensions-4.15.0-build/typing_extensions-4.15.0/src/test_typing_extensions.py", line 6895, in test_alias_names_still_exist
    self.assertTrue(
    ~~~~~~~~~~~~~~~^
        hasattr(typing_extensions, name),
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        f"{name} no longer exists in typing",
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
AssertionError: False is not true : no_type_check_decorator no longer exists in typing

======================================================================
FAIL: test_all_names_in___all__ (test_typing_extensions.AllTests.test_all_names_in___all__)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/python-typing-extensions-4.15.0-build/typing_extensions-4.15.0/src/test_typing_extensions.py", line 6854, in test_all_names_in___all__
    self.assertEqual({*exclude, *typing_extensions.__all__},
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                     actual_names)
                     ^^^^^^^^^^^^^
AssertionError: Items in the first set but not the second:
'no_type_check_decorator'

======================================================================
FAIL: test_typing_extensions_includes_standard (test_typing_extensions.AllTests.test_typing_extensions_includes_standard)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/python-typing-extensions-4.15.0-build/typing_extensions-4.15.0/src/test_typing_extensions.py", line 6836, in test_typing_extensions_includes_standard
    self.assertTrue(hasattr(typing_extensions, name))
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: False is not true


https://docs.python.org/3.15/whatsnew/3.15.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.15/fedora-rawhide-x86_64/09824974-python-typing-extensions/

For all our attempts to build python-typing-extensions with Python 3.15, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.15/package/python-typing-extensions/

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.15:
https://copr.fedorainfracloud.org/coprs/g/python/python3.15/

Let us know here if you have any questions.

Python 3.15 is planned to be included in Fedora 45.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.15.
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.