From f2bd20f6d5dec742880f5b486c13339d995e1b58dc262b06aa8b75f78c8116cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 1 Apr 2019 12:28:29 +0000 Subject: [PATCH] Accepting request 690330 from home:pgajdos - version update to 1.1.2 * Removed `NoReturn` type annotations * Only supports Python 3.5 or better * Added `typing` type hints * simplify conversion of a profit matrix to a cost matrix * Added more tests - run the testsuite - python3-only package OBS-URL: https://build.opensuse.org/request/show/690330 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-munkres?expand=0&rev=7 --- python-munkres.changes | 12 ++++++++++++ python-munkres.spec | 13 ++++++++++--- release-1.0.9.tar.gz | 3 --- release-1.1.2.tar.gz | 3 +++ 4 files changed, 25 insertions(+), 6 deletions(-) delete mode 100644 release-1.0.9.tar.gz create mode 100644 release-1.1.2.tar.gz diff --git a/python-munkres.changes b/python-munkres.changes index 2194b89..837271d 100644 --- a/python-munkres.changes +++ b/python-munkres.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Mon Apr 1 08:57:28 UTC 2019 - pgajdos@suse.com + +- version update to 1.1.2 + * Removed `NoReturn` type annotations + * Only supports Python 3.5 or better + * Added `typing` type hints + * simplify conversion of a profit matrix to a cost matrix + * Added more tests +- run the testsuite +- python3-only package + ------------------------------------------------------------------- Tue Dec 4 12:50:37 UTC 2018 - Matej Cepl diff --git a/python-munkres.spec b/python-munkres.spec index 1730b18..76a766e 100644 --- a/python-munkres.spec +++ b/python-munkres.spec @@ -1,7 +1,7 @@ # # spec file for package python-munkres # -# 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 @@ -16,9 +16,10 @@ # +%define skip_python2 1 %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-munkres -Version: 1.0.9 +Version: 1.1.2 Release: 0 Summary: Munkres implementation for Python License: Apache-2.0 @@ -26,6 +27,9 @@ Group: Development/Languages/Python URL: http://software.clapper.org/munkres/ Source: https://github.com/bmc/munkres/archive/release-%{version}.tar.gz BuildRequires: %{python_module setuptools} +# SECTION test requirements +BuildRequires: %{python_module nose} +# /SECTION BuildRequires: python-rpm-macros BuildArch: noarch %python_subpackages @@ -57,8 +61,11 @@ $python -O -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/mu chmod -x %{buildroot}%{$python_sitelib}/munkres.py } +%check +%python_expand nosetests-%{$python_bin_suffix} + %files %{python_files} -%license LICENSE +%license LICENSE.md %doc CHANGELOG.md README.md %{python_sitelib}/* diff --git a/release-1.0.9.tar.gz b/release-1.0.9.tar.gz deleted file mode 100644 index 7c6d290..0000000 --- a/release-1.0.9.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1dae30b882f409bab8d913af7bbf41877359b1ece3fa0ea31d6486a454f3493b -size 13533 diff --git a/release-1.1.2.tar.gz b/release-1.1.2.tar.gz new file mode 100644 index 0000000..6f00dd5 --- /dev/null +++ b/release-1.1.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0a25570d1498d4ce86b6ed151f3afa1da7318deac56db25100ccbdb9b12625c3 +size 11186