Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Dec 2012 21:22:44 +0000 (UTC)
From:      Ruslan Mahmatkhanov <rm@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r308081 - in head/www/py-gunicorn: . files
Message-ID:  <201212012122.qB1LMi6Z097533@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rm
Date: Sat Dec  1 21:22:44 2012
New Revision: 308081
URL: http://svnweb.freebsd.org/changeset/ports/308081

Log:
  - update to 0.16.1
  - Use GITHUB mastersite instead of CHEESESHOP
  - remove USE_PYTHON version limit (Python3 Ready)
  - tweak TESTS_DESC
  - allow OPTIONSFILE to be overridden
  - re-order TEST_DEPENDS and replace py-nose with py-test in it
  - add {TEST,RUN}_DEPENDS to BUILD_DEPENDS when TESTS option is selected
  - patch out pytest-cov from requirements_dev.txt
  - update regression-test target bits
  - fix plist for python >= 3.2, while here
  
  PR:		173901
  Submitted by:	Kubilay Kocak <koobs.freebsd@gmail.com> (maintainer)
  Feature safe:	yes

Added:
  head/www/py-gunicorn/files/
  head/www/py-gunicorn/files/patch-requirements_dev.txt   (contents, props changed)
Modified:
  head/www/py-gunicorn/Makefile
  head/www/py-gunicorn/distinfo
  head/www/py-gunicorn/pkg-plist

Modified: head/www/py-gunicorn/Makefile
==============================================================================
--- head/www/py-gunicorn/Makefile	Sat Dec  1 20:18:50 2012	(r308080)
+++ head/www/py-gunicorn/Makefile	Sat Dec  1 21:22:44 2012	(r308081)
@@ -2,9 +2,8 @@
 # $FreeBSD$
 
 PORTNAME=	gunicorn
-PORTVERSION=	0.15.0
+PORTVERSION=	0.16.1
 CATEGORIES=	www python
-MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
 MAINTAINER=	koobs.freebsd@gmail.com
@@ -12,9 +11,13 @@ COMMENT=	Python WSGI server for unix
 
 LICENSE=	MIT
 
-TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}nose>0:${PORTSDIR}/devel/py-nose
+USE_GITHUB=	yes
+GH_ACCOUNT=	benoitc
+GH_TAGNAME=	0.16.1
+GH_COMMIT=	0d91a51
 
-USE_PYTHON=		-2.7
+# Python3 Ready
+USE_PYTHON=		yes
 USE_PYDISTUTILS=	easy_install
 
 OPTIONS_DEFINE=	EVENTLET GEVENT TORNADO SETPROC TESTS
@@ -22,12 +25,12 @@ EVENTLET_DESC=	Add Eventlet async worker
 GEVENT_DESC=	Add Gevent async worker
 TORNADO_DESC=	Add Tornado async worker
 SETPROC_DESC=	Support changing process title (setproctitle)
-TESTS_DESC=	Install nose for running unittests
+TESTS_DESC=	Install tools for running unittests
 
-OPTIONSFILE=		${PORT_DBDIR}/py-${PORTNAME}/options
+OPTIONSFILE?=		${PORT_DBDIR}/py-${PORTNAME}/options
 NO_OPTIONS_SORT=	yes
 
-.include <bsd.port.options.mk>
+.include <bsd.port.pre.mk>
 
 .if ${PORT_OPTIONS:MEVENTLET}
 RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}eventlet>=0.9:${PORTSDIR}/net/py-eventlet
@@ -46,10 +49,17 @@ RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}set
 .endif
 
 .if ${PORT_OPTIONS:MTESTS}
-BUILD_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}nose>0:${PORTSDIR}/devel/py-nose
+BUILD_DEPENDS:=	${TEST_DEPENDS} \
+		${RUN_DEPENDS}
 .endif
 
+TEST_DEPENDS:=	${PYTHON_PKGNAMEPREFIX}pytest>0:${PORTSDIR}/devel/py-pytest
+
 regression-test: build
-	@cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} nosetests
+	@cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} test
+
+.if ${PYTHON_REL} >= 320
+.include "${PORTSDIR}/devel/py-virtualenv/files/py3k-fix-pkg-plist.inc"
+.endif
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>

Modified: head/www/py-gunicorn/distinfo
==============================================================================
--- head/www/py-gunicorn/distinfo	Sat Dec  1 20:18:50 2012	(r308080)
+++ head/www/py-gunicorn/distinfo	Sat Dec  1 21:22:44 2012	(r308081)
@@ -1,2 +1,2 @@
-SHA256 (gunicorn-0.15.0.tar.gz) = 811f7e9b6b81f5ef4ba07ba071ee8f09ce2c9b16824b75fcaf6452af8bc9a9ad
-SIZE (gunicorn-0.15.0.tar.gz) = 119108
+SHA256 (gunicorn-0.16.1.tar.gz) = e1972878b7a742302fb5281cb4d4c64f4c0eace2c58a814e88bd09754149ff40
+SIZE (gunicorn-0.16.1.tar.gz) = 333263

Added: head/www/py-gunicorn/files/patch-requirements_dev.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/py-gunicorn/files/patch-requirements_dev.txt	Sat Dec  1 21:22:44 2012	(r308081)
@@ -0,0 +1,5 @@
+--- ./requirements_dev.txt.orig	2012-11-20 18:50:15.000000000 +1100
++++ ./requirements_dev.txt	2012-11-20 18:50:21.000000000 +1100
+@@ -1,2 +1 @@
+ pytest
+-pytest-cov

Modified: head/www/py-gunicorn/pkg-plist
==============================================================================
--- head/www/py-gunicorn/pkg-plist	Sat Dec  1 20:18:50 2012	(r308080)
+++ head/www/py-gunicorn/pkg-plist	Sat Dec  1 21:22:44 2012	(r308081)
@@ -67,9 +67,6 @@ bin/gunicorn_paster
 %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/gunicorn/http/wsgi.py
 %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/gunicorn/http/wsgi.pyc
 %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/gunicorn/http/wsgi.pyo
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/gunicorn/logging_config.py
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/gunicorn/logging_config.pyc
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/gunicorn/logging_config.pyo
 %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/gunicorn/management/__init__.py
 %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/gunicorn/management/__init__.pyc
 %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/gunicorn/management/__init__.pyo
@@ -82,6 +79,9 @@ bin/gunicorn_paster
 %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/gunicorn/pidfile.py
 %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/gunicorn/pidfile.pyc
 %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/gunicorn/pidfile.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/gunicorn/six.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/gunicorn/six.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/gunicorn/six.pyo
 %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/gunicorn/sock.py
 %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/gunicorn/sock.pyc
 %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/gunicorn/sock.pyo



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212012122.qB1LMi6Z097533>