From owner-svn-ports-head@freebsd.org Tue Dec 17 11:16:12 2019 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E107F1E4253; Tue, 17 Dec 2019 11:16:12 +0000 (UTC) (envelope-from koobs@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47cbDX5b2Nz4CgN; Tue, 17 Dec 2019 11:16:12 +0000 (UTC) (envelope-from koobs@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id B622DD0FA; Tue, 17 Dec 2019 11:16:12 +0000 (UTC) (envelope-from koobs@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id xBHBGCiY081945; Tue, 17 Dec 2019 11:16:12 GMT (envelope-from koobs@FreeBSD.org) Received: (from koobs@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id xBHBGBxn081939; Tue, 17 Dec 2019 11:16:11 GMT (envelope-from koobs@FreeBSD.org) Message-Id: <201912171116.xBHBGBxn081939@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: koobs set sender to koobs@FreeBSD.org using -f From: Kubilay Kocak Date: Tue, 17 Dec 2019 11:16:11 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r520324 - in head/www: . py-webargs X-SVN-Group: ports-head X-SVN-Commit-Author: koobs X-SVN-Commit-Paths: in head/www: . py-webargs X-SVN-Commit-Revision: 520324 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Dec 2019 11:16:12 -0000 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ć 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 + +.if ${PYTHON_VER} < 3 +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}simplejson>=2.1.0:devel/py-simplejson@${PY_FLAVOR} +.endif + +.include 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