From c234fdfaa6a5d1984a6cc8d17810ae4b11f01b6b37fa33d7ad290108eeea845e Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 18 May 2021 12:25:13 +0000 Subject: [PATCH] Accepting request 893839 from home:susnux:branches:network - Enable testing - Skip not supported python flavors (< 3.7) - Update to version 2.0.2 OBS-URL: https://build.opensuse.org/request/show/893839 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-nbxmpp?expand=0&rev=44 --- nbxmpp-1.0.2.tar.gz | 3 --- python-nbxmpp-nbxmpp-2.0.2.tar.bz2 | 3 +++ python-nbxmpp.changes | 26 ++++++++++++++++++++++++++ python-nbxmpp.spec | 28 ++++++++++++++++++++-------- 4 files changed, 49 insertions(+), 11 deletions(-) delete mode 100644 nbxmpp-1.0.2.tar.gz create mode 100644 python-nbxmpp-nbxmpp-2.0.2.tar.bz2 diff --git a/nbxmpp-1.0.2.tar.gz b/nbxmpp-1.0.2.tar.gz deleted file mode 100644 index 4f54e44..0000000 --- a/nbxmpp-1.0.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:991f014a2736123e989da454d6a467be8c4314bf86dbcc889e899f03726e856f -size 127184 diff --git a/python-nbxmpp-nbxmpp-2.0.2.tar.bz2 b/python-nbxmpp-nbxmpp-2.0.2.tar.bz2 new file mode 100644 index 0000000..ed27c9c --- /dev/null +++ b/python-nbxmpp-nbxmpp-2.0.2.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2405574e5cea4663f73bdad924be125918630f7d547e0d5527f79ff9d0fe3525 +size 121999 diff --git a/python-nbxmpp.changes b/python-nbxmpp.changes index 1109e63..ef610c0 100644 --- a/python-nbxmpp.changes +++ b/python-nbxmpp.changes @@ -1,3 +1,29 @@ +------------------------------------------------------------------- +Mon May 17 18:16:46 UTC 2021 - Ferdinand Thiessen + +- Enable testing + * Use gitlab sources, pypi.org package does not contain the test files +- Skip not supported python flavors (< 3.7) + +------------------------------------------------------------------- +Mon May 17 15:40:52 UTC 2021 - Ferdinand Thiessen + +- Update to version 2.0.2 + * New + * Properties: is_from_us() Method + * New JID object + * Add JID Escaping (XEP-0106) support + * Add VCard4 (XEP-0292) support + * Make module calls generator based + * Add GSSAPI support (XEP-0233) + * Simplify and harmonize module API + * Bugfixes + * Fix handling invalid websocket uris + * Add get_text() for Error Base class + * Client: Remove GSSAPI from default mechanisms + * Presence: Fix is_nickname_changed check + * UserAvatar: Add default argument + ------------------------------------------------------------------- Thu Sep 3 07:44:19 UTC 2020 - Dirk Mueller diff --git a/python-nbxmpp.spec b/python-nbxmpp.spec index eb05785..54a0d69 100644 --- a/python-nbxmpp.spec +++ b/python-nbxmpp.spec @@ -1,7 +1,7 @@ # # spec file for package python-nbxmpp # -# Copyright (c) 2020 SUSE LLC +# 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 @@ -16,20 +16,31 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} +# Requires at least python 3.7 +%define skip_python2 1 +%define skip_python36 1 %define _name nbxmpp Name: python-nbxmpp -Version: 1.0.2 +Version: 2.0.2 Release: 0 Summary: XMPP library by Gajim team License: GPL-3.0-or-later Group: Development/Languages/Python URL: https://dev.gajim.org/gajim/python-nbxmpp -Source: https://files.pythonhosted.org/packages/source/n/%{_name}/%{_name}-%{version}.tar.gz +Source: %{url}/-/archive/nbxmpp-%{version}/python-nbxmpp-nbxmpp-%{version}.tar.bz2 BuildRequires: %{python_module setuptools} BuildRequires: fdupes -BuildRequires: python-rpm-macros +BuildRequires: python-rpm-macros >= 20200714 +# For testing +BuildRequires: %{python_module gobject-Gdk} +BuildRequires: %{python_module idna} +BuildRequires: %{python_module precis-i18n} +BuildRequires: typelib(Soup) +Recommends: python-gssapi BuildArch: noarch +%{?python_enable_dependency_generator} + +%python_subpackages %description Python-nbxmpp is a Python library that provides a way for Python @@ -37,8 +48,6 @@ applications to use Jabber/XMPP networks in a non-blocking way. This library is initialy a fork of xmpppy one, but using non-blocking sockets. -%python_subpackages - %package doc Summary: Nbxmpp Documentation Group: Documentation/Other @@ -47,7 +56,7 @@ Group: Documentation/Other This packages provides documentation of Nbxmpp API. %prep -%setup -q -n %{_name}-%{version} +%setup -q -n python-nbxmpp-nbxmpp-%{version} %build %python_build @@ -56,6 +65,9 @@ This packages provides documentation of Nbxmpp API. %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib}/ +%check +%pyunittest + %files %{python_files} %license COPYING %{python_sitelib}/%{_name}/