Hello community,

here is the log from the commit of package python-pickleshare for 
openSUSE:Leap:15.2 checked in at 2020-03-29 14:55:32
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-pickleshare (Old)
 and      /work/SRC/openSUSE:Leap:15.2/.python-pickleshare.new.3160 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pickleshare"

Sun Mar 29 14:55:32 2020 rev:12 rq:789102 version:0.7.5

Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/python-pickleshare/python-pickleshare.changes  
2020-03-09 18:10:22.097110797 +0100
+++ 
/work/SRC/openSUSE:Leap:15.2/.python-pickleshare.new.3160/python-pickleshare.changes
        2020-03-29 14:55:34.127152102 +0200
@@ -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.9odQBI/_old  2020-03-29 14:55:34.483152379 +0200
+++ /var/tmp/diff_new_pack.9odQBI/_new  2020-03-29 14:55:34.487152383 +0200
@@ -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


Reply via email to