Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Dec 2019 03:14:37 +0000 (UTC)
From:      Kubilay Kocak <koobs@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r520299 - in head/www: . py-pecan py-pecan/files
Message-ID:  <201912170314.xBH3EbHK098122@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: koobs
Date: Tue Dec 17 03:14:37 2019
New Revision: 520299
URL: https://svnweb.freebsd.org/changeset/ports/520299

Log:
  [NEW] www/py-pecan: WSGI object-dispatching web framework
  
  A WSGI object-dispatching web framework.
  
  Designed to be lean and fast with few dependencies.
  
  WWW: https://github.com/pecan/pecan/
  
  PR:		241691
  Submitted by:	Willem Jan Withagen <wjw digiware nl>

Added:
  head/www/py-pecan/
  head/www/py-pecan/Makefile   (contents, props changed)
  head/www/py-pecan/distinfo   (contents, props changed)
  head/www/py-pecan/files/
  head/www/py-pecan/files/patch-setup.py   (contents, props changed)
  head/www/py-pecan/pkg-descr   (contents, props changed)
Modified:
  head/www/Makefile

Modified: head/www/Makefile
==============================================================================
--- head/www/Makefile	Tue Dec 17 01:05:15 2019	(r520298)
+++ head/www/Makefile	Tue Dec 17 03:14:37 2019	(r520299)
@@ -1709,6 +1709,7 @@
     SUBDIR += py-pastedeploy
     SUBDIR += py-pastescript
     SUBDIR += py-path-and-address
+    SUBDIR += py-pecan
     SUBDIR += py-pelican
     SUBDIR += py-planet
     SUBDIR += py-plone.alterego

Added: head/www/py-pecan/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/py-pecan/Makefile	Tue Dec 17 03:14:37 2019	(r520299)
@@ -0,0 +1,49 @@
+# $FreeBSD$
+
+PORTNAME=	pecan
+PORTVERSION=	1.3.3
+CATEGORIES=	www python net
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	wjw@digiware.nl
+COMMENT=	WSGI object-dispatching web framework
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}webob>=1.2:www/py-webob@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}mako>=0.4.0:textproc/py-mako@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}WebTest>=1.3.1:www/py-WebTest@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}six>=0:devel/py-six@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}logutils>=0.3:devel/py-logutils@${PY_FLAVOR}
+
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}gunicorn>=0:www/py-gunicorn@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}Jinja2>=0:devel/py-Jinja2@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}mock>=0:devel/py-mock@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}sqlalchemy10>=0:databases/py-sqlalchemy10@${PY_FLAVOR}
+
+USES=		python:2.7+
+USE_PYTHON=	distutils autoplist concurrent
+
+NO_ARCH=	yes
+
+do-test:
+	@(cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} setup.py test)
+
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_VER} < 3.4
+RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}singledispatch>=0:devel/py-singledispatch@${PY_FLAVOR}
+.endif
+
+.if ${PYTHON_VER} < 3.0
+TEST_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}Genshi>=0:textproc/py-genshi@${PY_FLAVOR}
+# To be ported
+# 		${PYTHON_PKGNAMEPREFIX}kajiki>0:textproc/py-kajiki@${PY_FLAVOR}
+.else
+# Genshi added Python3 (< 3.5) support in 0.7
+TEST_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}Genshi>=0.7:textproc/py-genshi@${PY_FLAVOR}
+.endif
+
+.include <bsd.port.post.mk>

Added: head/www/py-pecan/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/py-pecan/distinfo	Tue Dec 17 03:14:37 2019	(r520299)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1572799326
+SHA256 (pecan-1.3.3.tar.gz) = b5461add4e3f35a7ee377b3d7f72ff13e93f40f3823b3208ab978b29bde936ff
+SIZE (pecan-1.3.3.tar.gz) = 120595

Added: head/www/py-pecan/files/patch-setup.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/py-pecan/files/patch-setup.py	Tue Dec 17 03:14:37 2019	(r520299)
@@ -0,0 +1,18 @@
+--- setup.py.orig	2019-12-16 02:09:56 UTC
++++ setup.py
+@@ -1,3 +1,7 @@
++# virtualenv is not a compulsory test dependency
++# make it an extras_require[dev] instead
++# TODO: Upstream
++
+ import sys
+ import platform
+ 
+@@ -29,7 +33,6 @@ except:
+ 
+ 
+ tests_require = requirements + [
+-    'virtualenv',
+     'Jinja2',
+     'gunicorn',
+     'mock',

Added: head/www/py-pecan/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/py-pecan/pkg-descr	Tue Dec 17 03:14:37 2019	(r520299)
@@ -0,0 +1,5 @@
+A WSGI object-dispatching web framework.
+
+Designed to be lean and fast with few dependencies.
+
+WWW: https://github.com/pecan/pecan/



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