public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-fastapi] f45: Work around a breaking change in pytest-timeout 2.5.0
@ 2026-08-22  9:21 Benjamin A. Beasley
  0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-08-22  9:21 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/python-fastapi
Branch : f45
Commit : a23fcb3f9607ed4a673b5969d38d92d90f90ec30
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date   : 2026-08-22T09:54:33+01:00
Stats  : +14/-0 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/python-fastapi/c/a23fcb3f9607ed4a673b5969d38d92d90f90ec30?branch=f45

Log:
Work around a breaking change in pytest-timeout 2.5.0

---
diff --git a/python-fastapi.spec b/python-fastapi.spec
index 8c8ed8f..e04e6e9 100644
--- a/python-fastapi.spec
+++ b/python-fastapi.spec
@@ -17,6 +17,12 @@
 %bcond strawberry_graphql 0
 %bcond uvicorn 1
 
+# Work around a breaking change in pytest-timeout 2.5.0 (yanked from PyPI, but
+# still in Rawhide for now):
+# https://github.com/pytest-dev/pytest-timeout/issues/203
+# https://src.fedoraproject.org/rpms/python-pytest-timeout/pull-request/5
+%bcond pytest_timeout %[ 0%{?fedora} < 46 ]
+
 Name:           python-fastapi
 Version:        0.141.1
 Release:        %autorelease
@@ -83,7 +89,11 @@ BuildRequires:  %{py3_dist strawberry-graphql} >= 0.200
 BuildRequires:  %{py3_dist typer} >= 0.24.1
 BuildRequires:  %{py3_dist a2wsgi} >= 1.9
 BuildRequires:  %{py3_dist pytest-xdist[psutil]} >= 2.5
+%if %{with pytest_timeout}
 BuildRequires:  %{py3_dist pytest-timeout} >= 2.4
+%else
+BuildRequires:  tomcli
+%endif
 # This is still needed in the tests even if we do not have sqlmodel to bring it
 # in as an indirect dependency.
 BuildRequires:  %{py3_dist sqlalchemy}
@@ -180,6 +190,10 @@ It makes sure the dependencies are installed.
 %pyproject_patch_dependency uvicorn:ignore
 %endif
 
+%if %{without pytest_timeout}
+tomcli set pyproject.toml del tool.pytest.timeout
+%endif
+
 # Remove bundled js-termynal 0.0.1; since we are not building documentation, we
 # do this very bluntly:
 rm --recursive --verbose docs/*/docs/js docs/*/docs/css

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-22  9:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-22  9:21 [rpms/python-fastapi] f45: Work around a breaking change in pytest-timeout 2.5.0 Benjamin A. Beasley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox