%global _empty_manifest_terminate_build 0 Name: python-chrys Version: 4.0.27 Release: 1 Summary: A collection of color palettes for mapping and visualisation License: BSD-3-Clause URL: https://github.com/netbek/chrys Source0: https://mirrors.aliyun.com/pypi/web/packages/84/61/4de863c45a848a9811b19e78c843bd0dc6a04dc626974dcacd1bb009b405/chrys-4.0.27.tar.gz BuildArch: noarch Requires: python3-matplotlib Requires: python3-nose Requires: python3-numpy Requires: python3-wcag-contrast-ratio %description # chrys [![CircleCI](https://circleci.com/gh/netbek/chrys.svg?style=svg)](https://circleci.com/gh/netbek/chrys) A collection of color palettes for visualisation in JavaScript, Python and Sass. ## Demo [netbek.github.io/chrys](https://netbek.github.io/chrys#colour-schemes) ## Installation ### Node.js and Sass ```shell npm install chrys ``` ### Python 3.6 and up ```shell pip install chrys ``` ## Usage For instructions, refer to [the docs](https://netbek.github.io/chrys#usage). ## Development Install Node and Python dependencies: ```shell ./scripts/install.sh ``` Build palette data: ```shell npm run build-data ``` Build JavaScript and Python distribution packages, Sass, CSS, Illustrator scripts: ```shell npm run build-dist ``` Deploy documentation to GitHub Pages: ```shell npm run deploy ``` Publish JavaScript and Python distribution packages: ```shell npm publish npm run publish-py ``` ## Credit Palettes from: * [Bokeh](https://github.com/bokeh/bokeh) (BSD 3-Clause) * [Vega](https://github.com/vega/vega) (BSD 3-Clause) ## License Copyright (c) 2017 Hein Bekker. Licensed under the BSD 3-Clause License. %package -n python3-chrys Summary: A collection of color palettes for mapping and visualisation Provides: python-chrys BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-chrys # chrys [![CircleCI](https://circleci.com/gh/netbek/chrys.svg?style=svg)](https://circleci.com/gh/netbek/chrys) A collection of color palettes for visualisation in JavaScript, Python and Sass. ## Demo [netbek.github.io/chrys](https://netbek.github.io/chrys#colour-schemes) ## Installation ### Node.js and Sass ```shell npm install chrys ``` ### Python 3.6 and up ```shell pip install chrys ``` ## Usage For instructions, refer to [the docs](https://netbek.github.io/chrys#usage). ## Development Install Node and Python dependencies: ```shell ./scripts/install.sh ``` Build palette data: ```shell npm run build-data ``` Build JavaScript and Python distribution packages, Sass, CSS, Illustrator scripts: ```shell npm run build-dist ``` Deploy documentation to GitHub Pages: ```shell npm run deploy ``` Publish JavaScript and Python distribution packages: ```shell npm publish npm run publish-py ``` ## Credit Palettes from: * [Bokeh](https://github.com/bokeh/bokeh) (BSD 3-Clause) * [Vega](https://github.com/vega/vega) (BSD 3-Clause) ## License Copyright (c) 2017 Hein Bekker. Licensed under the BSD 3-Clause License. %package help Summary: Development documents and examples for chrys Provides: python3-chrys-doc %description help # chrys [![CircleCI](https://circleci.com/gh/netbek/chrys.svg?style=svg)](https://circleci.com/gh/netbek/chrys) A collection of color palettes for visualisation in JavaScript, Python and Sass. ## Demo [netbek.github.io/chrys](https://netbek.github.io/chrys#colour-schemes) ## Installation ### Node.js and Sass ```shell npm install chrys ``` ### Python 3.6 and up ```shell pip install chrys ``` ## Usage For instructions, refer to [the docs](https://netbek.github.io/chrys#usage). ## Development Install Node and Python dependencies: ```shell ./scripts/install.sh ``` Build palette data: ```shell npm run build-data ``` Build JavaScript and Python distribution packages, Sass, CSS, Illustrator scripts: ```shell npm run build-dist ``` Deploy documentation to GitHub Pages: ```shell npm run deploy ``` Publish JavaScript and Python distribution packages: ```shell npm publish npm run publish-py ``` ## Credit Palettes from: * [Bokeh](https://github.com/bokeh/bokeh) (BSD 3-Clause) * [Vega](https://github.com/vega/vega) (BSD 3-Clause) ## License Copyright (c) 2017 Hein Bekker. Licensed under the BSD 3-Clause License. %prep %autosetup -n chrys-4.0.27 %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-chrys -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Thu Jun 08 2023 Python_Bot - 4.0.27-1 - Package Spec generated