public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-odata-query] rawhide: fixup tests and buildrequires
@ 2026-11-23 17:52 Paul Wouters
  0 siblings, 0 replies; only message in thread
From: Paul Wouters @ 2026-11-23 17:52 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/python-odata-query
Branch : rawhide
Commit : 540bc86cd34558e2bf36977fd0ac6bd383e5ecd8
Author : Paul Wouters <paul.wouters@aiven.io>
Date   : 2026-11-23T12:39:52-05:00
Stats  : +16/-2 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/python-odata-query/c/540bc86cd34558e2bf36977fd0ac6bd383e5ecd8?branch=rawhide

Log:
fixup tests and buildrequires

---
diff --git a/python-odata-query.spec b/python-odata-query.spec
index 24cf2bc..b983b28 100644
--- a/python-odata-query.spec
+++ b/python-odata-query.spec
@@ -9,9 +9,16 @@ Summary:        An OData v4 query parser and transpiler for Python
 License:        MIT
 URL:            https://odata-query.readthedocs.io
 Source0:        %{forgesource}
+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 +36,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="]]

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

only message in thread, other threads:[~2026-11-23 17:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-23 17:52 [rpms/python-odata-query] rawhide: fixup tests and buildrequires Paul Wouters

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