From 7f32fb426a1f6d925c2729415b70c12cf9c33c6ad6f01b08bc11b9479753375d Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 19 Feb 2024 14:29:02 +0000 Subject: [PATCH] Accepting request 1147534 from devel:BCI:SLCS:next Add python version constraints to Requires & BuildRequires OBS-URL: https://build.opensuse.org/request/show/1147534 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest?expand=0&rev=134 --- python-pytest.changes | 5 +++++ python-pytest.spec | 9 +++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/python-pytest.changes b/python-pytest.changes index 4315c6a..93d71a0 100644 --- a/python-pytest.changes +++ b/python-pytest.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Feb 19 09:15:31 UTC 2024 - Dan Čermák + +- Add python version constraints to Requires & BuildRequires + ------------------------------------------------------------------- Tue Jan 2 08:23:53 UTC 2024 - Dirk Müller diff --git a/python-pytest.spec b/python-pytest.spec index 562dcc4..e88016a 100644 --- a/python-pytest.spec +++ b/python-pytest.spec @@ -42,17 +42,18 @@ Source: https://files.pythonhosted.org/packages/source/p/pytest/pytest-% BuildRequires: %{python_module base >= 3.7} BuildRequires: %{python_module setuptools_scm >= 6} BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module tomli >= 1} +BuildRequires: %{python_module tomli >= 1 if %python-base < 3.11} BuildRequires: fdupes BuildRequires: python-rpm-macros >= 20210929 Requires: python-attrs >= 19.2.0 -Requires: python-exceptiongroup -Requires: python-importlib-metadata >= 0.12 +%if 0%{?python_version_nodots} < 311 +Requires: python-exceptiongroup >= 1.0.0 +Requires: python-tomli >= 1 +%endif Requires: python-iniconfig Requires: python-packaging Requires: python-pluggy >= 0.12 Requires: python-setuptools -Requires: python-tomli >= 1 %if %{with libalternatives} Requires: alts BuildRequires: alts