Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Nov 2015 18:36:58 +0000 (UTC)
From:      Ruslan Makhmatkhanov <rm@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r401958 - in head/math/py-networkx: . files
Message-ID:  <201511191836.tAJIawmU044447@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rm
Date: Thu Nov 19 18:36:58 2015
New Revision: 401958
URL: https://svnweb.freebsd.org/changeset/ports/401958

Log:
  math/py-networkx: update to 1.10
  
  - update to 1.10
  - add YAML option (on by default)
  - remove gratuitous word from option descriptions
  - USE_PYTHON=concurrent instead of setting EXAMPLESDIR
  - alphabetize USE_PYTHON
  - discard pkg-message given all options are enabled by default
  
  While here limit python version to 2.x, because it's dependencies
  graphics/py-graphviz and math/py-matplotlib failed to configure
  with python3.
  
  PR:		204594
  Submitted by:	John W. O'Brien <john@saltant.com>
  Approved by:	dikshie@sfc.wide.ad.jp (maintainer)

Deleted:
  head/math/py-networkx/pkg-message
Modified:
  head/math/py-networkx/Makefile
  head/math/py-networkx/distinfo
  head/math/py-networkx/files/patch-setup.py
  head/math/py-networkx/pkg-descr

Modified: head/math/py-networkx/Makefile
==============================================================================
--- head/math/py-networkx/Makefile	Thu Nov 19 18:15:35 2015	(r401957)
+++ head/math/py-networkx/Makefile	Thu Nov 19 18:36:58 2015	(r401958)
@@ -2,8 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	networkx
-PORTVERSION=	1.9.1
-PORTREVISION=	1
+PORTVERSION=	1.10
 CATEGORIES=	math python
 MASTER_SITES=	http://networkx.lanl.gov/download/networkx/ \
 		CHEESESHOP
@@ -19,31 +18,34 @@ RUN_DEPENDS:=	${PYTHON_PKGNAMEPREFIX}dec
 #		${PYTHON_PKGNAMEPREFIX}sphinx>=1.2.3:${PORTSDIR}/textproc/py-sphinx \
 #		${PYTHON_PKGNAMEPREFIX}docutils>=0.12:${PORTSDIR}/textproc/py-docutils
 
-USES=		python shebangfix
-USE_PYTHON=	distutils autoplist
+NO_ARCH=	yes
+USES=		python:2 shebangfix
+USE_PYTHON=	autoplist concurrent distutils
 
 PLIST_SUB+=	PYTHON_MAJOR_VER=${PYTHON_MAJOR_VER}
 
-OPTIONS_DEFINE=	EXAMPLES
+OPTIONS_DEFINE=	EXAMPLES YAML
 OPTIONS_GROUP=	MATRIX RENDER
 OPTIONS_GROUP_MATRIX=	NUMPY SCIPY
 OPTIONS_GROUP_RENDER=	MPL GRAPHVIZ
-OPTIONS_DEFAULT=	NUMPY SCIPY MPL GRAPHVIZ
+OPTIONS_DEFAULT=	NUMPY SCIPY MPL GRAPHVIZ YAML
 
-NUMPY_DESC=	Support matrix representation of graphs
+NUMPY_DESC=	Matrix representation of graphs
 NUMPY_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}numpy>=1.9.2:${PORTSDIR}/math/py-numpy
 
-SCIPY_DESC=	Support sparse matrix representation of graphs
+SCIPY_DESC=	Sparse matrix representation of graphs
 SCIPY_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}scipy>=0.15.1:${PORTSDIR}/science/py-scipy \
 			${PYTHON_PKGNAMEPREFIX}scikit-sparse>=0.2:${PORTSDIR}/science/py-scikit-sparse
 
-MPL_DESC=	Support flexible graph rendering
+MPL_DESC=	Flexible graph rendering
 MPL_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}matplotlib>=1.4.0:${PORTSDIR}/math/py-matplotlib
 
-GRAPHVIZ_DESC=	Support additional graph layout and rendering algorithms
+GRAPHVIZ_DESC=	Additional graph layout and rendering algorithms
 GRAPHVIZ_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}graphviz>=1.2:${PORTSDIR}/graphics/py-graphviz
 
-EXAMPLESDIR=	${PREFIX}/share/doc/${PYTHON_PKGNAMEPREFIX}${PORTNAME}
+YAML_DESC=	Reading and writing YAML files
+YAML_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}yaml>=0:${PORTSDIR}/devel/py-yaml
+
 PORTEXAMPLES=	*
 
 post-install:

Modified: head/math/py-networkx/distinfo
==============================================================================
--- head/math/py-networkx/distinfo	Thu Nov 19 18:15:35 2015	(r401957)
+++ head/math/py-networkx/distinfo	Thu Nov 19 18:36:58 2015	(r401958)
@@ -1,2 +1,2 @@
-SHA256 (networkx-1.9.1.tar.gz) = 6380eb38d0b5770d7e50813c8a48ff7c373b2187b4220339c1adce803df01c59
-SIZE (networkx-1.9.1.tar.gz) = 1035784
+SHA256 (networkx-1.10.tar.gz) = ced4095ab83b7451cec1172183eff419ed32e21397ea4e1971d92a5808ed6fb8
+SIZE (networkx-1.10.tar.gz) = 1189291

Modified: head/math/py-networkx/files/patch-setup.py
==============================================================================
--- head/math/py-networkx/files/patch-setup.py	Thu Nov 19 18:15:35 2015	(r401957)
+++ head/math/py-networkx/files/patch-setup.py	Thu Nov 19 18:36:58 2015	(r401958)
@@ -1,6 +1,6 @@
---- setup.py.orig	2015-06-06 09:03:01 UTC
+--- setup.py.orig	2015-11-15 23:06:39 UTC
 +++ setup.py
-@@ -58,26 +58,7 @@ packages=["networkx",
+@@ -59,27 +59,6 @@ packages=["networkx",
            "networkx.testing",
            "networkx.utils"]
  
@@ -24,7 +24,15 @@
 -    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 = [ ]
- 
+-
  # add the tests
  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',

Modified: head/math/py-networkx/pkg-descr
==============================================================================
--- head/math/py-networkx/pkg-descr	Thu Nov 19 18:15:35 2015	(r401957)
+++ head/math/py-networkx/pkg-descr	Thu Nov 19 18:36:58 2015	(r401958)
@@ -1,13 +1,13 @@
-NetworkX (NX) is a Python package for the creation, manipulation, and 
+NetworkX (NX) is a Python package for the creation, manipulation, and
 study of the structure, dynamics, and functions of complex networks.
 Features:
 * Includes standard graph-theoretic and statistical physics functions
-* Easy exchange of network algorithms between applications, disciplines, 
+* Easy exchange of network algorithms between applications, disciplines,
   and platforms
 * Includes many classic graphs and synthetic networks
-* Nodes and edges can be "anything" (e.g. time-series, text, images, 
+* Nodes and edges can be "anything" (e.g. time-series, text, images,
   XML records)
-* Exploits existing code from high-quality legacy software in C, C++, 
+* Exploits existing code from high-quality legacy software in C, C++,
   Fortran, etc.
 * Open source (encourages community input)
 * Unit-tested



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201511191836.tAJIawmU044447>