15
0

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
This commit is contained in:
Tomáš Chvátal
2019-04-01 12:28:29 +00:00
committed by Git OBS Bridge
parent bb472aac18
commit f2bd20f6d5
4 changed files with 25 additions and 6 deletions

View File

@@ -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}/*