- pytest-relaxed now supports pytest 6, so test on all python versions.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lexicon?expand=0&rev=10
This commit is contained in:
Steve Kowalik 2022-03-10 06:09:49 +00:00 committed by Git OBS Bridge
parent c62f8077be
commit 128ff5f1da
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Mar 10 06:08:28 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com>
- pytest-relaxed now supports pytest 6, so test on all python versions.
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Dec 13 23:14:40 UTC 2021 - Ben Greiner <code@bnavigator.de> Mon Dec 13 23:14:40 UTC 2021 - Ben Greiner <code@bnavigator.de>

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-lexicon # spec file for package python-lexicon
# #
# Copyright (c) 2021 SUSE LLC # Copyright (c) 2022 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -33,7 +33,7 @@ Requires: python-six
Conflicts: python-dns-lexicon Conflicts: python-dns-lexicon
BuildArch: noarch BuildArch: noarch
# SECTION tests # SECTION tests
BuildRequires: %{python_module pytest-relaxed if (%python-base without python310-base)} BuildRequires: %{python_module pytest-relaxed}
# /SECTION tests # /SECTION tests
%python_subpackages %python_subpackages
@ -56,7 +56,6 @@ Lexicon is a collection of dict subclasses:
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
alias pytest-3.10='echo "Not testing: no pytest<6 on python 3.10"'
%pytest %pytest
%files %{python_files} %files %{python_files}