public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Paul Wouters <paul.wouters@aiven.io>
To: git-commits@fedoraproject.org
Subject: [rpms/python-odata-query] f43: fixup tests and buildrequires
Date: Mon, 23 Nov 2026 20:45:38 GMT	[thread overview]
Message-ID: <179546673870.1.3700781068262698278.rpms-python-odata-query-9817937e8f3e@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/python-odata-query
Branch : f43
Commit : 9817937e8f3e3330b06d59d7926d810513e24819
Author : Paul Wouters <paul.wouters@aiven.io>
Date   : 2026-11-23T12:59:46-05:00
Stats  : +17/-2 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/python-odata-query/c/9817937e8f3e3330b06d59d7926d810513e24819?branch=f43

Log:
fixup tests and buildrequires

---
diff --git a/python-odata-query.spec b/python-odata-query.spec
index 24cf2bc..19afd64 100644
--- a/python-odata-query.spec
+++ b/python-odata-query.spec
@@ -9,9 +9,17 @@ Summary:        An OData v4 query parser and transpiler for Python
 License:        MIT
 URL:            https://odata-query.readthedocs.io
 Source0:        %{forgesource}
+# Upstream does not ship a tox configuration; provide a minimal one
+Source1:        tox.toml
 
 BuildArch:      noarch
 BuildRequires:  python3-devel
+# These requirements are not picked up automatically
+BuildRequires: python3-uv-build
+BuildRequires: python3-sly
+BuildRequires: python3dist(pytest-django)
+BuildRequires: python3-tox-current-env
+
 
 %global _description %{expand:
 odata-query is a library that parses OData v4 filter strings, and can convert
@@ -29,9 +37,12 @@ Summary:        %{summary}
 
 %prep
 %forgeautosetup
-# Unpin pytest version, if it doesn't work, the build will fail
-sed -i 's/pytest = { version = "^6.2 || ^7.0"/pytest = { version = ">=6.2"/' pyproject.toml
+# Unpin upper versions, if it doesn't work, the build will fail
+%pyproject_patch_dependency pytest:drop_upper
+%pyproject_patch_dependency dateutil:drop_upper
+%pyproject_patch_dependency uv_build:drop_upper
 
+cp -p %{SOURCE1} .
 
 %generate_buildrequires
 %pyproject_buildrequires -t

diff --git a/tox.toml b/tox.toml
new file mode 100644
index 0000000..2917821
--- /dev/null
+++ b/tox.toml
@@ -0,0 +1,4 @@
+[env_run_base]
+dependency_groups = ["test"]
+set_env = { DJANGO_SETTINGS_MODULE = "tests.integration.django.settings" }
+commands = [["python", "-m", "pytest", "-p", "no:django", "tests/unit", "tests/integration", "-r", "fEs", "-o", "addopts="]]

                 reply	other threads:[~2026-11-23 20:45 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=179546673870.1.3700781068262698278.rpms-python-odata-query-9817937e8f3e@fedoraproject.org \
    --to=paul.wouters@aiven.io \
    --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