From 048ed5d5d1162a364b15a939d7d4519214afef24ef75cf2690c809783907286e Mon Sep 17 00:00:00 2001 From: Todd R Date: Fri, 4 Jan 2019 16:52:19 +0000 Subject: [PATCH] Accepting request 662860 from home:TheBlackCat:branches:devel:languages:python:numeric - Update to 0.13 * Improve readme about library usage * Make cluster be 0,1...,n_clusters in the special case of no links * Include tests in sdists * Include license and documentation in sdists OBS-URL: https://build.opensuse.org/request/show/662860 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-python-louvain?expand=0&rev=3 --- python-louvain-0.11.tar.gz | 3 --- python-louvain-0.13.tar.gz | 3 +++ python-python-louvain.changes | 9 +++++++++ python-python-louvain.spec | 11 +++++++---- 4 files changed, 19 insertions(+), 7 deletions(-) delete mode 100644 python-louvain-0.11.tar.gz create mode 100644 python-louvain-0.13.tar.gz diff --git a/python-louvain-0.11.tar.gz b/python-louvain-0.11.tar.gz deleted file mode 100644 index 017d1d6..0000000 --- a/python-louvain-0.11.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2ce7143f8d2bb4693a84dc0046dbf94dc576c9f6030f518f73c4420bfb2a442a -size 6648 diff --git a/python-louvain-0.13.tar.gz b/python-louvain-0.13.tar.gz new file mode 100644 index 0000000..aa91bbf --- /dev/null +++ b/python-louvain-0.13.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b4938f20063bc53e68d5b182dcea0634dfb63a0e3489f929d4083c24a920b2fe +size 18577 diff --git a/python-python-louvain.changes b/python-python-louvain.changes index ed37129..5abb9e5 100644 --- a/python-python-louvain.changes +++ b/python-python-louvain.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Sat Dec 22 04:01:47 UTC 2018 - Todd R + +- Update to 0.13 + * Improve readme about library usage + * Make cluster be 0,1...,n_clusters in the special case of no links + * Include tests in sdists + * Include license and documentation in sdists + ------------------------------------------------------------------- Thu Nov 15 00:30:43 UTC 2018 - Todd R diff --git a/python-python-louvain.spec b/python-python-louvain.spec index ac8f142..f502a48 100644 --- a/python-python-louvain.spec +++ b/python-python-louvain.spec @@ -1,7 +1,7 @@ # # spec file for package python-python-louvain # -# 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 @@ -18,19 +18,20 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-python-louvain -Version: 0.11 +Version: 0.13 Release: 0 Summary: Louvain algorithm for community detection License: BSD-3-Clause Group: Development/Languages/Python URL: https://github.com/taynaud/python-louvain Source0: https://files.pythonhosted.org/packages/source/p/python-louvain/python-louvain-%{version}.tar.gz -Source10: https://raw.githubusercontent.com/taynaud/python-louvain/master/LICENSE BuildRequires: %{python_module devel} +BuildRequires: %{python_module numpy} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-networkx +Requires: python-numpy BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module networkx} @@ -47,7 +48,6 @@ Statistical Mechanics: Theory and Experiment 2008(10), P10008 (12pp) %prep %setup -q -n python-louvain-%{version} -cp %{SOURCE10} LICENSE sed -i -e '/^#!\//, 1d' community/__init__.py %build @@ -57,6 +57,9 @@ sed -i -e '/^#!\//, 1d' community/__init__.py %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%check +%python_exec test_community.py + %files %{python_files} %doc README.rst %license LICENSE