Bug 2343972

Summary: python-peewee fails to build with Python 3.14: TypeError: 'TestPostgresLateralJoin' object cannot be interpreted as an integer
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: python-peeweeAssignee: Viliam Križan <vkrizan>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: carl, jonathan, ksurma, mhroncok, python-packagers-sig, vkrizan
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-02-06 16:19:25 UTC 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: 2322407, 2343993    

Description Karolina Surma 2025-02-05 14:19:37 UTC
python-peewee fails to build with Python 3.14.0a4.

ERROR: test_lateral_helper (tests.postgres.TestPostgresLateralJoin.test_lateral_helper)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/python-peewee-3.17.8-build/peewee-3.17.8/tests/base.py", line 269, in inner
    method(self)
    ~~~~~~^^^^^^
  File "/builddir/build/BUILD/python-peewee-3.17.8-build/peewee-3.17.8/tests/postgres.py", line 978, in test_lateral_helper
    self.create_data()
    ~~~~~~~~~~~~~~~~^^
  File "/builddir/build/BUILD/python-peewee-3.17.8-build/peewee-3.17.8/tests/postgres.py", line 939, in create_data
    Tweet.create(user=user, content=c, timestamp=self.ts(d))
                                                 ~~~~~~~^^^
TypeError: 'TestPostgresLateralJoin' object cannot be interpreted as an integer

======================================================================
ERROR: test_lateral_top_n (tests.postgres.TestPostgresLateralJoin.test_lateral_top_n)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/python-peewee-3.17.8-build/peewee-3.17.8/tests/base.py", line 269, in inner
    method(self)
    ~~~~~~^^^^^^
  File "/builddir/build/BUILD/python-peewee-3.17.8-build/peewee-3.17.8/tests/postgres.py", line 943, in test_lateral_top_n
    self.create_data()
    ~~~~~~~~~~~~~~~~^^
  File "/builddir/build/BUILD/python-peewee-3.17.8-build/peewee-3.17.8/tests/postgres.py", line 939, in create_data
    Tweet.create(user=user, content=c, timestamp=self.ts(d))
                                                 ~~~~~~~^^^
TypeError: 'TestPostgresLateralJoin' object cannot be interpreted as an integer

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

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.14/fedora-rawhide-x86_64/08609163-python-peewee/

For all our attempts to build python-peewee with Python 3.14, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.14/package/python-peewee/

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

Let us know here if you have any questions.

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

Comment 1 Viliam Križan 2025-02-05 15:58:02 UTC
Reported to upstream: https://github.com/coleifer/peewee/issues/2969

Comment 2 Viliam Križan 2025-02-06 16:19:25 UTC
Fixed via https://bodhi.fedoraproject.org/updates/FEDORA-2025-bdb98f682f