Hello community, here is the log from the commit of package python-pickleshare for openSUSE:Factory checked in at 2020-03-27 00:23:28 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pickleshare (Old) and /work/SRC/openSUSE:Factory/.python-pickleshare.new.3160 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pickleshare" Fri Mar 27 00:23:28 2020 rev:5 rq:784807 version:0.7.5 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pickleshare/python-pickleshare.changes 2018-12-24 11:41:10.113464020 +0100 +++ /work/SRC/openSUSE:Factory/.python-pickleshare.new.3160/python-pickleshare.changes 2020-03-27 00:23:31.688203031 +0100 @@ -1,0 +2,5 @@ +Sat Mar 14 07:54:17 UTC 2020 - Tomáš Chvátal <[email protected]> + +- Fix build without python2 + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pickleshare.spec ++++++ --- /var/tmp/diff_new_pack.7mV1Rj/_old 2020-03-27 00:23:32.632203509 +0100 +++ /var/tmp/diff_new_pack.7mV1Rj/_new 2020-03-27 00:23:32.632203509 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-pickleshare # -# Copyright (c) 2018 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 @@ -16,28 +16,26 @@ # -%bcond_without test - %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without python2 Name: python-pickleshare Version: 0.7.5 Release: 0 Summary: Tiny shelve-like database with concurrency support License: MIT -Group: Development/Languages/Python -Url: https://github.com/vivainio/pickleshare +URL: https://github.com/vivainio/pickleshare Source: https://files.pythonhosted.org/packages/source/p/pickleshare/pickleshare-%{version}.tar.gz +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes -BuildRequires: python-pathlib2 BuildRequires: python-rpm-macros -%if %{with test} -BuildRequires: %{python_module pytest} +BuildArch: noarch +%if %{with python2} +BuildRequires: python-pathlib2 %endif %ifpython2 Requires: python-pathlib2 %endif -BuildArch: noarch %python_subpackages %description @@ -59,7 +57,7 @@ %prep %setup -q -n pickleshare-%{version} # Remove shebang -sed -i '1{\@^#!/usr/bin/env python@d}' pickleshare.py +sed -i '1{\@^#!%{_bindir}/env python@d}' pickleshare.py %build %python_build @@ -68,12 +66,9 @@ %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} -%if %{with test} %check -# need to set locale to avoid UnicodeEncodeError export LANG=en_US.UTF-8 -%python_expand py.test-%{$python_bin_suffix} . -%endif +%pytest . %files %{python_files} %doc README.md
