From e4667f85f60532d68eda6da1fb38f269e74e14ecac4357aa64df3ec74630e009 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 31 Dec 2021 12:39:39 +0000 Subject: [PATCH] Accepting request 942989 from home:bnavigator:branches:devel:languages:python - Don't test on python310 -- gh#bitprophet/pytest-relaxed#12 (This is mainly required by azure-cli in the primary python3 flavor) OBS-URL: https://build.opensuse.org/request/show/942989 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Fabric?expand=0&rev=70 --- python-Fabric.changes | 7 +++++++ python-Fabric.spec | 15 +++++++++++---- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/python-Fabric.changes b/python-Fabric.changes index 69e025e..8f7f818 100644 --- a/python-Fabric.changes +++ b/python-Fabric.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Dec 28 21:46:08 UTC 2021 - Ben Greiner + +- Don't test on python310 -- gh#bitprophet/pytest-relaxed#12 + (This is mainly required by azure-cli in the primary python3 + flavor) + ------------------------------------------------------------------- Thu Aug 12 11:15:13 UTC 2021 - John Paul Adrian Glaubitz diff --git a/python-Fabric.spec b/python-Fabric.spec index 42a207b..b33d063 100644 --- a/python-Fabric.spec +++ b/python-Fabric.spec @@ -32,13 +32,15 @@ BuildRequires: %{python_module decorator} BuildRequires: %{python_module invoke >= 1.3} BuildRequires: %{python_module mock >= 2.0.0} BuildRequires: %{python_module paramiko >= 2.4} -BuildRequires: %{python_module pytest-relaxed} -# gh#bitprophet/pytest-relaxed#12 -BuildRequires: %{python_module pytest < 6.1} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six} BuildRequires: fdupes 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-decorator Requires: python-invoke >= 1.3 @@ -46,6 +48,8 @@ Requires: python-paramiko >= 2.4 Requires: python-pathlib2 Requires: python-setuptools Requires: python-six +Requires(post): update-alternatives +Requires(postun):update-alternatives Conflicts: python-Fabric3 Provides: python-Fabric2 = %{version} Provides: python-Fabric3 = %{version} @@ -86,6 +90,8 @@ sed -i 's/from invoke.vendor\./from\ /' fabric/connection.py fabric/group.py int %python_clone -a %{buildroot}%{_bindir}/fab %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/ %post @@ -98,6 +104,7 @@ sed -i 's/from invoke.vendor\./from\ /' fabric/connection.py fabric/group.py int %license LICENSE %doc README.rst %python_alternative %{_bindir}/fab -%{python_sitelib}/* +%{python_sitelib}/fabric +%{python_sitelib}/fabric-%{version}*-info %changelog