diff options
author | koobs <koobs@FreeBSD.org> | 2015-10-29 14:38:42 +0800 |
---|---|---|
committer | koobs <koobs@FreeBSD.org> | 2015-10-29 14:38:42 +0800 |
commit | e3745986dde25b0edcb5c0434e15e1b871123aa5 (patch) | |
tree | d1eb1f569f33e9fd4565932907f4ad86d998cdd1 /www | |
parent | ebd793bd7a3a1e263c3bf027ba1d7a38de596340 (diff) | |
download | freebsd-ports-gnome-e3745986dde25b0edcb5c0434e15e1b871123aa5.tar.gz freebsd-ports-gnome-e3745986dde25b0edcb5c0434e15e1b871123aa5.tar.zst freebsd-ports-gnome-e3745986dde25b0edcb5c0434e15e1b871123aa5.zip |
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
MFH: 2015Q4
Diffstat (limited to 'www')
-rw-r--r-- | www/py-django-mezzanine/Makefile | 24 | ||||
-rw-r--r-- | www/py-django-mezzanine/files/patch-setup.py | 27 |
2 files changed, 40 insertions, 11 deletions
diff --git a/www/py-django-mezzanine/Makefile b/www/py-django-mezzanine/Makefile index de28bb2f717b..fe6299ea7f98 100644 --- a/www/py-django-mezzanine/Makefile +++ b/www/py-django-mezzanine/Makefile @@ -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 built using the Django framework 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> diff --git a/www/py-django-mezzanine/files/patch-setup.py b/www/py-django-mezzanine/files/patch-setup.py new file mode 100644 index 000000000000..8164d393950d --- /dev/null +++ b/www/py-django-mezzanine/files/patch-setup.py @@ -0,0 +1,27 @@ +--- setup.py.orig 2014-08-11 10:12:36 UTC ++++ setup.py +@@ -53,12 +53,12 @@ try: + "django >= 1.4.10, != 1.6.0, < 1.7", + "filebrowser_safe >= 0.3.4", + "grappelli_safe >= 0.3.12", +- "tzlocal == 1.0", ++ "tzlocal >= 1.0", + "bleach >= 1.4", +- "beautifulsoup4 == 4.1.3", ++ "beautifulsoup4 >= 4.1.3", + "requests >= 2.1.0", + "requests-oauthlib >= 0.4", +- "future == 0.9.0", ++ "future >= 0.9.0", + "pillow", + ], + entry_points=""" +@@ -66,7 +66,7 @@ try: + mezzanine-project=mezzanine.bin.mezzanine_project:create_project + """, + test_suite="mezzanine.bin.runtests.main", +- tests_require=["pyflakes==0.6.1", "pep8==1.4.1"], ++ tests_require=["pyflakes>=0.6.1", "pep8>=1.4.1"], + classifiers=[ + "Development Status :: 5 - Production/Stable", + "Environment :: Web Environment", |