Accepting request 1057751 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1057751 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-magic?expand=0&rev=10
This commit is contained in:
commit
8d8b7bce6e
29
4ffcd591.patch
Normal file
29
4ffcd591.patch
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
From 4ffcd59113fa26d7c2e9d5897b1eef919fd4b457 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Adam Hupp <adam@hupp.org>
|
||||||
|
Date: Mon, 9 Jan 2023 12:55:15 -0800
|
||||||
|
Subject: [PATCH] update test for upstream added gzip extensions
|
||||||
|
|
||||||
|
---
|
||||||
|
test/python_magic_test.py | 3 +--
|
||||||
|
1 file changed, 1 insertion(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/test/python_magic_test.py b/test/python_magic_test.py
|
||||||
|
index 624a443..d51587c 100755
|
||||||
|
--- a/test/python_magic_test.py
|
||||||
|
+++ b/test/python_magic_test.py
|
||||||
|
@@ -134,7 +134,7 @@ def test_extension(self):
|
||||||
|
self.assert_values(m, {
|
||||||
|
# some versions return '' for the extensions of a gz file,
|
||||||
|
# including w/ the command line. Who knows...
|
||||||
|
- 'test.gz': ('gz/tgz/tpz/zabw/svgz', '', '???'),
|
||||||
|
+ 'test.gz': ('gz/tgz/tpz/zabw/svgz/adz/kmy/xcfgz', 'gz/tgz/tpz/zabw/svgz', '', '???'),
|
||||||
|
'name_use.jpg': 'jpeg/jpg/jpe/jfif',
|
||||||
|
})
|
||||||
|
except NotImplementedError:
|
||||||
|
@@ -227,6 +227,5 @@ def test_pathlike(self):
|
||||||
|
m = magic.Magic(mime=True)
|
||||||
|
self.assertEqual('application/pdf', m.from_file(path))
|
||||||
|
|
||||||
|
-
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jan 11 07:42:59 UTC 2023 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||||
|
|
||||||
|
- Add 4ffcd591.patch: update test for upstream added gzip
|
||||||
|
extensions.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Nov 14 15:13:02 UTC 2022 - Dr. Werner Fink <werner@suse.de>
|
Mon Nov 14 15:13:02 UTC 2022 - Dr. Werner Fink <werner@suse.de>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-python-magic
|
# spec file for package python-python-magic
|
||||||
#
|
#
|
||||||
# Copyright (c) 2022 SUSE LLC
|
# Copyright (c) 2023 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -26,6 +26,7 @@ License: Python-2.0
|
|||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: https://github.com/ahupp/python-magic
|
URL: https://github.com/ahupp/python-magic
|
||||||
Source: https://github.com/ahupp/python-magic/archive/%{version}.tar.gz
|
Source: https://github.com/ahupp/python-magic/archive/%{version}.tar.gz
|
||||||
|
Patch0: https://github.com/ahupp/python-magic/commit/4ffcd591.patch
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module xml}
|
BuildRequires: %{python_module xml}
|
||||||
@ -52,7 +53,7 @@ identification library. It makes use of the local magic database and
|
|||||||
supports both textual and MIME-type output.
|
supports both textual and MIME-type output.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n python-magic-%{version}
|
%autosetup -n python-magic-%{version} -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
|
Loading…
Reference in New Issue
Block a user