15
0

Accepting request 790635 from home:mcalabkova:branches:devel:languages:python

- Update to 0.3.0
  * Drop Python2 support
  * Improve packaging and testing

OBS-URL: https://build.opensuse.org/request/show/790635
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cssselect2?expand=0&rev=14
This commit is contained in:
Tomáš Chvátal
2020-04-01 16:14:34 +00:00
committed by Git OBS Bridge
parent e1b69f624a
commit 13b2a63a22
4 changed files with 17 additions and 7 deletions

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}/*