From owner-svn-ports-all@freebsd.org Thu Feb 25 13:03:46 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4E0C3AB2A60; Thu, 25 Feb 2016 13:03:46 +0000 (UTC) (envelope-from koobs@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1064D3A6; Thu, 25 Feb 2016 13:03:45 +0000 (UTC) (envelope-from koobs@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u1PD3jiI038988; Thu, 25 Feb 2016 13:03:45 GMT (envelope-from koobs@FreeBSD.org) Received: (from koobs@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u1PD3iVU038985; Thu, 25 Feb 2016 13:03:44 GMT (envelope-from koobs@FreeBSD.org) Message-Id: <201602251303.u1PD3iVU038985@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: koobs set sender to koobs@FreeBSD.org using -f From: Kubilay Kocak Date: Thu, 25 Feb 2016 13:03:44 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r409514 - in head/net/py-port-for: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Feb 2016 13:03:46 -0000 Author: koobs Date: Thu Feb 25 13:03:44 2016 New Revision: 409514 URL: https://svnweb.freebsd.org/changeset/ports/409514 Log: net/py-port-for: Update to 0.3.1 - Update PORTVERSION and distinfo checksum (0.3.1) - Add TEST_DEPENDS and test target - Add LICENSE_FILE - Update COMMENT (matching setup.py:description) - Enable NO_ARCH (architecture independent) - Patch setup.py adding tests_require and support for test command Added: head/net/py-port-for/files/ head/net/py-port-for/files/patch-setup.py (contents, props changed) Modified: head/net/py-port-for/Makefile head/net/py-port-for/distinfo Modified: head/net/py-port-for/Makefile ============================================================================== --- head/net/py-port-for/Makefile Thu Feb 25 13:03:15 2016 (r409513) +++ head/net/py-port-for/Makefile Thu Feb 25 13:03:44 2016 (r409514) @@ -2,22 +2,29 @@ # $FreeBSD$ PORTNAME= port-for -PORTVERSION= 0.3 -PORTREVISION= 1 +PORTVERSION= 0.3.1 CATEGORIES= net devel python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= koobs@FreeBSD.org -COMMENT= Python utility and library that helps with TCP ports management +COMMENT= Utility that helps with local TCP ports managment LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>=0:${PORTSDIR}/devel/py-nose \ + ${PYTHON_PKGNAMEPREFIX}mock>=0.8:${PORTSDIR}/devel/py-mock -# Python3 Ready USES= python -USE_PYTHON= distutils autoplist +USE_PYTHON= distutils concurrent autoplist + +NO_ARCH= yes post-patch: @${REINPLACE_CMD} '/DEFAULT_CONFIG_PATH/ s|/etc|${PREFIX}&|' ${WRKSRC}/port_for/store.py +do-test: + @cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test + .include Modified: head/net/py-port-for/distinfo ============================================================================== --- head/net/py-port-for/distinfo Thu Feb 25 13:03:15 2016 (r409513) +++ head/net/py-port-for/distinfo Thu Feb 25 13:03:44 2016 (r409514) @@ -1,2 +1,2 @@ -SHA256 (port-for-0.3.tar.gz) = 89a53e4ac858899b9c3dc69f6aedc1abb0b00dced6bb73fc31575b8050bdc479 -SIZE (port-for-0.3.tar.gz) = 18053 +SHA256 (port-for-0.3.1.tar.gz) = b16a84bb29c2954db44c29be38b17c659c9c27e33918dec16b90d375cc596f1c +SIZE (port-for-0.3.1.tar.gz) = 18652 Added: head/net/py-port-for/files/patch-setup.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/py-port-for/files/patch-setup.py Thu Feb 25 13:03:44 2016 (r409514) @@ -0,0 +1,22 @@ +--- 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', + )