Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/networkx/
Date: Sun, 05 Jun 2022 09:14:34
Message-Id: 1654420463.1aa8f2b8a8b0c5c023710339ad5c9373b6e2a80e.mgorny@gentoo
1 commit: 1aa8f2b8a8b0c5c023710339ad5c9373b6e2a80e
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jun 5 06:55:28 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Jun 5 09:14:23 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1aa8f2b8
7
8 dev-python/networkx: Bump to 2.8.3
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/networkx/Manifest | 1 +
13 dev-python/networkx/networkx-2.8.3.ebuild | 66 +++++++++++++++++++++++++++++++
14 2 files changed, 67 insertions(+)
15
16 diff --git a/dev-python/networkx/Manifest b/dev-python/networkx/Manifest
17 index cc0c7ee00a47..d8b40488e4b2 100644
18 --- a/dev-python/networkx/Manifest
19 +++ b/dev-python/networkx/Manifest
20 @@ -1,3 +1,4 @@
21 DIST networkx-2.8.1.tar.gz 1945388 BLAKE2B 5c7ee6826f952d6f834d88ab0ba82d11d8a171611f43750d8d64ca6adf428fb64e8c37ca9c03654941c6d67eb8b68710e4e923f008c99d724ad47d42c31dc75d SHA512 a85b6be14aabb4f4d5317f65fca1d681d93bb6defdb81c4fe59b06e9632816adaa322ae7e8f2277a78290f0ac6260438b503c79d4cbb39fcd37562e8325d89d3
22 DIST networkx-2.8.2.tar.gz 1945873 BLAKE2B 212f42d8da35bb7c29b6feae626bb21036807e26996ff663dbb22b54908448715cbf6509553e2379a208b4537f03c92a3183a74a8074f4d2edae9b97084e5a8b SHA512 5b1ca05a009f78d693f8dfedaa51650d7834e4870d1a08fd8ea27f1293cbaccd9b4a2fb5d146df491e8dfcda1ca538786b257fb9b1250a383c59ea2b54188f55
23 +DIST networkx-2.8.3.tar.gz 1947042 BLAKE2B a9d098023df1db6c94d531eba8797348d81b7cd52e22bbd421109be2e604b599de3a9a30c847682b53ce395ecc0522351db5f2f21b194be5ebd05c42d751a43c SHA512 1bcf606868f7041c1f412c0d853779c99f74be675b11b32727d502b78f8a672872291addfc7c8cba6bc7f464c2306a412862063e141853ab91999d2c54315214
24 DIST networkx-2.8.tar.gz 1937426 BLAKE2B 5a094177ed480c6f7cbdacb6795fc4f2e0aec53ed89a33e19d78f47830d46238f35b7cd76098f6e00397f7cbdf305256910b7930cbb2c775ed4c2b18d9bd596f SHA512 72cd6637faa4228f6c802cf36935b5460fdf9b6cf191c3b375810bfc3732823e3286bdc1e6cbf7e6a7ffde83d0cf3bca157ae27ff98c537d43fdb4b8ef45ef4b
25
26 diff --git a/dev-python/networkx/networkx-2.8.3.ebuild b/dev-python/networkx/networkx-2.8.3.ebuild
27 new file mode 100644
28 index 000000000000..d35715a5eaa1
29 --- /dev/null
30 +++ b/dev-python/networkx/networkx-2.8.3.ebuild
31 @@ -0,0 +1,66 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +DISTUTILS_USE_PEP517=setuptools
38 +PYTHON_FULLY_TESTED=( python3_{8..10} )
39 +# networkx skips tests w/ missing deps and the available ones all pass w/ py3.11
40 +PYTHON_COMPAT=( "${PYTHON_FULLY_TESTED[@]}" python3_11 )
41 +inherit distutils-r1 optfeature virtualx
42 +
43 +DESCRIPTION="Python tools to manipulate graphs and complex networks"
44 +HOMEPAGE="
45 + https://networkx.org/
46 + https://github.com/networkx/networkx/
47 + https://pypi.org/project/networkx/
48 +"
49 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
50 +
51 +LICENSE="BSD"
52 +SLOT="0"
53 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
54 +
55 +BDEPEND="
56 + test? (
57 + >=dev-python/lxml-4.5[${PYTHON_USEDEP}]
58 + >=dev-python/pyyaml-3.13[${PYTHON_USEDEP}]
59 + $(python_gen_cond_dep '
60 + >=dev-python/numpy-1.19[${PYTHON_USEDEP}]
61 + >=dev-python/scipy-1.6.2[${PYTHON_USEDEP}]
62 + ' "${PYTHON_FULLY_TESTED[@]}")
63 + )
64 +"
65 +
66 +distutils_enable_tests pytest
67 +
68 +src_test() {
69 + virtx distutils-r1_src_test
70 +}
71 +
72 +python_test() {
73 + local EPYTEST_DESELECT=()
74 + if ! has_version "dev-python/scipy[${PYTHON_USEDEP}]"; then
75 + EPYTEST_DESELECT+=(
76 + networkx/algorithms/tree/tests/test_mst.py::test_random_spanning_tree_additive_small
77 + networkx/algorithms/tree/tests/test_mst.py::test_random_spanning_tree_multiplicative_small
78 + )
79 + fi
80 +
81 + # virtx implies nonfatal
82 + nonfatal epytest -p no:django || die
83 +}
84 +
85 +src_install() {
86 + distutils-r1_src_install
87 + # those examples use various assets and pre-compressed files
88 + docompress -x /usr/share/doc/${PF}/examples
89 +}
90 +
91 +pkg_postinst() {
92 + optfeature "recommended dependencies" "dev-python/matplotlib dev-python/numpy dev-python/pandas dev-python/scipy"
93 + optfeature "graph drawing and graph layout algorithms" "dev-python/pygraphviz dev-python/pydot"
94 + optfeature "YAML format reading and writing" "dev-python/pyyaml"
95 + optfeature "shapefile format reading and writing" "dev-python/gdal"
96 + optfeature "GraphML XML format" "dev-python/lxml"
97 +}