Update py-IP to 0.75. while here, * convert to register egg-info * add test target Version 0.75 (2011-04-12) ------------------------- * IP('::/0').netmask() gives IP('::') instead of IP('0.0.0.0') Version 0.74 (2011-02-16) ------------------------- * Fix tests for Python 3.1 and 3.2 * ip.__nonzero__() and (ipa in ipb) return a bool instead of 0 or 1 * IP('0.0.0.0/0') + IP('0.0.0.0/0') raises an error, fix written by Arfrever Version 0.73 (2011-02-15) ------------------------- * Support Python 3: setup.py runs 2to3 * Update the ranges for IPv6 IPs * Fix reverseName() and reverseNames() for IPv4 in IPv6 addresses * Drop support of Python < 2.5 Version 0.72 (2010-11-23) ------------------------- * Include examples and MANIFEST.in in source build (add them to MANIFEST.in) * Remove __rcsid__ constant from IPy module Version 0.71 (2010-10-01) ------------------------- * Use xrange() instead of range() * Use isinstance(x, int) instead of type(x) == types.IntType * Prepare support of Python3 (use integer division: x // y) * Fix IP(long) constructor: ensure that the address is not too large * Constructor raise a TypeError if the type is not int, long, str or unicode * 223.0.0.0/8 is now public (belongs to APNIC)diff -r1.14 -r1.15 pkgsrc/net/py-IP/Makefile
(obache)
@@ -1,18 +1,21 @@ | @@ -1,18 +1,21 @@ | |||
1 | # $NetBSD: Makefile,v 1.14 2010/02/02 11:34:52 obache Exp $ | 1 | # $NetBSD: Makefile,v 1.15 2011/11/02 10:58:33 obache Exp $ | |
2 | 2 | |||
3 | DISTNAME= IPy-0.70 | 3 | DISTNAME= IPy-0.75 | |
4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/IPy/IP/} | 4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/IPy/IP/} | |
5 | CATEGORIES= net python | 5 | CATEGORIES= net python | |
6 | MASTER_SITES= http://pypi.python.org/packages/source/I/IPy/ | 6 | MASTER_SITES= http://pypi.python.org/packages/source/I/IPy/ | |
7 | 7 | |||
8 | MAINTAINER= wenheping@gmail.com | 8 | MAINTAINER= wenheping@gmail.com | |
9 | HOMEPAGE= http://software.inl.fr/trac/trac.cgi/wiki/IPy | 9 | HOMEPAGE= https://github.com/haypo/python-ipy/ | |
10 | COMMENT= Python module to handle IPv4 and IPv6 address | 10 | COMMENT= Python module to handle IPv4 and IPv6 address | |
11 | LICENSE= modified-bsd | 11 | LICENSE= modified-bsd | |
12 | 12 | |||
13 | PKG_DESTDIR_SUPPORT= user-destdir | 13 | PKG_DESTDIR_SUPPORT= user-destdir | |
14 | 14 | |||
15 | PYDISTUTILSPKG= yes | 15 | PYTHON_VERSIONS_INCOMPATIBLE= 24 | |
16 | 16 | |||
17 | .include "../../lang/python/extension.mk" | 17 | do-test: | |
18 | ${RUN}cd ${WRKSRC}/test; ${SETENV} ${TEST_ENV} ${PYTHONBIN} test_IPy.py | |||
19 | ||||
20 | .include "../../lang/python/distutils.mk" | |||
18 | .include "../../mk/bsd.pkg.mk" | 21 | .include "../../mk/bsd.pkg.mk" |
@@ -1,4 +1,5 @@ | @@ -1,4 +1,5 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.2 2003/09/14 16:43:52 recht Exp $ | 1 | @comment $NetBSD: PLIST,v 1.3 2011/11/02 10:58:33 obache Exp $ | |
2 | ${PLIST.eggfile}${PYSITELIB}/${EGG_FILE} | |||
2 | ${PYSITELIB}/IPy.py | 3 | ${PYSITELIB}/IPy.py | |
3 | ${PYSITELIB}/IPy.pyc | 4 | ${PYSITELIB}/IPy.pyc | |
4 | ${PYSITELIB}/IPy.pyo | 5 | ${PYSITELIB}/IPy.pyo |
@@ -1,5 +1,5 @@ | @@ -1,5 +1,5 @@ | |||
1 | $NetBSD: distinfo,v 1.3 2010/02/02 11:34:52 obache Exp $ | 1 | $NetBSD: distinfo,v 1.4 2011/11/02 10:58:33 obache Exp $ | |
2 | 2 | |||
3 | SHA1 (IPy-0.70.tar.gz) = 8d5ddf7b599508a5a563b99242770493b159317a | 3 | SHA1 (IPy-0.75.tar.gz) = 256529ba640345d301c440b21e808abbebe0a6bc | |
4 | RMD160 (IPy-0.70.tar.gz) = 352625191ba14905ccfe0d112828bccf18e18f4f | 4 | RMD160 (IPy-0.75.tar.gz) = f31b64d62d77a37b5fb66bb6bf047258426c7bed | |
5 | Size (IPy-0.70.tar.gz) = 22341 bytes | 5 | Size (IPy-0.75.tar.gz) = 28459 bytes |