forked from pool/python-sortedcontainers
		
	Accepting request 866242 from home:bnavigator:branches:devel:languages:python
- Remove NumPy, SciPy, and Matplotlib requirement. They are not used in the regular test suite. - no multibuild needed anymore OBS-URL: https://build.opensuse.org/request/show/866242 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sortedcontainers?expand=0&rev=24
This commit is contained in:
		| @@ -1,3 +0,0 @@ | ||||
| <multibuild> | ||||
|   <package>test</package> | ||||
| </multibuild> | ||||
| @@ -1,3 +1,10 @@ | ||||
| ------------------------------------------------------------------- | ||||
| Fri Jan 22 21:06:24 UTC 2021 - Benjamin Greiner <code@bnavigator.de> | ||||
|  | ||||
| - Remove NumPy, SciPy, and Matplotlib requirement. They are not  | ||||
|   used in the regular test suite.  | ||||
| - no multibuild needed anymore | ||||
|  | ||||
| ------------------------------------------------------------------- | ||||
| Thu Nov 26 08:40:07 UTC 2020 - Dirk Mueller <dmueller@suse.com> | ||||
|  | ||||
|   | ||||
| @@ -1,7 +1,7 @@ | ||||
| # | ||||
| # spec file for package python-sortedcontainers | ||||
| # | ||||
| # Copyright (c) 2020 SUSE LLC | ||||
| # Copyright (c) 2021 SUSE LLC | ||||
| # | ||||
| # All modifications and additions to the file contributed by third parties | ||||
| # remain the property of their copyright owners, unless otherwise agreed | ||||
| @@ -17,31 +17,18 @@ | ||||
|  | ||||
|  | ||||
| %{?!python_module:%define python_module() python-%{**} python3-%{**}} | ||||
| %global flavor @BUILD_FLAVOR@%{nil} | ||||
| %if "%{flavor}" == "test" | ||||
| %define psuffix -test | ||||
| %bcond_without test | ||||
| %else | ||||
| %define psuffix %{nil} | ||||
| %bcond_with test | ||||
| %endif | ||||
| Name:           python-sortedcontainers%{psuffix} | ||||
| Name:           python-sortedcontainers | ||||
| Version:        2.3.0 | ||||
| Release:        0 | ||||
| Summary:        Sorted container data types | ||||
| License:        Apache-2.0 | ||||
| URL:            https://github.com/grantjenks/python-sortedcontainers | ||||
| Source:         https://github.com/grantjenks/python-sortedcontainers/archive/v%{version}.tar.gz | ||||
| BuildRequires:  %{python_module pytest} | ||||
| BuildRequires:  %{python_module setuptools} | ||||
| BuildRequires:  fdupes | ||||
| BuildRequires:  python-rpm-macros | ||||
| BuildArch:      noarch | ||||
| %if %{with test} | ||||
| BuildRequires:  %{python_module matplotlib} | ||||
| BuildRequires:  %{python_module numpy} | ||||
| BuildRequires:  %{python_module pytest} | ||||
| BuildRequires:  %{python_module scipy} | ||||
| %endif | ||||
| %python_subpackages | ||||
|  | ||||
| %description | ||||
| @@ -67,21 +54,15 @@ rm -rf sortedcontainers.egg-info | ||||
| %python_build | ||||
|  | ||||
| %install | ||||
| %if !%{with test} | ||||
| %python_install | ||||
| %python_expand %fdupes %{buildroot}%{$python_sitelib} | ||||
| %endif | ||||
|  | ||||
| %check | ||||
| %if %{with test} | ||||
| %pytest tests | ||||
| %endif | ||||
|  | ||||
| %if !%{with test} | ||||
| %files %{python_files} | ||||
| %license LICENSE | ||||
| %doc README.rst | ||||
| %{python_sitelib}/* | ||||
| %endif | ||||
|  | ||||
| %changelog | ||||
|   | ||||
		Reference in New Issue
	
	Block a user