public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Benjamin A. Beasley <code@musicinmybrain.net>
To: git-commits@fedoraproject.org
Subject: [rpms/python-fastapi] rawhide: Work around a breaking change in pytest-timeout 2.5.0
Date: Sat, 22 Aug 2026 09:20:02 GMT	[thread overview]
Message-ID: <178739040262.1.3852077846550323306.rpms-python-fastapi-a23fcb3f9607@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/python-fastapi
Branch : rawhide
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=rawhide

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

                 reply	other threads:[~2026-08-22  9:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178739040262.1.3852077846550323306.rpms-python-fastapi-a23fcb3f9607@fedoraproject.org \
    --to=code@musicinmybrain.net \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox