14
0
forked from pool/python-Fabric

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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Fabric?expand=0&rev=71
This commit is contained in:
2022-03-10 06:32:16 +00:00
committed by Git OBS Bridge
parent e4667f85f6
commit aaae5cbfcb
2 changed files with 7 additions and 8 deletions

View File

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

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-Fabric # spec file for package python-Fabric
# #
# 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
@@ -32,15 +32,11 @@ BuildRequires: %{python_module decorator}
BuildRequires: %{python_module invoke >= 1.3} BuildRequires: %{python_module invoke >= 1.3}
BuildRequires: %{python_module mock >= 2.0.0} BuildRequires: %{python_module mock >= 2.0.0}
BuildRequires: %{python_module paramiko >= 2.4} BuildRequires: %{python_module paramiko >= 2.4}
BuildRequires: %{python_module pytest-relaxed}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six} BuildRequires: %{python_module six}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
# SECTION only test for Python < 3.10
# gh#bitprophet/pytest-relaxed#12
BuildRequires: %{python_module pytest-relaxed if %python-base < 3.10}
BuildRequires: %{python_module pytest < 6.1 if %python-base < 3.10}
# /SECTION
Requires: python-cryptography >= 1.1 Requires: python-cryptography >= 1.1
Requires: python-decorator Requires: python-decorator
Requires: python-invoke >= 1.3 Requires: python-invoke >= 1.3
@@ -90,8 +86,6 @@ sed -i 's/from invoke.vendor\./from\ /' fabric/connection.py fabric/group.py int
%python_clone -a %{buildroot}%{_bindir}/fab %python_clone -a %{buildroot}%{_bindir}/fab
%check %check
# only test for Python < 3.10 -- gh#bitprophet/pytest-relaxed#12
alias pytest-3.10='echo "Not testing: no pytest<6 on python 3.10"'
%pytest tests/ %pytest tests/
%post %post