From owner-svn-ports-all@freebsd.org Sat Mar 5 15:46:05 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 85E299DB39D; Sat, 5 Mar 2016 15:46:05 +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 617F1AA3; Sat, 5 Mar 2016 15:46:05 +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 u25Fk4x2067129; Sat, 5 Mar 2016 15:46:04 GMT (envelope-from koobs@FreeBSD.org) Received: (from koobs@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u25Fk4ln067126; Sat, 5 Mar 2016 15:46:04 GMT (envelope-from koobs@FreeBSD.org) Message-Id: <201603051546.u25Fk4ln067126@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: koobs set sender to koobs@FreeBSD.org using -f From: Kubilay Kocak Date: Sat, 5 Mar 2016 15:46:04 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r410187 - in head/www/py-gandi.cli: . 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.21 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: Sat, 05 Mar 2016 15:46:05 -0000 Author: koobs Date: Sat Mar 5 15:46:04 2016 New Revision: 410187 URL: https://svnweb.freebsd.org/changeset/ports/410187 Log: www/py-gandi.cli: Update to 0.18, Modernize - Update PORTVERSION and distinfo checksum (0.18) - Remove TESTS option bits (no longer necessary) - Patch setup.py to remove unecessary dependencies and switch test_suite back to the actual test module instead of nose (TODO: upstream) - Remove unecessary TEST_DEPENDS (nose, coverage). The tests run perfectly fine without them. - Convert test target to modern framework - post-extract: Remove compiled (py[co]) files and __pycache__ directories that were inadvertently included in the sdist [1] Changes: https://github.com/Gandi/gandi.cli/blob/0.18/CHANGES.rst [1] https://github.com/Gandi/gandi.cli/pull/180 Modified: head/www/py-gandi.cli/Makefile head/www/py-gandi.cli/distinfo head/www/py-gandi.cli/files/patch-setup.py Modified: head/www/py-gandi.cli/Makefile ============================================================================== --- head/www/py-gandi.cli/Makefile Sat Mar 5 15:45:55 2016 (r410186) +++ head/www/py-gandi.cli/Makefile Sat Mar 5 15:46:04 2016 (r410187) @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= gandi.cli -PORTVERSION= 0.16 +PORTVERSION= 0.18 CATEGORIES= www python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -17,14 +17,6 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}yaml ${PYTHON_PKGNAMEPREFIX}click>=3.1:${PORTSDIR}/devel/py-click \ ${PYTHON_PKGNAMEPREFIX}requests>0:${PORTSDIR}/www/py-requests \ ${PYTHON_PKGNAMEPREFIX}ipy>0:${PORTSDIR}/net-mgmt/py-ipy -TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>0:${PORTSDIR}/devel/py-nose \ - ${PYTHON_PKGNAMEPREFIX}coverage>0:${PORTSDIR}/devel/py-coverage - -OPTIONS_DEFINE= TESTS - -TESTS_DESC= Install test suite requirements -TESTS_BUILD_DEPENDS= ${RUN_DEPENDS} \ - ${TEST_DEPENDS} USES= python USE_PYTHON= autoplist concurrent distutils @@ -37,7 +29,11 @@ NO_ARCH= yes TEST_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}mock>0:${PORTSDIR}/devel/py-mock .endif -regression-test: build +post-extract: + ${FIND} ${WRKSRC} -type d -name __pycache__ -exec ${RM} -rf {} + && \ + ${FIND} ${WRKSRC} -type f -name '*.py[co]' -exec ${RM} -f {} + + +do-test: @cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test .include Modified: head/www/py-gandi.cli/distinfo ============================================================================== --- head/www/py-gandi.cli/distinfo Sat Mar 5 15:45:55 2016 (r410186) +++ head/www/py-gandi.cli/distinfo Sat Mar 5 15:46:04 2016 (r410187) @@ -1,2 +1,2 @@ -SHA256 (gandi.cli-0.16.tar.gz) = e417f7f7f5f3a32ac777f7c1c74943d4604c7ed35dbb3f6c45fd2dafcdaa3acc -SIZE (gandi.cli-0.16.tar.gz) = 379521 +SHA256 (gandi.cli-0.18.tar.gz) = 0a03811501a2d04c07333501c97300f91bb6b8cdb3a2ce33ae394226cb80718a +SIZE (gandi.cli-0.18.tar.gz) = 590229 Modified: head/www/py-gandi.cli/files/patch-setup.py ============================================================================== --- head/www/py-gandi.cli/files/patch-setup.py Sat Mar 5 15:45:55 2016 (r410186) +++ head/www/py-gandi.cli/files/patch-setup.py Sat Mar 5 15:46:04 2016 (r410187) @@ -1,4 +1,4 @@ ---- setup.py.orig 2015-09-18 16:37:16 UTC +--- setup.py.orig 2016-02-08 14:17:09 UTC +++ setup.py @@ -6,11 +6,11 @@ import os import sys @@ -20,14 +20,15 @@ requires = ['setuptools', 'pyyaml', 'click>=3.1', 'requests', 'IPy'] -tests_require = ['nose', 'coverage', 'tox', 'httpretty==0.8.6'] -+tests_require = ['nose', 'httpretty==0.8.6'] ++tests_require = ['httpretty>=0.8.6'] if sys.version_info < (2, 7): tests_require += ['unittest2', 'importlib'] -@@ -53,6 +53,7 @@ setup(name='gandi.cli', +@@ -54,7 +54,7 @@ setup(name='gandi.cli', zip_safe=False, install_requires=requires, tests_require=tests_require, +- test_suite='nose.collector', + test_suite='gandi.cli.tests', extras_require=extras_require, entry_points={