summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-05 03:27:39 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-05 03:27:39 +0000
commita93ca1d4c47fbe80d1502040c9c7e1f957a7740f (patch)
tree4341b140378fa2341c1cd5d61afebf3fcabaea74
parent834a2b2086d09ae365a2cd2e6568cb94bb6671d2 (diff)
automatic import of python-colormapopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-colormap.spec282
-rw-r--r--sources1
3 files changed, 284 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..28a6f0b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/colormap-1.0.4.tar.gz
diff --git a/python-colormap.spec b/python-colormap.spec
new file mode 100644
index 0000000..5b1a750
--- /dev/null
+++ b/python-colormap.spec
@@ -0,0 +1,282 @@
+%global _empty_manifest_terminate_build 0
+Name: python-colormap
+Version: 1.0.4
+Release: 1
+Summary: Utilities to ease manipulation of matplotlib colormaps and color codecs (e.g., hex2rgb)
+License: LGPL
+URL: http://github.com/cokelaer/colormap
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/ac/1b/75c9152c1636064abcd5b2b0eb674dbc71cde985b2337cdc906e81f59b75/colormap-1.0.4.tar.gz
+BuildArch: noarch
+
+
+%description
+#############################
+COLORMAP documentation
+#############################
+
+
+Please see : http://colormap.readthedocs.io/ for an up-to-date documentation.
+
+.. image:: https://badge.fury.io/py/colormap.svg
+ :target: https://pypi.python.org/pypi/colormap
+
+.. image:: https://github.com/cokelaer/colormap/actions/workflows/ci.yml/badge.svg?branch=master
+ :target: https://github.com/cokelaer/colormap/actions/workflows/ci.yml
+
+.. image:: https://coveralls.io/repos/cokelaer/colormap/badge.png?branch=master
+ :target: https://coveralls.io/r/cokelaer/colormap?branch=master
+
+
+:version: Python 3.6, 3.7, 3.8, 3.9
+:contributions: Please join https://github.com/cokelaer/colormap
+:issues: Please use https://github.com/cokelaer/colormap/issues
+:notebook: Please see https://github.com/cokelaer/colormap/tree/master/notebooks
+
+
+
+What is it ?
+################
+
+**colormap** package provides simple utilities to convert colors between
+RGB, HEX, HLS, HUV and a class to easily build colormaps for matplotlib. All
+matplotlib colormaps and some R colormaps are available altogether. The
+plot_colormap method (see below) is handy to quickly pick up a colormaps and
+the test_colormap is useful to see test a new colormap.
+
+
+Installation
+###################
+
+::
+
+ pip install colormap
+
+Example
+##########
+
+* Create your own colormap from red to green colors with intermediate color as
+ whitish (diverging map from red to green)::
+
+ c = Colormap()
+ mycmap = c.cmap( {'red':[1,1,0], 'green':[0,1,.39], 'blue':[0,1,0]})
+ cmap = c.test_colormap(mycmap)
+
+* Even simpler if the colormap is linear::
+
+ c = Colormap()
+ mycmap = c.cmap_linear('red', 'white', 'green(w3c)')
+ cmap = c.test_colormap(mycmap)
+
+.. image:: http://colormap.readthedocs.io/en/latest/_images/index-1.png
+ :width: 50%
+ :align: center
+
+* check out the available colormaps::
+
+ c = Colormap()
+ c.plot_colormap('diverging')
+
+.. image:: http://colormap.readthedocs.io/en/latest/_images/colormaps.png
+ :width: 50%
+ :align: center
+
+See online documentation for details: http://colormap.readthedocs.io/
+
+%package -n python3-colormap
+Summary: Utilities to ease manipulation of matplotlib colormaps and color codecs (e.g., hex2rgb)
+Provides: python-colormap
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-colormap
+#############################
+COLORMAP documentation
+#############################
+
+
+Please see : http://colormap.readthedocs.io/ for an up-to-date documentation.
+
+.. image:: https://badge.fury.io/py/colormap.svg
+ :target: https://pypi.python.org/pypi/colormap
+
+.. image:: https://github.com/cokelaer/colormap/actions/workflows/ci.yml/badge.svg?branch=master
+ :target: https://github.com/cokelaer/colormap/actions/workflows/ci.yml
+
+.. image:: https://coveralls.io/repos/cokelaer/colormap/badge.png?branch=master
+ :target: https://coveralls.io/r/cokelaer/colormap?branch=master
+
+
+:version: Python 3.6, 3.7, 3.8, 3.9
+:contributions: Please join https://github.com/cokelaer/colormap
+:issues: Please use https://github.com/cokelaer/colormap/issues
+:notebook: Please see https://github.com/cokelaer/colormap/tree/master/notebooks
+
+
+
+What is it ?
+################
+
+**colormap** package provides simple utilities to convert colors between
+RGB, HEX, HLS, HUV and a class to easily build colormaps for matplotlib. All
+matplotlib colormaps and some R colormaps are available altogether. The
+plot_colormap method (see below) is handy to quickly pick up a colormaps and
+the test_colormap is useful to see test a new colormap.
+
+
+Installation
+###################
+
+::
+
+ pip install colormap
+
+Example
+##########
+
+* Create your own colormap from red to green colors with intermediate color as
+ whitish (diverging map from red to green)::
+
+ c = Colormap()
+ mycmap = c.cmap( {'red':[1,1,0], 'green':[0,1,.39], 'blue':[0,1,0]})
+ cmap = c.test_colormap(mycmap)
+
+* Even simpler if the colormap is linear::
+
+ c = Colormap()
+ mycmap = c.cmap_linear('red', 'white', 'green(w3c)')
+ cmap = c.test_colormap(mycmap)
+
+.. image:: http://colormap.readthedocs.io/en/latest/_images/index-1.png
+ :width: 50%
+ :align: center
+
+* check out the available colormaps::
+
+ c = Colormap()
+ c.plot_colormap('diverging')
+
+.. image:: http://colormap.readthedocs.io/en/latest/_images/colormaps.png
+ :width: 50%
+ :align: center
+
+See online documentation for details: http://colormap.readthedocs.io/
+
+%package help
+Summary: Development documents and examples for colormap
+Provides: python3-colormap-doc
+%description help
+#############################
+COLORMAP documentation
+#############################
+
+
+Please see : http://colormap.readthedocs.io/ for an up-to-date documentation.
+
+.. image:: https://badge.fury.io/py/colormap.svg
+ :target: https://pypi.python.org/pypi/colormap
+
+.. image:: https://github.com/cokelaer/colormap/actions/workflows/ci.yml/badge.svg?branch=master
+ :target: https://github.com/cokelaer/colormap/actions/workflows/ci.yml
+
+.. image:: https://coveralls.io/repos/cokelaer/colormap/badge.png?branch=master
+ :target: https://coveralls.io/r/cokelaer/colormap?branch=master
+
+
+:version: Python 3.6, 3.7, 3.8, 3.9
+:contributions: Please join https://github.com/cokelaer/colormap
+:issues: Please use https://github.com/cokelaer/colormap/issues
+:notebook: Please see https://github.com/cokelaer/colormap/tree/master/notebooks
+
+
+
+What is it ?
+################
+
+**colormap** package provides simple utilities to convert colors between
+RGB, HEX, HLS, HUV and a class to easily build colormaps for matplotlib. All
+matplotlib colormaps and some R colormaps are available altogether. The
+plot_colormap method (see below) is handy to quickly pick up a colormaps and
+the test_colormap is useful to see test a new colormap.
+
+
+Installation
+###################
+
+::
+
+ pip install colormap
+
+Example
+##########
+
+* Create your own colormap from red to green colors with intermediate color as
+ whitish (diverging map from red to green)::
+
+ c = Colormap()
+ mycmap = c.cmap( {'red':[1,1,0], 'green':[0,1,.39], 'blue':[0,1,0]})
+ cmap = c.test_colormap(mycmap)
+
+* Even simpler if the colormap is linear::
+
+ c = Colormap()
+ mycmap = c.cmap_linear('red', 'white', 'green(w3c)')
+ cmap = c.test_colormap(mycmap)
+
+.. image:: http://colormap.readthedocs.io/en/latest/_images/index-1.png
+ :width: 50%
+ :align: center
+
+* check out the available colormaps::
+
+ c = Colormap()
+ c.plot_colormap('diverging')
+
+.. image:: http://colormap.readthedocs.io/en/latest/_images/colormaps.png
+ :width: 50%
+ :align: center
+
+See online documentation for details: http://colormap.readthedocs.io/
+
+%prep
+%autosetup -n colormap-1.0.4
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-colormap -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 1.0.4-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..d39cd2b
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+d20d253cac416f61e9e755addb9bcbb2 colormap-1.0.4.tar.gz