svn commit: r410187 - in head/www/py-gandi.cli: . files
Kubilay Kocak
koobs at FreeBSD.org
Sat Mar 5 15:46:05 UTC 2016
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 <bsd.port.post.mk>
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={
More information about the svn-ports-head
mailing list