Accepting request 790649 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/790649
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cssselect2?expand=0&rev=6
This commit is contained in:
Dominique Leuenberger 2020-04-07 08:19:28 +00:00 committed by Git OBS Bridge
commit e1e514c179
4 changed files with 17 additions and 7 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:70485a680cd72b023f0ce5ae4dcd392e2b10f7280e20afdb1735334bd6af7e6a
size 31764

3
cssselect2-0.3.0.tar.gz Normal file
View File

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

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Apr 1 14:58:45 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
- Update to 0.3.0
* Drop Python2 support
* Improve packaging and testing
-------------------------------------------------------------------
Fri Sep 13 10:29:09 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-cssselect2
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -19,21 +19,23 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-cssselect2
Version: 0.2.2
Version: 0.3.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}
BuildRequires: %{python_module setuptools >= 39.2.0}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-tinycss2
Requires: python-webencodings
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module tinycss2}
BuildRequires: %{python_module webencodings}
# /SECTION
%python_subpackages
@ -49,6 +51,7 @@ cssselect.
%prep
%setup -q -n cssselect2-%{version}
sed -i '/addopts/d' setup.cfg
sed -i -e 's/pytest-.*//' setup.cfg
%build
%python_build
@ -62,7 +65,7 @@ export LANG=en_US.UTF-8
%pytest cssselect2/tests
%files %{python_files}
%doc CHANGES README.rst
%doc README.rst
%license LICENSE
%{python_sitelib}/*