From c62f8077bedac765f50d78c2e8c10a87a8989231179ac9d0f1db8b9fb8dc6955 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 15 Dec 2021 05:32:26 +0000 Subject: [PATCH] Accepting request 940360 from home:bnavigator:python-rpm-macros - Don't test on python310 because of pytest-relaxed not supporting Pytest 6 -- gh#bitprophet/pytest-relaxed#12 OBS-URL: https://build.opensuse.org/request/show/940360 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lexicon?expand=0&rev=9 --- python-lexicon.changes | 6 ++++++ python-lexicon.spec | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/python-lexicon.changes b/python-lexicon.changes index e56963c..e18a557 100644 --- a/python-lexicon.changes +++ b/python-lexicon.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Dec 13 23:14:40 UTC 2021 - Ben Greiner + +- Don't test on python310 because of pytest-relaxed not supporting + Pytest 6 -- gh#bitprophet/pytest-relaxed#12 + ------------------------------------------------------------------- Fri Sep 17 03:43:56 UTC 2021 - Steve Kowalik diff --git a/python-lexicon.spec b/python-lexicon.spec index 16879fc..89cbc6d 100644 --- a/python-lexicon.spec +++ b/python-lexicon.spec @@ -33,7 +33,7 @@ Requires: python-six Conflicts: python-dns-lexicon BuildArch: noarch # SECTION tests -BuildRequires: %{python_module pytest-relaxed} +BuildRequires: %{python_module pytest-relaxed if (%python-base without python310-base)} # /SECTION tests %python_subpackages @@ -56,11 +56,13 @@ Lexicon is a collection of dict subclasses: %python_expand %fdupes %{buildroot}%{$python_sitelib} %check +alias pytest-3.10='echo "Not testing: no pytest<6 on python 3.10"' %pytest %files %{python_files} %doc README.rst %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/lexicon +%{python_sitelib}/lexicon-%{version}*-info %changelog