From 0835d7ef03cc05a35e434481c217c72608c7940ae12e6f3917871aac3c7d6cdb Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 28 Oct 2024 16:48:55 +0000 Subject: [PATCH] - Make model-bakery BuildRequires optional, in SLFO:Main we don't have python311-django. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-randomly?expand=0&rev=36 --- python-pytest-randomly.changes | 8 +++++++- python-pytest-randomly.spec | 12 +++++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/python-pytest-randomly.changes b/python-pytest-randomly.changes index 7448c04..acf1150 100644 --- a/python-pytest-randomly.changes +++ b/python-pytest-randomly.changes @@ -1,10 +1,16 @@ ------------------------------------------------------------------- -Mon Oct 28 16:47:25 UTC 2024 - Dirk Müller +Mon Oct 28 16:48:13 UTC 2024 - Dirk Müller - update to 3.16.0: * Drop Python 3.8 support. * Support Python 3.13. +------------------------------------------------------------------- +Mon Oct 28 09:41:53 UTC 2024 - Daniel Garcia + +- Make model-bakery BuildRequires optional, in SLFO:Main we don't have + python311-django. + ------------------------------------------------------------------- Tue Nov 7 20:04:52 UTC 2023 - Dirk Müller diff --git a/python-pytest-randomly.spec b/python-pytest-randomly.spec index 615200d..a67727d 100644 --- a/python-pytest-randomly.spec +++ b/python-pytest-randomly.spec @@ -37,7 +37,10 @@ BuildArch: noarch BuildRequires: %{python_module Faker >= 13.11.0} BuildRequires: %{python_module factory_boy} BuildRequires: %{python_module importlib-metadata >= 3.6.0} +# Django package not available on SLFO:Main +%if 0%{suse_version} > 1600 BuildRequires: %{python_module model-bakery >= 1.13.0} +%endif BuildRequires: %{python_module numpy} BuildRequires: %{python_module pytest-xdist} BuildRequires: %{python_module pytest} @@ -76,7 +79,14 @@ Features: %check # test_entrypoint_injection needs installed module for pytest to use -%pytest -k "not (test_entrypoint_injection or test_it_runs_before_stepwise)" +skiptest="test_entrypoint_injection or test_it_runs_before_stepwise" + +# Django package not available on SLFO:Main +%if 0%{suse_version} <= 1600 +skiptest+=" or test_model_bakery" +%endif + +%pytest -k "not ($skiptest)" %files %{python_files} %doc README.rst