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