From 0b9403bba8a8473251203d3b4ca1097dc8e744e8 Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Mon, 20 Aug 2018 07:39:32 +0000 Subject: math/py-networkx: Update 1.10 -> 2.1 PR: 229815 Reported by: jwb Approved by: dikshie@sfc.wide.ad.jp (maintainer) --- math/py-networkx/Makefile | 16 +++++-------- math/py-networkx/distinfo | 5 ++-- math/py-networkx/files/patch-setup.py | 45 ++++++++++++++++++----------------- 3 files changed, 32 insertions(+), 34 deletions(-) (limited to 'math/py-networkx') diff --git a/math/py-networkx/Makefile b/math/py-networkx/Makefile index 3ce0e1bcf799..82193f2d5a93 100644 --- a/math/py-networkx/Makefile +++ b/math/py-networkx/Makefile @@ -2,11 +2,9 @@ # $FreeBSD$ PORTNAME= networkx -PORTVERSION= 1.10 -PORTREVISION= 4 +DISTVERSION= 2.1 CATEGORIES= math python -MASTER_SITES= http://networkx.lanl.gov/download/networkx/ \ - CHEESESHOP +MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= dikshie@sfc.wide.ad.jp @@ -14,17 +12,15 @@ COMMENT= Tools for complex networks LICENSE= BSD3CLAUSE -RUN_DEPENDS:= ${PYTHON_PKGNAMEPREFIX}decorator>=3.4.0:devel/py-decorator@${PY_FLAVOR} +RUN_DEPENDS:= ${PYTHON_PKGNAMEPREFIX}decorator>=4.1.0:devel/py-decorator@${PY_FLAVOR} # ${PYTHON_PKGNAMEPREFIX}sphinx>=1.2.3:textproc/py-sphinx@${PY_FLAVOR} \ # ${PYTHON_PKGNAMEPREFIX}docutils>=0.12:textproc/py-docutils@${PY_FLAVOR} -NO_ARCH= yes -USES= python shebangfix +USES= python shebangfix zip USE_PYTHON= autoplist concurrent distutils -SHEBANG_FILES= examples/graph/atlas.py \ - examples/multigraph/chess_masters.py \ - networkx/generators/tests/test_random_graphs.py +SHEBANG_GLOB= *.py +NO_ARCH= yes PLIST_SUB+= PYTHON_MAJOR_VER=${PYTHON_MAJOR_VER} diff --git a/math/py-networkx/distinfo b/math/py-networkx/distinfo index d38deb0a65be..4a5467755c16 100644 --- a/math/py-networkx/distinfo +++ b/math/py-networkx/distinfo @@ -1,2 +1,3 @@ -SHA256 (networkx-1.10.tar.gz) = ced4095ab83b7451cec1172183eff419ed32e21397ea4e1971d92a5808ed6fb8 -SIZE (networkx-1.10.tar.gz) = 1189291 +TIMESTAMP = 1534738249 +SHA256 (networkx-2.1.zip) = 64272ca418972b70a196cb15d9c85a5a6041f09a2f32e0d30c0255f25d458bb1 +SIZE (networkx-2.1.zip) = 1612593 diff --git a/math/py-networkx/files/patch-setup.py b/math/py-networkx/files/patch-setup.py index 0312b0a4e0a8..5ae341839a65 100644 --- a/math/py-networkx/files/patch-setup.py +++ b/math/py-networkx/files/patch-setup.py @@ -1,10 +1,10 @@ ---- setup.py.orig 2015-11-15 23:06:39 UTC +--- setup.py.orig 2018-08-20 04:50:16 UTC +++ setup.py -@@ -59,27 +59,6 @@ packages=["networkx", - "networkx.testing", - "networkx.utils"] +@@ -57,28 +57,6 @@ packages = ["networkx", + "networkx.testing", + "networkx.utils"] --docdirbase = 'share/doc/networkx-%s' % version +-docdirbase = 'share/doc/networkx-%s' % version -# add basic documentation -data = [(docdirbase, glob("*.txt"))] -# add examples @@ -14,25 +14,26 @@ - '3d_drawing', - 'drawing', - 'graph', -- 'multigraph', +- 'javascript', +- 'jit', - 'pygraphviz', -- 'readwrite']: -- dd = os.path.join(docdirbase,'examples', d) +- 'subclass']: +- dd = os.path.join(docdirbase, 'examples', d) - pp = os.path.join('examples', d) -- data.append((dd, glob(os.path.join(pp ,"*.py")))) -- data.append((dd, glob(os.path.join(pp ,"*.bz2")))) -- data.append((dd, glob(os.path.join(pp ,"*.gz")))) -- data.append((dd, glob(os.path.join(pp ,"*.mbox")))) -- data.append((dd, glob(os.path.join(pp ,"*.edgelist")))) +- data.append((dd, glob(os.path.join(pp, "*.py")))) +- data.append((dd, glob(os.path.join(pp, "*.bz2")))) +- data.append((dd, glob(os.path.join(pp, "*.gz")))) +- data.append((dd, glob(os.path.join(pp, "*.mbox")))) +- data.append((dd, glob(os.path.join(pp, "*.edgelist")))) - # add the tests - package_data = { + package_data = { 'networkx': ['tests/*.py'], -@@ -131,7 +110,6 @@ if __name__ == "__main__": - download_url = release.download_url, - classifiers = release.classifiers, - packages = packages, -- data_files = data, - package_data = package_data, - install_requires = install_requires, - test_suite = 'nose.collector', +@@ -130,7 +108,6 @@ if __name__ == "__main__": + download_url=release.download_url, + classifiers=release.classifiers, + packages=packages, +- data_files=data, + package_data=package_data, + install_requires=install_requires, + extras_require=extras_require, -- cgit v1.2.3