From cabc490bd54f085a6cabb28922f19e5cc3e067a9 Mon Sep 17 00:00:00 2001 From: Kubilay Kocak Date: Thu, 25 Apr 2019 05:03:09 +0000 Subject: [PATCH] net/py-port-for: Update to 0.4 - Remove setup.py patch, no longer required. --- net/py-port-for/Makefile | 9 +++++---- net/py-port-for/distinfo | 5 +++-- net/py-port-for/files/patch-setup.py | 22 ---------------------- 3 files changed, 8 insertions(+), 28 deletions(-) delete mode 100644 net/py-port-for/files/patch-setup.py diff --git a/net/py-port-for/Makefile b/net/py-port-for/Makefile index dae98b26c9e7..b1e493e46151 100644 --- a/net/py-port-for/Makefile +++ b/net/py-port-for/Makefile @@ -2,8 +2,7 @@ # $FreeBSD$ PORTNAME= port-for -PORTVERSION= 0.3.1 -PORTREVISION= 1 +PORTVERSION= 0.4 CATEGORIES= net devel python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -14,7 +13,7 @@ COMMENT= Utility that helps with local TCP ports managment LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE.txt -TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>=0:devel/py-nose@${PY_FLAVOR} \ +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}mock>=0.8:devel/py-mock@${PY_FLAVOR} USES= python @@ -26,6 +25,8 @@ post-patch: @${REINPLACE_CMD} '/DEFAULT_CONFIG_PATH/ s|/etc|${PREFIX}&|' ${WRKSRC}/port_for/store.py do-test: - @cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test + @cd ${WRKSRC} && ${PYTHON_CMD} -m pytest \ + --ignore port_for/_download_ranges.py \ + --doctest-modules port_for port_for/tests.py .include diff --git a/net/py-port-for/distinfo b/net/py-port-for/distinfo index 4ea5c6c0d385..03c5e6037a14 100644 --- a/net/py-port-for/distinfo +++ b/net/py-port-for/distinfo @@ -1,2 +1,3 @@ -SHA256 (port-for-0.3.1.tar.gz) = b16a84bb29c2954db44c29be38b17c659c9c27e33918dec16b90d375cc596f1c -SIZE (port-for-0.3.1.tar.gz) = 18652 +TIMESTAMP = 1533611371 +SHA256 (port-for-0.4.tar.gz) = 47b5cb48f8e036497cd73b96de305cecb4070e9ecbc908724afcbd2224edccde +SIZE (port-for-0.4.tar.gz) = 19450 diff --git a/net/py-port-for/files/patch-setup.py b/net/py-port-for/files/patch-setup.py deleted file mode 100644 index b3a3d77fd04d..000000000000 --- a/net/py-port-for/files/patch-setup.py +++ /dev/null @@ -1,22 +0,0 @@ ---- setup.py.orig 2016-02-25 12:42:58 UTC -+++ setup.py -@@ -8,6 +8,11 @@ for cmd in ('egg_info', 'develop'): - - version='0.3.1' - -+tests_require = [ -+ 'nose', -+ 'mock>=0.8', -+] -+ - setup( - name='port-for', - version=version, -@@ -44,4 +49,7 @@ setup( - 'Topic :: System :: Systems Administration', - 'Topic :: Internet :: WWW/HTTP :: Site Management', - ], -+ -+ tests_require=tests_require, -+ test_suite='nose.collector', - )