From 9971f700dfa93a88ee2b4aef514b9edb75e5fb63a1a5b388ae4d4723793cd289 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 16 Oct 2020 14:27:17 +0000 Subject: [PATCH] Accepting request 842108 from home:bnavigator:branches:devel:languages:python:pytest - disable test suite with bcond because of unmaintained pytest-relaxed gh#bitprophet/pytest-relaxed#12 - Update to version 1.4.1 * Fix an issue with `~invoke.run` & friends having intermittent problems at exit time. * Many other fixes. OBS-URL: https://build.opensuse.org/request/show/842108 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-invoke?expand=0&rev=25 --- invoke-1.3.0.tar.gz | 3 --- invoke-1.4.1.tar.gz | 3 +++ python-invoke.changes | 14 ++++++++++++++ python-invoke.spec | 33 ++++++++++++++++++++------------- 4 files changed, 37 insertions(+), 16 deletions(-) delete mode 100644 invoke-1.3.0.tar.gz create mode 100644 invoke-1.4.1.tar.gz diff --git a/invoke-1.3.0.tar.gz b/invoke-1.3.0.tar.gz deleted file mode 100644 index 24444fc..0000000 --- a/invoke-1.3.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c52274d2e8a6d64ef0d61093e1983268ea1fc0cd13facb9448c4ef0c9a7ac7da -size 326196 diff --git a/invoke-1.4.1.tar.gz b/invoke-1.4.1.tar.gz new file mode 100644 index 0000000..6280edd --- /dev/null +++ b/invoke-1.4.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:de3f23bfe669e3db1085789fd859eb8ca8e0c5d9c20811e2407fa042e8a5e15d +size 332271 diff --git a/python-invoke.changes b/python-invoke.changes index a24d155..f190755 100644 --- a/python-invoke.changes +++ b/python-invoke.changes @@ -1,3 +1,17 @@ +------------------------------------------------------------------- +Fri Oct 16 12:55:39 UTC 2020 - Benjamin Greiner + +- disable test suite with bcond because of unmaintained + pytest-relaxed gh#bitprophet/pytest-relaxed#12 + +------------------------------------------------------------------- +Tue Apr 14 14:13:45 UTC 2020 - Marketa Calabkova + +- Update to version 1.4.1 + * Fix an issue with `~invoke.run` & friends having intermittent + problems at exit time. + * Many other fixes. + ------------------------------------------------------------------- Tue Sep 17 10:08:41 UTC 2019 - Tomáš Chvátal diff --git a/python-invoke.spec b/python-invoke.spec index 3474f9b..125f456 100644 --- a/python-invoke.spec +++ b/python-invoke.spec @@ -1,7 +1,7 @@ # # spec file for package python-invoke # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,9 +16,12 @@ # +# broken with pytest-relaxed (same author -- all of this is unmaintained) +%bcond_with test + %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-invoke -Version: 1.3.0 +Version: 1.4.1 Release: 0 Summary: Pythonic Task Execution License: BSD-2-Clause @@ -27,15 +30,7 @@ URL: http://www.pyinvoke.org Source: https://files.pythonhosted.org/packages/source/i/invoke/invoke-%{version}.tar.gz Patch0: 0001-Make-test-fallback-to-system-modules-when-vendorized.patch Patch1: pytest4.patch -BuildRequires: %{python_module PyYAML} -BuildRequires: %{python_module fluidity-sm} -BuildRequires: %{python_module lexicon} -BuildRequires: %{python_module mock} -BuildRequires: %{python_module pexpect} -BuildRequires: %{python_module pytest-relaxed} -BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module six} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-PyYAML @@ -46,6 +41,18 @@ Requires: python-six Requires(post): update-alternatives Requires(postun): update-alternatives BuildArch: noarch +%if %{with test} +BuildRequires: %{python_module PyYAML} +BuildRequires: %{python_module fluidity-sm} +BuildRequires: %{python_module lexicon} +BuildRequires: %{python_module mock} +BuildRequires: %{python_module pexpect} +# pytest < 6.1 to resolve pytest-relaxed constraint +# https://github.com/bitprophet/pytest-relaxed/issues/12 +BuildRequires: %{python_module pytest < 6.1} +BuildRequires: %{python_module pytest-relaxed} +BuildRequires: %{python_module six} +%endif %python_subpackages %description @@ -70,10 +77,10 @@ rm -fr invoke/vendor/* %python_clone -a %{buildroot}%{_bindir}/inv %python_clone -a %{buildroot}%{_bindir}/invoke +%if %{with test} %check -# broken with new pytest-relaxed (same author), just disable until he -# gets around to release new version -#%%pytest +%pytest -s +%endif %post %{python_install_alternative inv invoke}