%{?python_enable_dependency_generator}%global pypi_name leather%global dir_name leather%global github_name leather%global commit e85dd30cc20270180c26c56fd895aff61e84f741Name: python-%{pypi_name}Version: 0.4.0Release: 1Summary: Python charting for 80% of humansLicense: MITURL: https://pypi.python.org/pypi/leatherSource0: https://files.pythonhosted.org/packages/source/l/leather/leather-%{version}.tar.gzBuildArch: noarch# Build requirements for pyproject build, docs and testsBuildRequires: python3-develBuildRequires: python3-pipBuildRequires: python3-wheelBuildRequires: python3-buildBuildRequires: python3-sphinx >= 1.2.2BuildRequires: python3-coverage >= 3.7.1BuildRequires: python3-sphinx_rtd_theme >= 0.1.6BuildRequires: python3-furoBuildRequires: python3-lxml >= 3.6.0BuildRequires: python3-six >= 1.6.1BuildRequires: python3-cssselect%descriptiondesc Leather is the Python charting library for those who need charts now and don’t\care if they’re perfect.\\- A readable and user-friendly API.\- Optimized for exploratory charting.\- Produces scale-independent SVG charts.\- Completely type-agnostic. Chart your data, whatever it is.\- Designed with iPython, Jupyter and atom/hydrogen in mind.\- Pure Python. No C dependencies to compile.%package -n python3-%{pypi_name}Summary: %{summary}%{?python_provide:%python_provide python3-%{pypi_name}}%description -n python3-%{pypi_name}desc Leather is the Python charting library for those who need charts now and don’t\care if they’re perfect.\\- A readable and user-friendly API.\- Optimized for exploratory charting.\- Produces scale-independent SVG charts.\- Completely type-agnostic. Chart your data, whatever it is.\- Designed with iPython, Jupyter and atom/hydrogen in mind.\- Pure Python. No C dependencies to compile.%package -n python-%{pypi_name}-docSummary: %{summary}%description -n python-%{pypi_name}-docdesc Leather is the Python charting library for those who need charts now and don’t\care if they’re perfect.\\- A readable and user-friendly API.\- Optimized for exploratory charting.\- Produces scale-independent SVG charts.\- Completely type-agnostic. Chart your data, whatever it is.\- Designed with iPython, Jupyter and atom/hydrogen in mind.\- Pure Python. No C dependencies to compile.\\Documentation package.%prep%autosetup -n leather-%{version}# Remove shebang on non-executable scripts# 用 find 递归处理,避免依赖 bash 的 globstarfind leather -name '*.py' -print0 | xargs -0 sed -i '1{\@^#!/usr/bin/env python@d}'%build%pyproject_buildpushd docsmake html# Remove hidden filerm -f _build/html/.buildinfopopd%install%pyproject_install# Remove __pycache__ directories and .pyc/.pyo files to ensure they are not packagedfind %{buildroot} -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || :find %{buildroot} -type f -name "*.pyc" -deletefind %{buildroot} -type f -name "*.pyo" -delete# 安装 HTML 文档到独立 doc 目录install -d -m755 %{buildroot}%{_docdir}/python-%{pypi_name}cp -a docs/_build/html %{buildroot}%{_docdir}/python-%{pypi_name}/%check%{__python3} -m unittest discover -s tests -v%files -n python3-%{pypi_name}%doc README.rst%license COPYING%{python3_sitelib}/%{dir_name}/%{python3_sitelib}/%{pypi_name}-*.dist-info/%files -n python-%{pypi_name}-doc%license COPYING%doc %{_docdir}/python-%{pypi_name}/html%changelog* Fri Nov 14 2025 zhao6777 <zhaojianbin@kylinos.cn> - 0.4.0-1- Update to 0.4.0- Switch to pyproject build system- Remove __pycache__ directories and .pyc/.pyo files* Tue Aug 02 2022 fushanqing <fushanqing@kylinos.cn> - 0.3.4-1- Remove BuildRequires python3-nose and update to 0.3.4* Mon Jun 28 2021 Cai Yuxin <caiyuxin@kylinos.cn> - 0.3.3-1- Inital package
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
1. 开源生态
2. 协作、人、软件
3. 评估模型