1
0

Accepting request 1036647 from home:bnavigator:branches:devel:languages:python

- Clean specfile
- Requires Python >= 3.7, prevent failing build for 15.x targets
- Update Summary and Description

OBS-URL: https://build.opensuse.org/request/show/1036647
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tinycss2?expand=0&rev=23
This commit is contained in:
Matej Cepl 2022-11-20 00:35:34 +00:00 committed by Git OBS Bridge
parent a92d349939
commit ac7695ce51
2 changed files with 16 additions and 6 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Nov 17 13:30:44 UTC 2022 - Ben Greiner <code@bnavigator.de>
- Clean specfile
- Requires Python >= 3.7, prevent failing build for 15.x targets
- Update Summary and Description
-------------------------------------------------------------------
Sat Oct 29 16:06:46 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>

View File

@ -16,16 +16,15 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-tinycss2
Version: 1.2.1
Release: 0
Summary: Low-level CSS parser for Python
Summary: A tiny CSS parser
License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://github.com/Kozea/tinycss2
Source: https://files.pythonhosted.org/packages/source/t/tinycss2/tinycss2-%{version}.tar.gz
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module flit-core}
BuildRequires: %{python_module pip}
BuildRequires: fdupes
@ -40,12 +39,16 @@ BuildArch: noarch
%python_subpackages
%description
TinyCSS2 is a rewrite of tinycss with a simpler API, based on the
more recent CSS Syntax Level 3 specification.
tinycss2 is a low-level CSS parser and generator written in Python:
it can parse strings, return objects representing tokens and blocks,
and generate CSS strings corresponding to these objects.
Based on the CSS Syntax Level 3 specification, tinycss2 knows the
grammar of CSS but doesn't know specific rules, properties or values
supported in various CSS modules.
%prep
%setup -q -n tinycss2-%{version}
sed -i 's/--isort//;s/--flake8//;s/--cov --no-cov-on-fail//' pyproject.toml
%build
%pyproject_wheel