Hello community, here is the log from the commit of package python-parsel for openSUSE:Factory checked in at 2020-04-21 13:10:19 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-parsel (Old) and /work/SRC/openSUSE:Factory/.python-parsel.new.2738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-parsel" Tue Apr 21 13:10:19 2020 rev:6 rq:795798 version:1.5.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-parsel/python-parsel.changes 2019-09-13 14:57:54.589276197 +0200 +++ /work/SRC/openSUSE:Factory/.python-parsel.new.2738/python-parsel.changes 2020-04-21 13:10:22.360777030 +0200 @@ -1,0 +2,5 @@ +Mon Apr 20 11:27:28 UTC 2020 - Tomáš Chvátal <tchva...@suse.com> + +- Fix build without python2 + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-parsel.spec ++++++ --- /var/tmp/diff_new_pack.CY1C3H/_old 2020-04-21 13:10:23.248778801 +0200 +++ /var/tmp/diff_new_pack.CY1C3H/_new 2020-04-21 13:10:23.252778809 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-parsel # -# 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 @@ -17,6 +17,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without python2 Name: python-parsel Version: 1.5.2 Release: 0 @@ -41,9 +42,10 @@ Requires: python-functools32 %endif # SECTION test requirements -BuildRequires: %{python_module pytest-runner} BuildRequires: %{python_module pytest} +%if %{with python2} BuildRequires: python-functools32 +%endif # /SECTION %python_subpackages @@ -53,6 +55,7 @@ %prep %setup -q -n parsel-%{version} +sed -i -e '/pytest-runner/d' setup.py %build %python_build @@ -62,7 +65,7 @@ %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_exec setup.py test +%pytest %files %{python_files} %license LICENSE