- 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.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cssselect2?expand=0&rev=16
This commit is contained in:
Daniel Garcia 2023-03-24 13:04:50 +00:00 committed by Git OBS Bridge
parent 13b2a63a22
commit d31d7f7f7c
4 changed files with 33 additions and 14 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5c2716f06b5de93f701d5755a9666f2ee22cbcd8b4da8adddfc30095ffea3abc
size 29534

BIN
cssselect2-0.7.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,3 +1,22 @@
-------------------------------------------------------------------
Fri Mar 24 13:02:48 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
- 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.
* Dont crash on empty :not() selectors.
* New code structure, new packaging, new documentation.
-------------------------------------------------------------------
Wed Apr 1 14:58:45 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>

View File

@ -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