Accepting request 1158180 from home:mcalabkova:branches:devel:languages:python:numeric
- Fix tests on Python 3.12 with tests-int-division.patch OBS-URL: https://build.opensuse.org/request/show/1158180 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-python-louvain?expand=0&rev=20
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-python-louvain
|
||||
#
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,7 +16,7 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%{?sle15_python_module_pythons}
|
||||
%define skip_python2 1
|
||||
%define skip_python36 1
|
||||
Name: python-python-louvain
|
||||
@@ -28,6 +28,8 @@ 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
|
||||
# PATCH-FIX-UPSTREAM tests-int-division.patch gh#taynaud/python-louvain#104
|
||||
Patch: tests-int-division.patch
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module numpy}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
@@ -36,7 +38,8 @@ BuildRequires: python-rpm-macros
|
||||
Requires: python-networkx
|
||||
Requires: python-numpy
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun):update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
Provides: python-community = %{version}
|
||||
BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module networkx}
|
||||
@@ -76,6 +79,7 @@ sed -i -e '/^#!\//, 1d' community/__init__.py
|
||||
%doc README.rst
|
||||
%license LICENSE
|
||||
%python_alternative %{_bindir}/community
|
||||
%{python_sitelib}/*
|
||||
%{python_sitelib}/community
|
||||
%{python_sitelib}/python_louvain-%{version}*-info
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user