From 2d80d034dd4ad977ecfc44520174c2a3e7985c7cc9c4583d847e0358143e55d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 13 Dec 2024 12:11:45 +0100 Subject: [PATCH] Sync from SUSE:SLFO:Main python-pytest-randomly revision 8a07e1e9d6535bef2cf0526520720cea --- pytest-randomly-3.13.0.tar.gz | 3 --- pytest-randomly-3.16.0.tar.gz | 3 +++ python-pytest-randomly.changes | 22 +++++++++++++++++++++- python-pytest-randomly.spec | 19 +++++++++++++++---- 4 files changed, 39 insertions(+), 8 deletions(-) delete mode 100644 pytest-randomly-3.13.0.tar.gz create mode 100644 pytest-randomly-3.16.0.tar.gz diff --git a/pytest-randomly-3.13.0.tar.gz b/pytest-randomly-3.13.0.tar.gz deleted file mode 100644 index 2cfe9f1..0000000 --- a/pytest-randomly-3.13.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:24e182a8e89b8851d660bcc24e8e96c7c89bef07e68f099ef91e960f7bc86264 -size 30026 diff --git a/pytest-randomly-3.16.0.tar.gz b/pytest-randomly-3.16.0.tar.gz new file mode 100644 index 0000000..ea5b5d4 --- /dev/null +++ b/pytest-randomly-3.16.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cc4b415f7eb81f8f8f0d09591ed90a76a1d8b03544d73c2d0e718c2a8f7f3bc0 +size 26547 diff --git a/python-pytest-randomly.changes b/python-pytest-randomly.changes index c8b5646..acf1150 100644 --- a/python-pytest-randomly.changes +++ b/python-pytest-randomly.changes @@ -1,3 +1,23 @@ +------------------------------------------------------------------- +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 + +- update to 3.15.0: + * Support Python 3.12. + * Reset the random state for `Model Bakery` + ------------------------------------------------------------------- Mon Jul 24 19:54:28 UTC 2023 - Dirk Müller @@ -55,7 +75,7 @@ Sat Apr 17 10:11:21 UTC 2021 - Ben Greiner - Release 3.5.0 * Support Python 3.9. * Move license from BSD to MIT License -- Drop pytest6.patch merged upstream +- Drop pytest6.patch merged upstream - Don't try test with non-existent python36-numpy ------------------------------------------------------------------- diff --git a/python-pytest-randomly.spec b/python-pytest-randomly.spec index 1bbd5f6..a67727d 100644 --- a/python-pytest-randomly.spec +++ b/python-pytest-randomly.spec @@ -1,7 +1,7 @@ # # spec file for package python-pytest-randomly # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ %{?sle15_python_module_pythons} Name: python-pytest-randomly -Version: 3.13.0 +Version: 3.16.0 Release: 0 Summary: Pytest plugin to randomly order tests and control random.seed License: MIT @@ -37,9 +37,13 @@ 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} -BuildRequires: %{python_module numpy if (%python-base without python36-base)} # /SECTION %python_subpackages @@ -75,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