Hello community, here is the log from the commit of package python-clint for openSUSE:Factory checked in at 2018-12-24 11:47:38 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-clint (Old) and /work/SRC/openSUSE:Factory/.python-clint.new.28833 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-clint" Mon Dec 24 11:47:38 2018 rev:2 rq:660690 version:0.5.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-clint/python-clint.changes 2017-07-21 22:46:37.160256827 +0200 +++ /work/SRC/openSUSE:Factory/.python-clint.new.28833/python-clint.changes 2018-12-24 11:47:41.157118341 +0100 @@ -1,0 +2,7 @@ +Tue Dec 4 12:46:40 UTC 2018 - Matej Cepl <mc...@suse.com> + +- Remove superfluous devel dependency for noarch package +- Add enable-setup-test.patch which enables support for `python3 setup.py test`, + see gh#kennethreitz/clint#167 + +------------------------------------------------------------------- Old: ---- 167.patch New: ---- enable-setup-test.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-clint.spec ++++++ --- /var/tmp/diff_new_pack.UcOBAX/_old 2018-12-24 11:47:41.577117973 +0100 +++ /var/tmp/diff_new_pack.UcOBAX/_new 2018-12-24 11:47:41.577117973 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-clint # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 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,8 @@ # 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/ +# %{?!python_module:%define python_module() python-%{**} python3-%{**}} @@ -20,17 +21,16 @@ Name: python-clint Version: 0.5.1 Release: 0 -License: ISC Summary: Python Command Line Interface Tools -Url: https://github.com/kennethreitz/clint +License: ISC 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 -BuildRequires: python-rpm-macros -BuildRequires: %{python_module devel} +Patch0: https://github.com/kennethreitz/clint/pull/167.patch#/enable-setup-test.patch BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros %if %{with test} BuildRequires: %{python_module args} %endif @@ -52,7 +52,7 @@ %patch0 -p1 %build -sed -i '1d' examples/*.py clint/packages/appdirs.py examples/unicode.sh +sed -i '1s/^#!.*//' examples/*.py clint/packages/appdirs.py examples/unicode.sh %python_build %install ++++++ enable-setup-test.patch ++++++ >From a7a28da41076d031c01790c3b4fb14e7b97efaf6 Mon Sep 17 00:00:00 2001 From: Sebastian Wagner <se...@sebix.at> 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 <se...@sebix.at> --- 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', )