1
0

- Update to 0.16:

* Fix #86. When computing the change in modularity after alternating the
    block membership of a node, the resolution parameter was multiplied to the
    wrong term.
    As a result, the current code fails to correctly implement the Louvain
    algorithm, except for the special case when the resolution parameter is set
    to one.
- Add fix-test-karate.patch to fix tests with networkx<=2.7
  gh#taynaud/python-louvain#95

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-python-louvain?expand=0&rev=18
This commit is contained in:
2022-10-14 09:15:21 +00:00
committed by Git OBS Bridge
parent 8f2e48b885
commit e7c07e34de
5 changed files with 34 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-python-louvain
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -20,12 +20,14 @@
%define skip_python2 1
%define skip_python36 1
Name: python-python-louvain
Version: 0.15
Version: 0.16
Release: 0
Summary: Louvain algorithm for community detection
License: BSD-3-Clause
URL: https://github.com/taynaud/python-louvain
Source0: https://files.pythonhosted.org/packages/source/p/python-louvain/python-louvain-%{version}.tar.gz
# PATCH-FIX-UPSTREAM fix-test-karate.patch gh#taynaud/python-louvain#95
Patch: fix-test-karate.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module numpy}
BuildRequires: %{python_module setuptools}
@@ -50,7 +52,7 @@ Guillaume, Renaud Lambiotte, Renaud Lefebvre, Journal of
Statistical Mechanics: Theory and Experiment 2008(10), P10008 (12pp)
%prep
%setup -q -n python-louvain-%{version}
%autosetup -p1 -n python-louvain-%{version}
sed -i -e '/^#!\//, 1d' community/__init__.py
%build