forked from pool/python-Yapsy
Accepting request 718566 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/718566 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Yapsy?expand=0&rev=3
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:45bb39a72461913388d7f3e92ce33816e84fff59946c45e16796eb1fb1d5f2a6
|
||||
size 80783
|
||||
3
Yapsy-1.12.0.tar.gz
Normal file
3
Yapsy-1.12.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:f08cb229a96f14cc0b1d4b68cb7c111d1020ab8c3989b426d3aa39b82d6a3e3c
|
||||
size 83308
|
||||
@@ -1,11 +0,0 @@
|
||||
--- test/test_ErrorInPlugin.py 2015-03-28 22:00:14.000000000 +0100
|
||||
+++ test/test_ErrorInPlugin.py 2017-07-22 21:35:03.391697688 +0200
|
||||
@@ -50,7 +50,7 @@
|
||||
self.assertEqual(len(callback_infos),1)
|
||||
self.assertTrue(isinstance(callback_infos[0].error,tuple))
|
||||
self.assertEqual(loadedPlugins[0],callback_infos[0])
|
||||
- self.assertEqual(callback_infos[0].error[0],ImportError)
|
||||
+ self.assertTrue(issubclass(callback_infos[0].error[0],ImportError))
|
||||
# check that the getCategories works
|
||||
self.assertEqual(len(spm.getCategories()),1)
|
||||
sole_category = spm.getCategories()[0]
|
||||
@@ -1,11 +0,0 @@
|
||||
--- test/test_PluginFileLocator.py 2015-04-18 22:48:35.000000000 +0200
|
||||
+++ test/test_PluginFileLocator1.py 2017-07-22 20:50:21.661546448 +0200
|
||||
@@ -192,7 +192,7 @@
|
||||
def test_default_plugins_place_is_parent_dir(self):
|
||||
"""Test a non-trivial default behaviour introduced some time ago :S"""
|
||||
pl = PluginFileLocator()
|
||||
- self.assertTrue("package/yapsy" in pl.plugins_places[0])
|
||||
+ self.assertTrue("yapsy" in pl.plugins_places[0])
|
||||
|
||||
def test_locatePlugins(self):
|
||||
pl = PluginFileLocator()
|
||||
@@ -1,3 +1,12 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 25 13:31:48 UTC 2019 - pgajdos@suse.com
|
||||
|
||||
- version update to 1.12.0
|
||||
* no upstream change log
|
||||
- deleted patches
|
||||
- fix-error-plugin-test.patch (unneeded)
|
||||
- fix-file-location-test.patch (unneeded)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 4 12:56:20 UTC 2018 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-Yapsy
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -17,19 +17,14 @@
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%bcond_without test
|
||||
Name: python-Yapsy
|
||||
Version: 1.11.223
|
||||
Version: 1.12.0
|
||||
Release: 0
|
||||
Summary: Yet another plugin system
|
||||
License: BSD-2-Clause
|
||||
Group: Development/Languages/Python
|
||||
Url: http://yapsy.sourceforge.net
|
||||
Source: https://files.pythonhosted.org/packages/source/Y/Yapsy/Yapsy-1.11.223.tar.gz
|
||||
# PATCH-FIX-OPENSUSE fix-file-location-test.patch sebix+novell.com@sebix.at -- Fix file locations for tests
|
||||
Patch0: fix-file-location-test.patch
|
||||
# PATCH-FIX-OPENSUSE fix-error-plugin-test.patch sebix+novell.com@sebix.at -- Fix exception class for tests
|
||||
Patch1: fix-error-plugin-test.patch
|
||||
Source: https://files.pythonhosted.org/packages/source/Y/Yapsy/Yapsy-%{version}.tar.gz
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
@@ -59,8 +54,6 @@ HTML documentation files for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -n Yapsy-%{version}
|
||||
%patch0
|
||||
%patch1
|
||||
|
||||
%build
|
||||
%{python_build}
|
||||
@@ -74,10 +67,8 @@ popd
|
||||
%{python_install}
|
||||
%{python_expand %fdupes %{buildroot}%{$python_sitelib}}
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
%{python_exec setup.py test}
|
||||
%endif
|
||||
|
||||
%files %{python_files}
|
||||
%{python_sitelib}/*
|
||||
|
||||
Reference in New Issue
Block a user