public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-odata-query] f45: fixup tests and buildrequires
@ 2026-11-23 18:00 Paul Wouters
0 siblings, 0 replies; only message in thread
From: Paul Wouters @ 2026-11-23 18:00 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-odata-query
Branch : f45
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=f45
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="]]
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-23 18:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-23 18:00 [rpms/python-odata-query] f45: 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