From ac7695ce51d189dfb7abaf108e4f8df32ece9c6485f7638ab5422f4727746306 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Sun, 20 Nov 2022 00:35:34 +0000 Subject: [PATCH] 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 --- python-tinycss2.changes | 7 +++++++ python-tinycss2.spec | 15 +++++++++------ 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/python-tinycss2.changes b/python-tinycss2.changes index 55e0290..6ff0186 100644 --- a/python-tinycss2.changes +++ b/python-tinycss2.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Nov 17 13:30:44 UTC 2022 - Ben Greiner + +- 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 diff --git a/python-tinycss2.spec b/python-tinycss2.spec index 930a05c..86114f8 100644 --- a/python-tinycss2.spec +++ b/python-tinycss2.spec @@ -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