15
0

Accepting request 896632 from home:pgajdos:python

- %check: use %pyunittest_arch rpm macro for post 15

OBS-URL: https://build.opensuse.org/request/show/896632
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-html5-parser?expand=0&rev=21
This commit is contained in:
2021-06-01 16:55:33 +00:00
committed by Git OBS Bridge
parent c71b495db4
commit ca606d04ef
2 changed files with 11 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon May 31 07:30:34 UTC 2021 - pgajdos@suse.com
- %check: use %pyunittest_arch rpm macro for post 15
-------------------------------------------------------------------
Thu Apr 9 11:12:17 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-html5-parser
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -43,13 +43,18 @@ about thirty times faster than the "html5lib" pure Python based parser.
%setup -q -n html5-parser-%{version}
%build
find . -name '*.py' -exec sed -i '/#.*usr.bin.env.*python/d' {} \;
%python_build
%install
%python_install
%check
%if 0%{?suse_version} > 1500
%pyunittest_arch -v test/*.py
%else
%python_exec setup.py test
%endif
%files %{python_files}
%license LICENSE