From 837da2251b562d1085eb35bc6fd103ec5538fb83bb255a44dde4e94a91d5c1e2 Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Wed, 19 May 2021 08:50:24 +0000 Subject: [PATCH] - remove enable-setup-test.patch as pytest is used now OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-clint?expand=0&rev=8 --- enable-setup-test.patch | 22 ---------------------- python-clint.changes | 5 +++++ python-clint.spec | 11 +---------- 3 files changed, 6 insertions(+), 32 deletions(-) delete mode 100644 enable-setup-test.patch diff --git a/enable-setup-test.patch b/enable-setup-test.patch deleted file mode 100644 index f088605..0000000 --- a/enable-setup-test.patch +++ /dev/null @@ -1,22 +0,0 @@ -From a7a28da41076d031c01790c3b4fb14e7b97efaf6 Mon Sep 17 00:00:00 2001 -From: Sebastian Wagner -Date: Thu, 13 Oct 2016 22:31:28 +0200 -Subject: [PATCH] Add test suite to setup.py - -Allows running the tests with `python setup.py test` - -Signed-off-by: Sebastian Wagner ---- - setup.py | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/setup.py b/setup.py -index 8b306e13..02211848 100755 ---- a/setup.py -+++ b/setup.py -@@ -54,4 +54,5 @@ def publish(): - 'Programming Language :: Python :: 3.4', - 'Topic :: Terminals :: Terminal Emulators/X Terminals', - ], -+ test_suite='test_clint', - ) diff --git a/python-clint.changes b/python-clint.changes index 65e1353..0443e02 100644 --- a/python-clint.changes +++ b/python-clint.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed May 19 08:48:27 UTC 2021 - Sebastian Wagner + +- remove enable-setup-test.patch as pytest is used now + ------------------------------------------------------------------- Wed May 19 07:56:59 UTC 2021 - pgajdos@suse.com diff --git a/python-clint.spec b/python-clint.spec index 324ac18..1c7911e 100644 --- a/python-clint.spec +++ b/python-clint.spec @@ -27,16 +27,13 @@ Group: Development/Languages/Python URL: https://github.com/kennethreitz/clint # pypi release misses docs and tests Source: https://github.com/kennethreitz/clint/archive/v%{version}.tar.gz -# Enables support for `python3 setup.py test`, see https://github.com/kennethreitz/clint/pull/167 -Patch0: https://github.com/kennethreitz/clint/pull/167.patch#/enable-setup-test.patch -BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: python-rpm-macros %if %{with test} BuildRequires: %{python_module args} +BuildRequires: %{python_module pytest} %endif Requires: python-args -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %python_subpackages @@ -50,7 +47,6 @@ console size, wrapping your words properly to fit the column size. %prep %setup -q -n clint-%{version} -%patch0 -p1 %build sed -i '1s/^#!.*//' examples/*.py clint/packages/appdirs.py examples/unicode.sh @@ -66,13 +62,8 @@ export LANG=en_US.utf8 %endif %files %{python_files} -%defattr(-,root,root,-) %doc AUTHORS HISTORY.rst README.rst docs examples -%if 0%{?leap_version} >= 420200 || 0%{?suse_version} > 1320 %%license LICENSE -%else -%doc LICENSE -%endif %{python_sitelib}/* %changelog