From 72e22dd7997fad5a7ca91081c121f88a5484e468725a4a34e1a90563c614c315 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 29 Apr 2024 12:34:43 +0000 Subject: [PATCH] Accepting request 1169974 from home:mcalabkova:branches:devel:languages:python:numeric - Update to 3.3 * Add @nx._dispatch decorator to most algorithms * Remove topo_order kwarg from is_semiconnected without deprecation * API: Add a decorator to deprecate positional args * Drop support for Python 3.8 and 3.9 * Support Python 3.12 * Test on Python 3.13-dev * Don't test numpy2 nightlies * Unpin scipy upperbound for tests * Disallow negative number of nodes in complete_multipartite_graph * [A-star] Added expansion pruning via cutoff if cutoff is provided * Add Tadpole graph * [Feat] Random expanders utilities * Add Kirchhoff index / Effective graph resistance * Changed return types of shortest path methods to improve consistency * Many more changes, see upstream changelog - drop doc build, PyPI tarball doesn't support it anymore OBS-URL: https://build.opensuse.org/request/show/1169974 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-networkx?expand=0&rev=58 --- networkx-3.1.tar.gz | 3 --- networkx-3.3.tar.gz | 3 +++ python-networkx.changes | 21 +++++++++++++++++++++ python-networkx.spec | 30 +++++++----------------------- 4 files changed, 31 insertions(+), 26 deletions(-) delete mode 100644 networkx-3.1.tar.gz create mode 100644 networkx-3.3.tar.gz diff --git a/networkx-3.1.tar.gz b/networkx-3.1.tar.gz deleted file mode 100644 index f521735..0000000 --- a/networkx-3.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:de346335408f84de0eada6ff9fafafff9bcda11f0a0dfaa931133debb146ab61 -size 2021691 diff --git a/networkx-3.3.tar.gz b/networkx-3.3.tar.gz new file mode 100644 index 0000000..ffedc1a --- /dev/null +++ b/networkx-3.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0c127d8b2f4865f59ae9cb8aafcd60b5c70f3241ebd66f7defad7c4ab90126c9 +size 2126579 diff --git a/python-networkx.changes b/python-networkx.changes index c8d54a1..19c169f 100644 --- a/python-networkx.changes +++ b/python-networkx.changes @@ -1,3 +1,24 @@ +------------------------------------------------------------------- +Mon Apr 22 15:25:05 UTC 2024 - Markéta Machová + +- Update to 3.3 + * Add @nx._dispatch decorator to most algorithms + * Remove topo_order kwarg from is_semiconnected without deprecation + * API: Add a decorator to deprecate positional args + * Drop support for Python 3.8 and 3.9 + * Support Python 3.12 + * Test on Python 3.13-dev + * Don't test numpy2 nightlies + * Unpin scipy upperbound for tests + * Disallow negative number of nodes in complete_multipartite_graph + * [A-star] Added expansion pruning via cutoff if cutoff is provided + * Add Tadpole graph + * [Feat] Random expanders utilities + * Add Kirchhoff index / Effective graph resistance + * Changed return types of shortest path methods to improve consistency + * Many more changes, see upstream changelog +- drop doc build, PyPI tarball doesn't support it anymore + ------------------------------------------------------------------- Thu Jul 27 11:55:11 UTC 2023 - Markéta Machová diff --git a/python-networkx.spec b/python-networkx.spec index 1bf52ac..b22473d 100644 --- a/python-networkx.spec +++ b/python-networkx.spec @@ -1,7 +1,7 @@ # # spec file for package python-networkx # -# Copyright (c) 2023 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 @@ -18,14 +18,15 @@ %{?sle15_python_module_pythons} Name: python-networkx -Version: 3.1 +Version: 3.3 Release: 0 Summary: Python package for the study of complex networks License: BSD-3-Clause URL: https://networkx.github.io/ Source: https://files.pythonhosted.org/packages/source/n/networkx/networkx-%{version}.tar.gz BuildRequires: %{python_module base >= 3.8} -BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: unzip @@ -65,28 +66,15 @@ Features: * Exploits existing code from high-quality legacy software in C, C++, Fortran, etc. * Unit-tested -%package -n %{name}-doc -Summary: Documentation for %{name} -Provides: %{python_module networkx-doc = %{version}} - -%description -n %{name}-doc -Documentation and examples for %{name}. - %prep %setup -q -n networkx-%{version} %autopatch -p1 %build -%python_build +%pyproject_wheel %install -%python_install - -# Move docs into correct directory if necessary -if [ "%{_docdir}" != "%{_datadir}/doc" ] ; then - mkdir -p %{buildroot}%{_docdir}/ - mv %{buildroot}%{_datadir}/doc/networkx-%{version} %{buildroot}%{_docdir}/ -fi +%pyproject_install %fdupes %{buildroot}%{_docdir} @@ -116,10 +104,6 @@ rm -v networkx/drawing/tests/test_pydot.py %license LICENSE.txt %doc README.rst CONTRIBUTING.rst %{python_sitelib}/networkx/ -%{python_sitelib}/networkx-%{version}-py*.egg-info - -%files -n %{name}-doc -%license LICENSE.txt -%doc %{_docdir}/networkx-%{version}/ +%{python_sitelib}/networkx-%{version}*info %changelog