From 7ea1eb5203f976fb1b5c13c4a559c06648e907a62aa5e42823ddfc0e9b765dd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 13 Sep 2019 10:35:30 +0000 Subject: [PATCH] - Update to 1.1.0: * Support for the :scope selector, which allows to access immediate children of a selector. * Support for the |E syntax for type selectors without a namespace. * A new selector method, canonical, returns the CSS expression of the selector, as a string. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cssselect?expand=0&rev=19 --- cssselect-1.0.3.tar.gz | 3 --- python-cssselect.changes | 8 ++++++++ python-cssselect.spec | 23 ++++++++++++++--------- v1.1.0.tar.gz | 3 +++ 4 files changed, 25 insertions(+), 12 deletions(-) delete mode 100644 cssselect-1.0.3.tar.gz create mode 100644 v1.1.0.tar.gz diff --git a/cssselect-1.0.3.tar.gz b/cssselect-1.0.3.tar.gz deleted file mode 100644 index d6398f5..0000000 --- a/cssselect-1.0.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:066d8bc5229af09617e24b3ca4d52f1f9092d9e061931f4184cd572885c23204 -size 22824 diff --git a/python-cssselect.changes b/python-cssselect.changes index bd9fb05..1f5be11 100644 --- a/python-cssselect.changes +++ b/python-cssselect.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Fri Sep 13 10:31:51 UTC 2019 - Tomáš Chvátal + +- Update to 1.1.0: + * Support for the :scope selector, which allows to access immediate children of a selector. + * Support for the |E syntax for type selectors without a namespace. + * A new selector method, canonical, returns the CSS expression of the selector, as a string. + ------------------------------------------------------------------- Tue Dec 4 12:47:02 UTC 2018 - Matej Cepl diff --git a/python-cssselect.spec b/python-cssselect.spec index 5ec3124..a94d612 100644 --- a/python-cssselect.spec +++ b/python-cssselect.spec @@ -1,7 +1,7 @@ # # spec file for package python-cssselect # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,18 +18,19 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-cssselect -Version: 1.0.3 +Version: 1.1.0 Release: 0 Summary: CSS3 selectors for Python License: BSD-3-Clause Group: Development/Languages/Python -Url: http://packages.python.org/cssselect/ -Source: https://pypi.io/packages/source/c/cssselect/cssselect-%{version}.tar.gz +URL: https://github.com/scrapy/cssselect +Source: https://github.com/scrapy/cssselect/archive/v%{version}.tar.gz +BuildRequires: %{python_module lxml} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch - %python_subpackages %description @@ -48,10 +49,14 @@ extracted as a stand-alone project. %install %python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} -%files %python_files -%defattr(-,root,root,-) +%check +%pytest + +%files %{python_files} %{python_sitelib}/* -%doc README.rst LICENSE CHANGES AUTHORS +%license LICENSE +%doc README.rst CHANGES AUTHORS %changelog diff --git a/v1.1.0.tar.gz b/v1.1.0.tar.gz new file mode 100644 index 0000000..a3b638f --- /dev/null +++ b/v1.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dde8c1d4a2c82de6889a3af1c1adbce1a6f3ec08b07a854d873f3f3da92960af +size 35516