aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkoobs <koobs@FreeBSD.org>2015-05-27 14:50:22 +0800
committerkoobs <koobs@FreeBSD.org>2015-05-27 14:50:22 +0800
commitf73fcc85ebd3a4792337529188cd9600d36c32d1 (patch)
treeeab78465ee83c9965beac1de4f1ee6b041499f81
parent6106f4b920b1bd51248c30a2f2605676e413bc4d (diff)
downloadfreebsd-ports-gnome-f73fcc85ebd3a4792337529188cd9600d36c32d1.tar.gz
freebsd-ports-gnome-f73fcc85ebd3a4792337529188cd9600d36c32d1.tar.zst
freebsd-ports-gnome-f73fcc85ebd3a4792337529188cd9600d36c32d1.zip
net/py-netaddr: Update to 0.7.14
- Update to 0.7.14 - Add NO_ARCH [1] - Add uniquefiles:dirs [1] - Remove DOCSDIR override [1] - Refactor regression-test target - Patch setup.py and release.py to add proper test command support - Update pkg-descr according to upstream (setup.py) long_description Inspired by: Patch by tkato432 yahoo com [1] PR: 197447 [1]
-rw-r--r--net/py-netaddr/Makefile15
-rw-r--r--net/py-netaddr/distinfo4
-rw-r--r--net/py-netaddr/files/patch-release.py11
-rw-r--r--net/py-netaddr/files/patch-setup.py11
-rw-r--r--net/py-netaddr/pkg-descr33
5 files changed, 50 insertions, 24 deletions
diff --git a/net/py-netaddr/Makefile b/net/py-netaddr/Makefile
index 44af864269f7..3ff1914d908a 100644
--- a/net/py-netaddr/Makefile
+++ b/net/py-netaddr/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= netaddr
-PORTVERSION= 0.7.13
+PORTVERSION= 0.7.14
CATEGORIES= net python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -13,21 +13,18 @@ COMMENT= Manipulation of IPv4, IPv6, CIDR, EUI and MAC network addresses
LICENSE= BSD3CLAUSE MIT
LICENSE_COMB= multi
-USES= python
-USE_PYTHON= autoplist distutils
+NO_ARCH= yes
-DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
+USES= python
+USE_PYTHON= autoplist distutils uniquefiles:dirs
PORTDOCS= AUTHORS CHANGELOG README
-TESTFILES= __init__.py
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
-regression-test:
-.for f in ${TESTFILES}
- (cd ${WRKSRC}/netaddr/tests && ${PYTHON_CMD} $f)
-.endfor
+regression-test: build
+ @cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
.include <bsd.port.mk>
diff --git a/net/py-netaddr/distinfo b/net/py-netaddr/distinfo
index b1dd8f341d30..312d5a2262c2 100644
--- a/net/py-netaddr/distinfo
+++ b/net/py-netaddr/distinfo
@@ -1,2 +1,2 @@
-SHA256 (netaddr-0.7.13.tar.gz) = ca42c260b49e5fd74ba9104efa6a4fca6b55316ca42714d20d2b9b8e751e0412
-SIZE (netaddr-0.7.13.tar.gz) = 1548094
+SHA256 (netaddr-0.7.14.tar.gz) = 02abbb54c9edd6a3046385d2634f51c1dbddbbc9b5816599ecd052b1d9ff445f
+SIZE (netaddr-0.7.14.tar.gz) = 1560641
diff --git a/net/py-netaddr/files/patch-release.py b/net/py-netaddr/files/patch-release.py
new file mode 100644
index 000000000000..145800f4ae69
--- /dev/null
+++ b/net/py-netaddr/files/patch-release.py
@@ -0,0 +1,11 @@
+--- release.py.orig 2015-05-27 06:43:45 UTC
++++ release.py
+@@ -161,3 +161,8 @@ install_requires = [
+
+ setup_requires = [
+ ]
++
++tests_require = [
++]
++
++test_suite = 'netaddr.tests.test_suite_all'
diff --git a/net/py-netaddr/files/patch-setup.py b/net/py-netaddr/files/patch-setup.py
new file mode 100644
index 000000000000..1dc71541fd83
--- /dev/null
+++ b/net/py-netaddr/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig 2015-05-27 06:43:40 UTC
++++ setup.py
+@@ -41,6 +41,8 @@ def main():
+ version = release.version,
+ install_requires = release.install_requires,
+ setup_requires = release.setup_requires,
++ tests_require = release.tests_require,
++ test_suite = release.test_suite,
+ options = {
+ 'build_scripts': {
+ 'executable': '/usr/bin/env python',
diff --git a/net/py-netaddr/pkg-descr b/net/py-netaddr/pkg-descr
index ffe48d19a72f..953d6f74089f 100644
--- a/net/py-netaddr/pkg-descr
+++ b/net/py-netaddr/pkg-descr
@@ -1,17 +1,24 @@
-netaddr is a Python library for the manipulation of various common
-network address notations and representations.
+A pure Python network address representation and manipulation library.
-It takes the hassle out of fiddling with innumerable variations of
-network addresses, presenting a consistent, extensible, easy-to-use
-and (above all) Pythonic API.
+netaddr provides a Pythonic way of working with:
-With it you can validate, convert, categorise, iterate, generate,
-slice (and dice):
+ - IPv4 and IPv6 addresses and subnets
+ - MAC addresses, OUI and IAB identifiers, IEEE EUI-64 identifiers
+ - Arbitrary (non-aligned) IP address ranges and IP address sets
+ - Various non-CIDR IP range formats such as nmap and glob-style formats
- * IP version 4
- * IP version 6
- * CIDR (Classless Inter-Domain Routing)
- * MAC (Media Access Control)
- * IEEE EUI-48 and EUI-64
+Included are routines for:
-WWW: https://github.com/drkjam/netaddr
+ - Generating, sorting and summarizing IP addresses and networks
+ - Performing easy conversions between address notations and formats
+ - Detecting, parsing and formatting network address representations
+ - Performing set-based operations on groups of IP addresses and subnets
+ - Working with arbitrary IP address ranges and formats
+ - Accessing OUI and IAB organisational information published by IEEE
+ - Accessing IP address and block information published by IANA
+
+API documentation for the latest release is available here:
+
+ https://pythonhosted.org/netaddr/
+
+WWW: https://github.com/drkjam/netaddr/