-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update python-pylzma to version 0.5.0 / rev 5 via SR 919149
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
1 parent
70dc9b3
commit 34e0106
Showing
5 changed files
with
45 additions
and
2 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|