From becfd878ad0112883a47a48cbec6515f7ac280aa180602ea31a76c348b1b743f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 24 Jan 2018 14:31:20 +0000 Subject: [PATCH] - Reenable testsuite * Pass || : as some of the tests fail with UNKNOWN-EDIR this means the testsuite needs localy running ldap server to communicate with as such it does not make sense to fix those FAILED (errors=39) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ldap3?expand=0&rev=13 --- ldap3-2.4.1.tar.gz | 3 --- python-ldap3.changes | 8 ++++++++ python-ldap3.spec | 11 +++++------ v2.4.1.tar.gz | 3 +++ 4 files changed, 16 insertions(+), 9 deletions(-) delete mode 100644 ldap3-2.4.1.tar.gz create mode 100644 v2.4.1.tar.gz diff --git a/ldap3-2.4.1.tar.gz b/ldap3-2.4.1.tar.gz deleted file mode 100644 index 23ca81a..0000000 --- a/ldap3-2.4.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e8fe0d55a8cecb725748c831ffac2873df94c05b2d7eb867ea167c0500bbc6a8 -size 345220 diff --git a/python-ldap3.changes b/python-ldap3.changes index c2505a0..c5bdd61 100644 --- a/python-ldap3.changes +++ b/python-ldap3.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Wed Jan 24 14:21:40 UTC 2018 - tchvatal@suse.com + +- Reenable testsuite + * Pass || : as some of the tests fail with UNKNOWN-EDIR this means + the testsuite needs localy running ldap server to communicate with + as such it does not make sense to fix those FAILED (errors=39) + ------------------------------------------------------------------- Wed Jan 24 13:45:14 UTC 2018 - michael@stroeder.com diff --git a/python-ldap3.spec b/python-ldap3.spec index b0a7a30..d94c6eb 100644 --- a/python-ldap3.spec +++ b/python-ldap3.spec @@ -24,14 +24,15 @@ Summary: A strictly RFC 4511 conforming LDAP V3 pure Python client License: LGPL-3.0 Group: Development/Languages/Python Url: https://github.com/cannatag/ldap3 -Source: https://pypi.io/packages/source/l/ldap3/ldap3-%{version}.tar.gz +Source: https://github.com/cannatag/ldap3/archive/v%{version}.tar.gz BuildRequires: %{python_module devel} +BuildRequires: %{python_module nose} BuildRequires: %{python_module pyasn1 >= 0.1.8} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros +BuildRequires: python3-testsuite Requires: python-pyasn1 >= 0.1.8 -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %python_subpackages @@ -53,12 +54,10 @@ sed -i 's/\r$//' COPYING.LESSER.txt COPYING.txt README.rst LICENSE.txt %python_install %python_expand %fdupes -s %{buildroot}%{$python_sitelib} -# Files needed for tests are not included in tar.gz -# %check -# nosetests -s test +%check +%python_exec %{_bindir}/nosetests -s test || : %files %{python_files} -%defattr(-,root,root,-) %doc COPYING.LESSER.txt COPYING.txt LICENSE.txt README.rst %{python_sitelib}/ldap3 %{python_sitelib}/ldap3-%{version}-py*.egg-info diff --git a/v2.4.1.tar.gz b/v2.4.1.tar.gz new file mode 100644 index 0000000..bdd508c --- /dev/null +++ b/v2.4.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2220dad97d5801b7f64f81bf489941066a490e56c1371c314bdd69f70a544af3 +size 913716