Bug 2296102

Summary: python-starlette: FTBFS in Fedora Rawhide with Python 3.13.0b3
Product: [Fedora] Fedora Reporter: Ben Beasley <code>
Component: python-starletteAssignee: Ben Beasley <code>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: code, paul.wouters, rominf
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
URL: https://koschei.fedoraproject.org/package/python-starlette
Whiteboard:
Fixed In Version: python-starlette-0.37.2-8.fc41 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-07-23 14:51:30 UTC Type: ---
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: 2244836    

Description Ben Beasley 2024-07-06 14:42:39 UTC
Description of problem:
Package python-starlette fails to build from source in Fedora Rawhide.

Version-Release number of selected component (if applicable):
0.37.2-6.fc41

Steps to Reproduce:
koji build --scratch f41 python-starlette-0.37.2-6.fc41.src.rpm

Additional info:
This package is tracked by Koschei. See:
https://koschei.fedoraproject.org/package/python-starlette

==================================================================================================== ERRORS ====================================================================================================
____________________________________________________________________________________ ERROR collecting tests/test_routing.py ____________________________________________________________________________________
tests/test_routing.py:135: in <module>
    Route("/", endpoint=functools.partial(partial_endpoint, "foo")),
starlette/routing.py:227: in __init__
    self.name = get_name(endpoint) if name is None else name
starlette/routing.py:103: in get_name
    return endpoint.__name__
E   AttributeError: 'functools.partial' object has no attribute '__name__'. Did you mean: '__ne__'?
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
=============================================================================================== 1 error in 0.64s ===============================================================================================

https://github.com/encode/starlette/issues/2638

Reproducible: Always

Comment 1 Ben Beasley 2024-07-06 14:43:32 UTC
This appears to be a regression from 3.13.0b2 to 3.13.0b3.

Comment 2 Fedora Update System 2024-07-23 14:46:16 UTC
FEDORA-2024-dcb5d15c84 (python-starlette-0.37.2-8.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-dcb5d15c84

Comment 3 Fedora Update System 2024-07-23 14:51:30 UTC
FEDORA-2024-dcb5d15c84 (python-starlette-0.37.2-8.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.