Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Oct 2015 08:04:50 +0000 (UTC)
From:      Kubilay Kocak <koobs@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org
Subject:   svn commit: r400444 - in branches/2015Q4/www/py-django-mezzanine: . files
Message-ID:  <201510290804.t9T84omj009888@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: koobs
Date: Thu Oct 29 08:04:50 2015
New Revision: 400444
URL: https://svnweb.freebsd.org/changeset/ports/400444

Log:
  MFH: r400443
  
  www/py-django-mezzanine: Fix run dependency versions
  
  Loosen the dependencies listed in setup.py:install_requires so that
  port dependencies can satisfy them. This fixes run-time errors such as:
  
  pkg_resources.DistributionNotFound: The 'future==0.9.0' distribution was not found and is required by Mezzanine
  
   - Update and sort RUN_DEPENDS, remove chardet
   - Add TEST_DEPENDS
   - Rename test target now that framework supports TEST_DEPENDS et al.
   - Update test target to set some environment variables that if not set
     can cause test failures in particular environments.
  
  PR:		200994
  
  Approved by:	portmgr (delphij)

Added:
  branches/2015Q4/www/py-django-mezzanine/files/
     - copied from r400443, head/www/py-django-mezzanine/files/
Modified:
  branches/2015Q4/www/py-django-mezzanine/Makefile
Directory Properties:
  branches/2015Q4/   (props changed)

Modified: branches/2015Q4/www/py-django-mezzanine/Makefile
==============================================================================
--- branches/2015Q4/www/py-django-mezzanine/Makefile	Thu Oct 29 06:38:42 2015	(r400443)
+++ branches/2015Q4/www/py-django-mezzanine/Makefile	Thu Oct 29 08:04:50 2015	(r400444)
@@ -3,7 +3,7 @@
 
 PORTNAME=	django-mezzanine
 PORTVERSION=	3.1.10
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	www python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -15,24 +15,26 @@ COMMENT=	Content management platform bui
 LICENSE=	BSD2CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}django>1.6:${PORTSDIR}/www/py-django \
-		${PYTHON_PKGNAMEPREFIX}django-contrib-comments>0:${PORTSDIR}/www/py-django-contrib-comments \
+RUN_DEPENDS=	${PYTHON_SITELIBDIR}/django/bin/django-admin.py:${PORTSDIR}/www/py-django16 \
+		${PYTHON_PKGNAMEPREFIX}django-mezzanine-filebrowser>=0.3.4:${PORTSDIR}/www/py-django-mezzanine-filebrowser \
+		${PYTHON_PKGNAMEPREFIX}django-mezzanine-grappelli>=0.3.12:${PORTSDIR}/www/py-django-mezzanine-grappelli \
+		${PYTHON_PKGNAMEPREFIX}tzlocal>=1.0:${PORTSDIR}/devel/py-tzlocal \
 		${PYTHON_PKGNAMEPREFIX}bleach>=1.4:${PORTSDIR}/www/py-bleach \
 		${PYTHON_PKGNAMEPREFIX}beautifulsoup>=4.1.3:${PORTSDIR}/www/py-beautifulsoup \
-		${PYTHON_PKGNAMEPREFIX}chardet>0:${PORTSDIR}/textproc/py-chardet \
-		${PYTHON_PKGNAMEPREFIX}future>=0.9.0:${PORTSDIR}/devel/py-future \
-		${PYTHON_PKGNAMEPREFIX}pillow>=1.3.1:${PORTSDIR}/graphics/py-pillow \
 		${PYTHON_PKGNAMEPREFIX}requests>=2.1.0:${PORTSDIR}/www/py-requests \
 		${PYTHON_PKGNAMEPREFIX}requests-oauthlib>=0.4:${PORTSDIR}/www/py-requests-oauthlib \
+		${PYTHON_PKGNAMEPREFIX}future>=0.9.0:${PORTSDIR}/devel/py-future \
+		${PYTHON_PKGNAMEPREFIX}pillow>=1.3.1:${PORTSDIR}/graphics/py-pillow \
+		${PYTHON_PKGNAMEPREFIX}django-contrib-comments>0:${PORTSDIR}/www/py-django-contrib-comments \
 		${PYTHON_PKGNAMEPREFIX}south>=0.7.3:${PORTSDIR}/databases/py-south \
-		${PYTHON_PKGNAMEPREFIX}tzlocal>=1.0:${PORTSDIR}/devel/py-tzlocal \
-		${PYTHON_PKGNAMEPREFIX}django-mezzanine-filebrowser>=0.3.4:${PORTSDIR}/www/py-django-mezzanine-filebrowser \
-		${PYTHON_PKGNAMEPREFIX}django-mezzanine-grappelli>=0.3.12:${PORTSDIR}/www/py-django-mezzanine-grappelli
+
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pep8>=1.4.1:${PORTSDIR}/devel/pep8 \
+		${PYTHON_PKGNAMEPREFIX}pyflakes>=0.6.1:${PORTSDIR}/devel/py-pyflakes
 
 USES=		gettext python
 USE_PYTHON=	autoplist distutils
 
-regression-test: build
-	@cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} test
+do-test:
+	@cd ${WRKSRC} && ${SETENV} TZ=UTC LC_ALL=en_US.UTF-8 ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
 
 .include <bsd.port.mk>



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