Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-pylzma for openSUSE:Factory checked in at 2021-09-15 22:51:29 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pylzma (Old) and /work/SRC/openSUSE:Factory/.python-pylzma.new.1899 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pylzma" Wed Sep 15 22:51:29 2021 rev:5 rq:919149 version:0.5.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pylzma/python-pylzma.changes 2019-01-15 09:15:54.602261479 +0100 +++ /work/SRC/openSUSE:Factory/.python-pylzma.new.1899/python-pylzma.changes 2021-09-15 22:51:48.746937505 +0200 @@ -1,0 +2,13 @@ +Wed Sep 15 12:08:00 UTC 2021 - Matej Cepl <[email protected]> + +- Fix the patch metadata in the SPEC file. + +------------------------------------------------------------------- +Wed Sep 15 09:20:27 UTC 2021 - [email protected] + +- %check: use %pyunittest_arch rpm macro +- added patches + fix https://github.com/fancycode/pylzma/issues/76 + + python-pylzma-test-python3.patch + +------------------------------------------------------------------- New: ---- python-pylzma-test-python3.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pylzma.spec ++++++ --- /var/tmp/diff_new_pack.wC4PJP/_old 2021-09-15 22:51:49.254938112 +0200 +++ /var/tmp/diff_new_pack.wC4PJP/_new 2021-09-15 22:51:49.258938117 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-pylzma # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# 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 @@ -26,6 +26,9 @@ Group: Development/Languages/Python URL: https://github.com/fancycode/pylzma Source0: https://github.com/fancycode/pylzma/archive/v%{version}.tar.gz +# PATCH-FIX-UPSTREAM python-pylzma-test-python3.patch gh#fancycode/pylzma#76 [email protected] +# use python3 syntax in test_usage.py +Patch0: python-pylzma-test-python3.patch BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes @@ -38,6 +41,7 @@ %prep %setup -q -n %{oname}-%{version} +%patch0 -p1 # Remove Shebang sed -i '1d' py7zlib.py @@ -50,7 +54,7 @@ %python_expand %fdupes %{buildroot}%{$python_sitearch} %check -%python_exec setup.py test +%pyunittest_arch discover -v %files %{python_files} %license LICENSE ++++++ python-pylzma-test-python3.patch ++++++ Index: pylzma-0.5.0/tests/test_usage.py =================================================================== --- pylzma-0.5.0.orig/tests/test_usage.py 2018-09-26 20:36:11.000000000 +0200 +++ pylzma-0.5.0/tests/test_usage.py 2021-09-15 11:19:08.201378252 +0200 @@ -38,7 +38,7 @@ sys.path.insert(0, ROOT) def cleanup(path): try: shutil.rmtree(path) - except EnvironmentError, e: + except EnvironmentError as e: if e.errno != errno.ENOENT: raise
