Skip to content

Commit

Permalink
Update python-pylzma to version 0.5.0 / rev 5 via SR 919149
Browse files Browse the repository at this point in the history
https://build.opensuse.org/request/show/919149
by user mcepl + dimstar_suse
- Fix the patch metadata in the SPEC file.

- %check: use %pyunittest_arch rpm macro
- added patches
  fix fancycode/pylzma#76
  + python-pylzma-test-python3.patch
  • Loading branch information
mcepl authored and bmwiedemann committed Sep 15, 2021
1 parent 70dc9b3 commit 34e0106
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 2 deletions.
Binary file modified packages/p/python-pylzma/.files
Binary file not shown.
13 changes: 13 additions & 0 deletions packages/p/python-pylzma/.rev
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,17 @@
<comment></comment>
<requestid>662480</requestid>
</revision>
<revision rev="5" vrev="2">
<srcmd5>f056ed9b99844dbd51a0a80f8932b46c</srcmd5>
<version>0.5.0</version>
<time>1631739089</time>
<user>dimstar_suse</user>
<comment>- Fix the patch metadata in the SPEC file.

- %check: use %pyunittest_arch rpm macro
- added patches
fix https://github.com/fancycode/pylzma/issues/76
+ python-pylzma-test-python3.patch</comment>
<requestid>919149</requestid>
</revision>
</revisionlist>
13 changes: 13 additions & 0 deletions packages/p/python-pylzma/python-pylzma-test-python3.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
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

13 changes: 13 additions & 0 deletions packages/p/python-pylzma/python-pylzma.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
-------------------------------------------------------------------
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

-------------------------------------------------------------------
Wed Jan 2 14:09:12 UTC 2019 - Martin Pluskal <[email protected]>

Expand Down
8 changes: 6 additions & 2 deletions packages/p/python-pylzma/python-pylzma.spec
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -26,6 +26,9 @@ License: LGPL-2.1-only
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
Expand All @@ -38,6 +41,7 @@ that has been compressed or can be decompressed by the LZMA library.

%prep
%setup -q -n %{oname}-%{version}
%patch0 -p1

# Remove Shebang
sed -i '1d' py7zlib.py
Expand All @@ -50,7 +54,7 @@ sed -i '1d' py7zlib.py
%python_expand %fdupes %{buildroot}%{$python_sitearch}

%check
%python_exec setup.py test
%pyunittest_arch discover -v

%files %{python_files}
%license LICENSE
Expand Down

0 comments on commit 34e0106

Please sign in to comment.