From 656084f4c1fd7c0421624fa4f66c21fe909e6031e2a8c048d60ddafab10996da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 29 Mar 2019 10:50:34 +0000 Subject: [PATCH] - Remove release-testing tests as they are pointless for rpm package OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-invocations?expand=0&rev=12 --- python-invocations.changes | 5 +++++ python-invocations.spec | 20 ++++++++++---------- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/python-invocations.changes b/python-invocations.changes index 714717f..f322f19 100644 --- a/python-invocations.changes +++ b/python-invocations.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Mar 29 10:50:09 UTC 2019 - Tomáš Chvátal + +- Remove release-testing tests as they are pointless for rpm package + ------------------------------------------------------------------- Sat Aug 11 12:01:52 UTC 2018 - tchvatal@suse.com diff --git a/python-invocations.spec b/python-invocations.spec index 428e8c1..40698e6 100644 --- a/python-invocations.spec +++ b/python-invocations.spec @@ -1,7 +1,7 @@ # # spec file for package python-invocations # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -23,18 +23,20 @@ Release: 0 Summary: Reusable Invoke tasks License: BSD-2-Clause Group: Development/Languages/Python -URL: http://pyinvoke.org +URL: https://github.com/pyinvoke/invocations Source: https://github.com/pyinvoke/invocations/archive/%{version}.tar.gz Patch0: invocations-no-bundled.patch Patch1: invocations-py3.patch BuildRequires: %{python_module blessings >= 1.6} BuildRequires: %{python_module invoke >= 1.0} +BuildRequires: %{python_module lexicon} BuildRequires: %{python_module mock} BuildRequires: %{python_module pytest-relaxed} BuildRequires: %{python_module pytest} BuildRequires: %{python_module releases >= 1.2} BuildRequires: %{python_module semantic_version >= 2.4} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module six} BuildRequires: %{python_module tabulate >= 0.7.5} BuildRequires: %{python_module tqdm >= 4.8.1} BuildRequires: fdupes @@ -42,14 +44,12 @@ BuildRequires: python-rpm-macros BuildRequires: python2-enum34 Requires: python-blessings >= 1.6 Requires: python-invoke >= 1.0 +Requires: python-lexicon Requires: python-releases >= 1.2 Requires: python-semantic_version >= 2.4 +Requires: python-six Requires: python-tabulate >= 0.7.5 Requires: python-tqdm >= 4.8.1 -BuildRequires: %{python_module six} -Requires: python-six -BuildRequires: %{python_module lexicon} -Requires: python-lexicon BuildArch: noarch %ifpython2 Requires: python-enum34 @@ -71,6 +71,8 @@ the Invoke project's communication channels for updates. Thanks! %setup -q -n invocations-%{version} %patch0 -p1 %patch1 -p1 +# remove useless releasing test +rm tests/packaging/release.py %build %python_build @@ -81,9 +83,7 @@ the Invoke project's communication channels for updates. Thanks! %check export PYTHONDONTWRITEBYTECODE=1 -%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib} -py.test-%{$python_bin_suffix} -} +%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} -v %files %{python_files} %doc README.rst