summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-10 07:09:17 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-10 07:09:17 +0000
commit90b5e5ac3f769d479ab4b680eb476fc123e6123d (patch)
tree3a481bf285a286052ea52e23517957cb5d17d2a9
parent7eb46124b53946bcda858d8be2c26547cd60bc90 (diff)
automatic import of python-coloraideopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-coloraide.spec282
-rw-r--r--sources1
3 files changed, 284 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..59a900d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/coloraide-2.2.2.tar.gz
diff --git a/python-coloraide.spec b/python-coloraide.spec
new file mode 100644
index 0000000..be20cf7
--- /dev/null
+++ b/python-coloraide.spec
@@ -0,0 +1,282 @@
+%global _empty_manifest_terminate_build 0
+Name: python-coloraide
+Version: 2.2.2
+Release: 1
+Summary: A color library for Python.
+License: MIT License
+URL: https://github.com/facelessuser/coloraide
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/8f/ea/7a1f5c9b3dcf0b4d1137db8c98c3cdcb2f4f2c196ebf7c7e73e430860a75/coloraide-2.2.2.tar.gz
+BuildArch: noarch
+
+
+%description
+[![Donate via PayPal][donate-image]][donate-link]
+[![Discord][discord-image]][discord-link]
+[![Build][github-ci-image]][github-ci-link]
+[![Coverage Status][codecov-image]][codecov-link]
+[![PyPI Version][pypi-image]][pypi-link]
+[![PyPI Downloads][pypi-down]][pypi-link]
+[![PyPI - Python Version][python-image]][pypi-link]
+![License][license-image-mit]
+
+# ColorAide
+
+## Overview
+
+ColorAide is a pure Python, object oriented approach to colors.
+
+```python
+>>> from coloraide import Color
+>>> c = Color("red")
+>>> c.to_string()
+'rgb(255 0 0)'
+>>> c.convert('hsl').to_string()
+'hsl(0 100% 50%)'
+>>> c.set("lch.chroma", 30).to_string()
+'rgb(173.81 114.29 97.218)'
+>>> Color("blue").mix("yellow", space="lch").to_string()
+'rgb(255 65.751 107.47)'
+```
+
+ColorAide particularly has a focus on the following:
+
+- Accurate colors.
+
+- Proper round tripping (where reasonable).
+
+- Be generally easy to pick up for the average user.
+
+- Support modern CSS color spaces and syntax.
+
+- Make accessible many new and old non-CSS color spaces.
+
+- Provide a number of useful utilities such as interpolation, color distancing, blending, gamut mapping, etc.
+
+- Provide a plugin API to extend supported color spaces and more.
+
+- Allow users to configure defaults to their liking.
+
+With ColorAide, you can specify a color, convert it to other color spaces, mix it with other colors, output it in
+different CSS formats, and much more!
+
+# Documentation
+
+https://facelessuser.github.io/coloraide
+
+## License
+
+MIT
+
+[github-ci-image]: https://github.com/facelessuser/coloraide/workflows/build/badge.svg?branch=master&event=push
+[github-ci-link]: https://github.com/facelessuser/coloraide/actions?query=workflow%3Abuild+branch%3Amaster
+[discord-image]: https://img.shields.io/discord/678289859768745989?logo=discord&logoColor=aaaaaa&color=mediumpurple&labelColor=333333
+[discord-link]:https://discord.gg/TWs8Tgr
+[codecov-image]: https://img.shields.io/codecov/c/github/facelessuser/coloraide/master.svg?logo=codecov&logoColor=aaaaaa&labelColor=333333
+[codecov-link]: https://codecov.io/github/facelessuser/coloraide
+[pypi-image]: https://img.shields.io/pypi/v/coloraide.svg?logo=pypi&logoColor=aaaaaa&labelColor=333333
+[pypi-down]: https://img.shields.io/pypi/dm/coloraide.svg?logo=pypi&logoColor=aaaaaa&labelColor=333333
+[pypi-link]: https://pypi.python.org/pypi/coloraide
+[python-image]: https://img.shields.io/pypi/pyversions/coloraide?logo=python&logoColor=aaaaaa&labelColor=333333
+[license-image-mit]: https://img.shields.io/badge/license-MIT-blue.svg?labelColor=333333
+[donate-image]: https://img.shields.io/badge/Donate-PayPal-3fabd1?logo=paypal
+[donate-link]: https://www.paypal.me/facelessuser
+
+
+%package -n python3-coloraide
+Summary: A color library for Python.
+Provides: python-coloraide
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-coloraide
+[![Donate via PayPal][donate-image]][donate-link]
+[![Discord][discord-image]][discord-link]
+[![Build][github-ci-image]][github-ci-link]
+[![Coverage Status][codecov-image]][codecov-link]
+[![PyPI Version][pypi-image]][pypi-link]
+[![PyPI Downloads][pypi-down]][pypi-link]
+[![PyPI - Python Version][python-image]][pypi-link]
+![License][license-image-mit]
+
+# ColorAide
+
+## Overview
+
+ColorAide is a pure Python, object oriented approach to colors.
+
+```python
+>>> from coloraide import Color
+>>> c = Color("red")
+>>> c.to_string()
+'rgb(255 0 0)'
+>>> c.convert('hsl').to_string()
+'hsl(0 100% 50%)'
+>>> c.set("lch.chroma", 30).to_string()
+'rgb(173.81 114.29 97.218)'
+>>> Color("blue").mix("yellow", space="lch").to_string()
+'rgb(255 65.751 107.47)'
+```
+
+ColorAide particularly has a focus on the following:
+
+- Accurate colors.
+
+- Proper round tripping (where reasonable).
+
+- Be generally easy to pick up for the average user.
+
+- Support modern CSS color spaces and syntax.
+
+- Make accessible many new and old non-CSS color spaces.
+
+- Provide a number of useful utilities such as interpolation, color distancing, blending, gamut mapping, etc.
+
+- Provide a plugin API to extend supported color spaces and more.
+
+- Allow users to configure defaults to their liking.
+
+With ColorAide, you can specify a color, convert it to other color spaces, mix it with other colors, output it in
+different CSS formats, and much more!
+
+# Documentation
+
+https://facelessuser.github.io/coloraide
+
+## License
+
+MIT
+
+[github-ci-image]: https://github.com/facelessuser/coloraide/workflows/build/badge.svg?branch=master&event=push
+[github-ci-link]: https://github.com/facelessuser/coloraide/actions?query=workflow%3Abuild+branch%3Amaster
+[discord-image]: https://img.shields.io/discord/678289859768745989?logo=discord&logoColor=aaaaaa&color=mediumpurple&labelColor=333333
+[discord-link]:https://discord.gg/TWs8Tgr
+[codecov-image]: https://img.shields.io/codecov/c/github/facelessuser/coloraide/master.svg?logo=codecov&logoColor=aaaaaa&labelColor=333333
+[codecov-link]: https://codecov.io/github/facelessuser/coloraide
+[pypi-image]: https://img.shields.io/pypi/v/coloraide.svg?logo=pypi&logoColor=aaaaaa&labelColor=333333
+[pypi-down]: https://img.shields.io/pypi/dm/coloraide.svg?logo=pypi&logoColor=aaaaaa&labelColor=333333
+[pypi-link]: https://pypi.python.org/pypi/coloraide
+[python-image]: https://img.shields.io/pypi/pyversions/coloraide?logo=python&logoColor=aaaaaa&labelColor=333333
+[license-image-mit]: https://img.shields.io/badge/license-MIT-blue.svg?labelColor=333333
+[donate-image]: https://img.shields.io/badge/Donate-PayPal-3fabd1?logo=paypal
+[donate-link]: https://www.paypal.me/facelessuser
+
+
+%package help
+Summary: Development documents and examples for coloraide
+Provides: python3-coloraide-doc
+%description help
+[![Donate via PayPal][donate-image]][donate-link]
+[![Discord][discord-image]][discord-link]
+[![Build][github-ci-image]][github-ci-link]
+[![Coverage Status][codecov-image]][codecov-link]
+[![PyPI Version][pypi-image]][pypi-link]
+[![PyPI Downloads][pypi-down]][pypi-link]
+[![PyPI - Python Version][python-image]][pypi-link]
+![License][license-image-mit]
+
+# ColorAide
+
+## Overview
+
+ColorAide is a pure Python, object oriented approach to colors.
+
+```python
+>>> from coloraide import Color
+>>> c = Color("red")
+>>> c.to_string()
+'rgb(255 0 0)'
+>>> c.convert('hsl').to_string()
+'hsl(0 100% 50%)'
+>>> c.set("lch.chroma", 30).to_string()
+'rgb(173.81 114.29 97.218)'
+>>> Color("blue").mix("yellow", space="lch").to_string()
+'rgb(255 65.751 107.47)'
+```
+
+ColorAide particularly has a focus on the following:
+
+- Accurate colors.
+
+- Proper round tripping (where reasonable).
+
+- Be generally easy to pick up for the average user.
+
+- Support modern CSS color spaces and syntax.
+
+- Make accessible many new and old non-CSS color spaces.
+
+- Provide a number of useful utilities such as interpolation, color distancing, blending, gamut mapping, etc.
+
+- Provide a plugin API to extend supported color spaces and more.
+
+- Allow users to configure defaults to their liking.
+
+With ColorAide, you can specify a color, convert it to other color spaces, mix it with other colors, output it in
+different CSS formats, and much more!
+
+# Documentation
+
+https://facelessuser.github.io/coloraide
+
+## License
+
+MIT
+
+[github-ci-image]: https://github.com/facelessuser/coloraide/workflows/build/badge.svg?branch=master&event=push
+[github-ci-link]: https://github.com/facelessuser/coloraide/actions?query=workflow%3Abuild+branch%3Amaster
+[discord-image]: https://img.shields.io/discord/678289859768745989?logo=discord&logoColor=aaaaaa&color=mediumpurple&labelColor=333333
+[discord-link]:https://discord.gg/TWs8Tgr
+[codecov-image]: https://img.shields.io/codecov/c/github/facelessuser/coloraide/master.svg?logo=codecov&logoColor=aaaaaa&labelColor=333333
+[codecov-link]: https://codecov.io/github/facelessuser/coloraide
+[pypi-image]: https://img.shields.io/pypi/v/coloraide.svg?logo=pypi&logoColor=aaaaaa&labelColor=333333
+[pypi-down]: https://img.shields.io/pypi/dm/coloraide.svg?logo=pypi&logoColor=aaaaaa&labelColor=333333
+[pypi-link]: https://pypi.python.org/pypi/coloraide
+[python-image]: https://img.shields.io/pypi/pyversions/coloraide?logo=python&logoColor=aaaaaa&labelColor=333333
+[license-image-mit]: https://img.shields.io/badge/license-MIT-blue.svg?labelColor=333333
+[donate-image]: https://img.shields.io/badge/Donate-PayPal-3fabd1?logo=paypal
+[donate-link]: https://www.paypal.me/facelessuser
+
+
+%prep
+%autosetup -n coloraide-2.2.2
+
+%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-coloraide -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 2.2.2-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..88610b0
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+b06066cc12f5176e3cf20495fbb2dad1 coloraide-2.2.2.tar.gz