Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
devel:languages:python:numeric
python-colormap
python-colormap.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-colormap.spec of Package python-colormap
# # spec file for package python-colormap # # Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python36 1 Name: python-colormap Version: 1.0.6 Release: 0 Summary: Utilities to manipulate matplotlib colormaps and color codecs License: BSD-3-Clause Group: Development/Languages/Python URL: https://github.com/cokelaer/colormap Source: https://files.pythonhosted.org/packages/source/c/colormap/colormap-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-easydev Requires: python-matplotlib BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module easydev} BuildRequires: %{python_module matplotlib} BuildRequires: %{python_module numpy} BuildRequires: %{python_module pytest} # /SECTION %python_subpackages %description The colormap package provides utilities to convert colors between RGB, HEX, HLS, HUV and a class to build colormaps for matplotlib. All matplotlib colormaps and some R colormaps are available altogether. The plot_colormap method is able to pick up a colormaps and the test_colormap can be used to visually test a new colormap. %prep %setup -q -n colormap-%{version} # We don't want the pytest addopts for coverage. Nothing relevant in there rm setup.cfg # matplotlib depends on numpy anyway, use that as replacement for easydev.easytest using nose sed -i 's/from easydev.easytest import assert_list_almost_equal/from numpy.testing import assert_almost_equal as assert_list_almost_equal/' test/test_colors.py %build %python_build %install %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check %pytest %files %{python_files} %doc README.rst %license LICENSE %{python_sitelib}/colormap %{python_sitelib}/colormap-%{version}-py*.egg-info %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor