Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Dec 2019 11:16:11 +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: r520324 - in head/www: . py-webargs
Message-ID:  <201912171116.xBHBGBxn081939@repo.freebsd.org>

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

Log:
  [NEW] www/py-webargs: Python library for parsing and validating HTTP request objects
  
  webargs is a Python library for parsing and validating HTTP request
  objects, with built-in support for popular web frameworks, including
  Flask, Django, Bottle, Tornado, Pyramid, webapp2, Falcon, and aiohttp
  
  WWW: https://github.com/marshmallow-code/webargs
  
  PR:		242610
  Submitted by:	Goran Mekić <mekaat tilda center>

Added:
  head/www/py-webargs/
  head/www/py-webargs/Makefile   (contents, props changed)
  head/www/py-webargs/distinfo   (contents, props changed)
  head/www/py-webargs/pkg-descr   (contents, props changed)
Modified:
  head/www/Makefile

Modified: head/www/Makefile
==============================================================================
--- head/www/Makefile	Tue Dec 17 11:09:03 2019	(r520323)
+++ head/www/Makefile	Tue Dec 17 11:16:11 2019	(r520324)
@@ -1874,6 +1874,7 @@
     SUBDIR += py-w3lib
     SUBDIR += py-wagtail
     SUBDIR += py-waitress
+    SUBDIR += py-webargs
     SUBDIR += py-webassets
     SUBDIR += py-webhelpers
     SUBDIR += py-webob

Added: head/www/py-webargs/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/py-webargs/Makefile	Tue Dec 17 11:16:11 2019	(r520324)
@@ -0,0 +1,55 @@
+# $FreeBSD$
+
+PORTNAME=	webargs
+PORTVERSION=	5.5.2
+CATEGORIES=	www devel python
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	meka@tilda.center
+COMMENT=	Python library for parsing and validating HTTP request objects
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}marshmallow>2.15.2:devel/py-marshmallow@${PY_FLAVOR}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}WebTest>0:www/py-WebTest@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}bottle>0:www/py-bottle@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}tornado>=4.5.2:www/py-tornado@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}Flask>=0.12.2:www/py-flask@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}falcon>=1.4.0,<2.0:www/py-falcon@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}django*>=1.11.16:www/py-django22@${PY_FLAVOR}
+
+# To be updated
+# TEST_DEPENDS+= 	${PYTHON_PKGNAMEPREFIX}pyramid>=1.9.1:www/py-django22@${PY_FLAVOR}
+# To be ported
+# TEST_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}webapp2>=3.0.0b1:www/py-webapp2@${PY_FLAVOR}
+#			${PYTHON_PKGNAMEPREFIX}webtest_aiohttp>=2.0.0:www/py-webtest_aiohttp@${PY_FLAVOR}
+
+# Supports 2/3 but marshmallow 3.x is Python 3 only
+# Requires a marshmallow2 (2.x) port
+USES=		python:3.5+
+USE_GITHUB=	yes # tests not packaged with PyPI sdist
+USE_PYTHON=	autoplist concurrent distutils
+
+GH_ACCOUNT=	marshmallow-code
+GH_TAGNAME=	f1ae764
+
+TEST_ENV=	PYTHONPATH=${WRKSRC}/src
+
+NO_ARCH=	yes
+
+do-test:
+	cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs -o addopts= \
+		--ignore-glob='*webapp2*' \
+		--ignore-glob='*pyramid*' \
+		--ignore-glob='*test_aiohttpparser*'
+
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_VER} < 3
+RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}simplejson>=2.1.0:devel/py-simplejson@${PY_FLAVOR}
+.endif
+
+.include <bsd.port.post.mk>

Added: head/www/py-webargs/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/py-webargs/distinfo	Tue Dec 17 11:16:11 2019	(r520324)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1576287788
+SHA256 (marshmallow-code-webargs-5.5.2-f1ae764_GH0.tar.gz) = c2373c347447d278a427435d445e15c9157cd7963e3b34f83835456f6c2e2e0b
+SIZE (marshmallow-code-webargs-5.5.2-f1ae764_GH0.tar.gz) = 68518

Added: head/www/py-webargs/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/py-webargs/pkg-descr	Tue Dec 17 11:16:11 2019	(r520324)
@@ -0,0 +1,5 @@
+webargs is a Python library for parsing and validating HTTP request
+objects, with built-in support for popular web frameworks, including
+Flask, Django, Bottle, Tornado, Pyramid, webapp2, Falcon, and aiohttp
+
+WWW: https://github.com/marshmallow-code/webargs



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