From d31d7f7f7c7adca90907a9a83a9b83f2231f23165de9d3a06e30da43369422d4 Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Fri, 24 Mar 2023 13:04:50 +0000 Subject: [PATCH] =?UTF-8?q?-=20Update=20to=200.7.0:=20=20=20*=20Support=20?= =?UTF-8?q?:has=20selector=200.6.0:=20=20=20*=20Improve=20speed=20of=20anc?= =?UTF-8?q?estors=20and=20previous=20siblings=200.5.0:=20=20=20*=20Support?= =?UTF-8?q?=20Python=203.10=20=20=20*=20Drop=20support=20of=20Python=203.6?= =?UTF-8?q?=20=20=20*=20Handle=20many=20CSS4=20selectors=20=20=20*=20Ignor?= =?UTF-8?q?e=20comments=20at=20the=20beginning=20of=20selectors=200.4.1:?= =?UTF-8?q?=20=20=20*=20Fix=20PyPI=20description=20and=20various=20links.?= =?UTF-8?q?=200.4.0:=20=20=20*=20Drop=20support=20of=20Python=203.5,=20add?= =?UTF-8?q?=20support=20of=20Python=203.9.=20=20=20*=20Don=E2=80=99t=20cra?= =?UTF-8?q?sh=20on=20empty=20:not()=20selectors.=20=20=20*=20New=20code=20?= =?UTF-8?q?structure,=20new=20packaging,=20new=20documentation.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cssselect2?expand=0&rev=16 --- cssselect2-0.3.0.tar.gz | 3 --- cssselect2-0.7.0.tar.gz | 3 +++ python-cssselect2.changes | 19 +++++++++++++++++++ python-cssselect2.spec | 22 +++++++++++----------- 4 files changed, 33 insertions(+), 14 deletions(-) delete mode 100644 cssselect2-0.3.0.tar.gz create mode 100644 cssselect2-0.7.0.tar.gz diff --git a/cssselect2-0.3.0.tar.gz b/cssselect2-0.3.0.tar.gz deleted file mode 100644 index 4479d4a..0000000 --- a/cssselect2-0.3.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5c2716f06b5de93f701d5755a9666f2ee22cbcd8b4da8adddfc30095ffea3abc -size 29534 diff --git a/cssselect2-0.7.0.tar.gz b/cssselect2-0.7.0.tar.gz new file mode 100644 index 0000000..884b21b --- /dev/null +++ b/cssselect2-0.7.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4fffdffcb7d7e7784c337d75e14399a9af4d0b9d91addc66c869f9482aa6ceaf +size 35321 diff --git a/python-cssselect2.changes b/python-cssselect2.changes index 5432a6b..14df5cd 100644 --- a/python-cssselect2.changes +++ b/python-cssselect2.changes @@ -1,3 +1,22 @@ +------------------------------------------------------------------- +Fri Mar 24 13:02:48 UTC 2023 - Daniel Garcia + +- Update to 0.7.0: + * Support :has selector +0.6.0: + * Improve speed of ancestors and previous siblings +0.5.0: + * Support Python 3.10 + * Drop support of Python 3.6 + * Handle many CSS4 selectors + * Ignore comments at the beginning of selectors +0.4.1: + * Fix PyPI description and various links. +0.4.0: + * Drop support of Python 3.5, add support of Python 3.9. + * Don’t crash on empty :not() selectors. + * New code structure, new packaging, new documentation. + ------------------------------------------------------------------- Wed Apr 1 14:58:45 UTC 2020 - Marketa Calabkova diff --git a/python-cssselect2.spec b/python-cssselect2.spec index aee2d79..695912b 100644 --- a/python-cssselect2.spec +++ b/python-cssselect2.spec @@ -1,7 +1,7 @@ # # spec file for package python-cssselect2 # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,17 +16,18 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-cssselect2 -Version: 0.3.0 +Version: 0.7.0 Release: 0 Summary: CSS selectors for Python ElementTree License: BSD-3-Clause Group: Development/Languages/Python URL: https://github.com/Kozea/cssselect2/ -Source: https://files.pythonhosted.org/packages/source/c/cssselect2/cssselect2-%{version}.tar.gz -BuildRequires: %{python_module setuptools >= 39.2.0} +Source: https://github.com/Kozea/cssselect2/archive/refs/tags/%{version}.tar.gz#/cssselect2-%{version}.tar.gz +BuildRequires: %{python_module flit-core} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-tinycss2 @@ -50,23 +51,22 @@ cssselect. %prep %setup -q -n cssselect2-%{version} -sed -i '/addopts/d' setup.cfg -sed -i -e 's/pytest-.*//' setup.cfg %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check export LANG=en_US.UTF-8 -%pytest cssselect2/tests +%pytest -v %files %{python_files} %doc README.rst %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/cssselect2 +%{python_sitelib}/cssselect2-%{version}*-info %changelog