From 16023fa3aacf19b67dea36e04f88e2096dbb99dd Mon Sep 17 00:00:00 2001 From: windowsboy111 Date: Sun, 19 Mar 2023 22:53:41 +0800 Subject: [PATCH] add: python3-rich --- anda/python/rich/anda.hcl | 5 +++ anda/python/rich/python3-rich.spec | 50 ++++++++++++++++++++++++++++++ anda/python/rich/update.rhai | 1 + 3 files changed, 56 insertions(+) create mode 100644 anda/python/rich/anda.hcl create mode 100644 anda/python/rich/python3-rich.spec create mode 100644 anda/python/rich/update.rhai diff --git a/anda/python/rich/anda.hcl b/anda/python/rich/anda.hcl new file mode 100644 index 0000000000..5f7fc18098 --- /dev/null +++ b/anda/python/rich/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "python3-rich.spec" + } +} diff --git a/anda/python/rich/python3-rich.spec b/anda/python/rich/python3-rich.spec new file mode 100644 index 0000000000..eead5cd6b9 --- /dev/null +++ b/anda/python/rich/python3-rich.spec @@ -0,0 +1,50 @@ +# Created by pyp2rpm-3.3.8 +%global pypi_name rich +%global pypi_version 13.3.2 + +Name: python-%{pypi_name} +Version: %{pypi_version} +Release: 1%{?dist} +Summary: Render rich text, tables, progress bars, syntax highlighting, markdown and more to the terminal + +License: None +URL: https://github.com/Textualize/rich +Source0: %{pypi_source} +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3dist(setuptools) + +%description +%{summary}. + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +Requires: (python3dist(ipywidgets) >= 7.5.1 with python3dist(ipywidgets) < 9~~) +Requires: (python3dist(markdown-it-py) >= 2.2 with python3dist(markdown-it-py) < 3~~) +Requires: (python3dist(pygments) >= 2.13 with python3dist(pygments) < 3~~) +Requires: (python3dist(typing-extensions) >= 4 with python3dist(typing-extensions) < 5~~) +%description -n python3-%{pypi_name} +%{summary}. + + +%prep +%autosetup -n %{pypi_name}-%{pypi_version} + +%build +%py3_build + +%install +%py3_install + +%files -n python3-%{pypi_name} +%license LICENSE +%doc README.md +%{python3_sitelib}/%{pypi_name} +%{python3_sitelib}/%{pypi_name}-%{pypi_version}-py%{python3_version}.egg-info + +%changelog +* Sun Mar 19 2023 windowsboy111 - 13.3.2-1 +- Initial package. diff --git a/anda/python/rich/update.rhai b/anda/python/rich/update.rhai new file mode 100644 index 0000000000..31089aced0 --- /dev/null +++ b/anda/python/rich/update.rhai @@ -0,0 +1 @@ +rpm.global("pypi_version", pypi("rich"));