Accepting request 805999 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/805999
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-tinycss2?expand=0&rev=5
This commit is contained in:
Yuchen Lin 2020-05-28 07:07:13 +00:00 committed by Git OBS Bridge
commit 73707c94e6
2 changed files with 16 additions and 6 deletions

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Sat May 16 00:00:10 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
- The fix for bsc#1130082 does not have an effect (anymore?).
New version of flake8 raises more failures.
Switch off flake8 tests by removing pytest-flake8 and the
corresponding pytest argument.
- pytest-cov not needed
-------------------------------------------------------------------
Fri Apr 26 07:27:51 UTC 2019 - pgajdos@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package python-tinycss2
#
# 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
@ -24,14 +24,12 @@ Release: 0
Summary: Low-level CSS parser for Python
License: BSD-3-Clause
Group: Development/Languages/Python
Url: https://github.com/Kozea/tinycss2
URL: https://github.com/Kozea/tinycss2
Source: https://files.pythonhosted.org/packages/source/t/tinycss2/tinycss2-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
# SECTION test requirements
BuildRequires: %{python_module pytest-cov}
BuildRequires: %{python_module pytest-flake8}
BuildRequires: %{python_module pytest-isort}
BuildRequires: %{python_module pytest-runner}
BuildRequires: %{python_module webencodings >= 0.4}
@ -57,11 +55,14 @@ more recent CSS Syntax Level 3 specification.
%check
export LANG=en_US.UTF-8
%python_expand py.test-%{$python_bin_suffix} -v -k 'not FLAKE8-check'
# remove pytest default args --flake8 and --isort
rm setup.cfg
%pytest --isort
%files %{python_files}
%doc README.rst
%license LICENSE
%{python_sitelib}/*
%{python_sitelib}/tinycss2
%{python_sitelib}/tinycss2-%{version}-*.egg-info
%changelog