6 Star 0 Fork 3

src-openEuler/python-tinycss2

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
python-tinycss2.spec 2.09 KB
一键复制 编辑 原始数据 按行查看 历史
wenlongd 提交于 2022-07-20 12:13 +08:00 . Initial package, Add source files.
%global srcname tinycss2
%global py3_prefix python%{python3_pkgversion}
Name: python-%{srcname}
Version: 1.1.0
Release: 1
Summary: Low-level CSS parser for Python
License: BSD
URL: https://pypi.python.org/pypi/%{srcname}/
Source0: %pypi_source
Source1: export-git-snapshot.sh
Source2: css-parsing-tests-c5749e5.tar.gz
Patch0: %{name}-disable-flake8-isort-for-pytest.patch
BuildArch: noarch
BuildRequires: gzip
BuildRequires: tar
BuildRequires: %{py3_prefix}-devel
BuildRequires: %{py3_prefix}-pytest
BuildRequires: %{py3_prefix}-pytest-cov
BuildRequires: %{py3_prefix}-pytest-runner
BuildRequires: %{py3_prefix}-setuptools
BuildRequires: %{py3_prefix}-webencodings >= 0.4
BuildRequires: %{py3_prefix}-tomli
%description
tinycss2 is a modern, low-level CSS parser for Python. tinycss2 is a rewrite of
tinycss with a simpler API, based on the more recent CSS Syntax Level 3
specification.
%package -n %{py3_prefix}-%{srcname}
Summary: Low-level CSS parser for Python 3
Requires: %{py3_prefix}-webencodings >= 0.4
%{?python_provide:%python_provide %{py3_prefix}-%{srcname}}
%description -n %{py3_prefix}-%{srcname}
tinycss2 is a modern, low-level CSS parser for Python. tinycss2 is a rewrite of
tinycss with a simpler API, based on the more recent CSS Syntax Level 3
specification.
%prep
%autosetup -n %{srcname}-%{version}
tar xf "%{SOURCE2}"
cp -a css-parsing-tests-???????/* tests/css-parsing-tests/
%build
%py3_build
%install
%py3_install
%check
%{__python3} -m pytest -v
# remove files which are only required for unit tests (including test.pyc/.pyo)
rm -rf %{buildroot}%{python3_sitelib}/%{srcname}/css-parsing-tests
rm -rf %{buildroot}%{python3_sitelib}/%{srcname}/test.py
rm -rf %{buildroot}%{python3_sitelib}/%{srcname}/__pycache__/test.*.py?
%files -n %{py3_prefix}-%{srcname}
%license LICENSE
%doc README.rst
%{python3_sitelib}/%{srcname}/
%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info
%changelog
* Mon Jun 27 2022 lin zhang <[email protected]> - 1.1.0-1
- initial package
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/python-tinycss2.git
[email protected]:src-openeuler/python-tinycss2.git
src-openeuler
python-tinycss2
python-tinycss2
master

搜索帮助