From nobody Wed Apr 19 21:11:31 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Q1tkq6nF0z45DmZ; Wed, 19 Apr 2023 21:11:31 +0000 (UTC) (envelope-from git@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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Q1tkq5HTcz4TrF; Wed, 19 Apr 2023 21:11:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681938691; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=vTDBBH9kLLXQgQ/zr2pkmZJZAyJHCYG0rqX1GsYfPd4=; b=hUrKJmDMsfQjoqz3NWgCPQdYNeK/sCARBur4IEZ0/WsHa8s564xNGiMkjg+Tb5GY5a9DeK NGuhrTjoYRZXJe8vAFsZj4t//7NKlwtLS2RvprWUP0Df2T86iVZ8QqM0tS24UvTCCgFqLn De5veQw9ZgrA1WDfmWvfRaKI/q1siMMevXuijFEY5VdJUZz9hMuft9DlTIpoUA4VHvYGrj ED+Vjwjj6yGy+cpwEMdb8ocJZKJZ14yFlJQT6aYDPhzPuqd1B7mzklevUfrU2eidqpCTwk qHE4EFT12FuvIxDjkx6zJakzxEgEZuS3qiMzYHC8iD0E5cu/ojHI+tzZNx9qgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681938691; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=vTDBBH9kLLXQgQ/zr2pkmZJZAyJHCYG0rqX1GsYfPd4=; b=wdswhi1Qp5wFUfxjqYbTtmVaYpiWpG5OWOLjel1eVg6NNmcc3wCZTHGn2xytrSp5TOZs8s z6jG2QZ/vTRrbxjn4EU344K+1rlvRn2US0cuuxqMogbod3wTB1H9KcAWJsMFOm4jz8KWp8 lTAKQD9oWjzkB3WfxKaPWgPWbTiJpB6LFKb05eEkGpWEsOdfl1s10+fLEFDIV700n7W+WY dD4IgDVT02KFWMgWaSy7Xym9VERk0+9DKL0DFnQokSS4/qctC9t7o7UtB4n4Vi2ElH5JXw W2iAEsuPUrLylQY4sY2jDh8uDWpElwq5na8EDY+syaHjyJ5O9GqVPyrVR5YuYA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681938691; a=rsa-sha256; cv=none; b=JSgsRlOtOqLCI4wbj/SQzSgQRLMCyTLhUM3+oCJxyZABqkCGk9M/7JsLFrQMcGxoMMkK7K oQq9VtSupmWBgbr72RCWLOfu12kZrZJoUqm8LFyVnG1F2ylWoIuo8aFTGbxZMFg9XVQlKO nNnK3y/OG8LE/hz1HkM4gUqiLNicivntIi20LIoe6GPQlX2qHBsLwvMPZRCzCwKFjMY4N5 xa7vRGBEW0r5kftGuPlpbtfexkBG4mQp8WHFN9T/OTlqT9GwHSLEWIimXtGjxfQKRJ7mHm C5ubMeAcM6DMeENLgL9WfJdbBdThr+742iMqyM4PmofOejIpi4p2Lu0xhuIdIg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Q1tkq4N5Wz199Y; Wed, 19 Apr 2023 21:11:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 33JLBVru064107; Wed, 19 Apr 2023 21:11:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 33JLBV1o064106; Wed, 19 Apr 2023 21:11:31 GMT (envelope-from git) Date: Wed, 19 Apr 2023 21:11:31 GMT Message-Id: <202304192111.33JLBV1o064106@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Jose Alonso Cardenas Marquez Subject: git: ed310eb2d63c - main - devel/py-aiohttp-apispec: New port: build and document REST APIs with aiohttp and apispec List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: acm X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ed310eb2d63c6d31715ed0edb0782f5c51f5c301 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by acm: URL: https://cgit.FreeBSD.org/ports/commit/?id=ed310eb2d63c6d31715ed0edb0782f5c51f5c301 commit ed310eb2d63c6d31715ed0edb0782f5c51f5c301 Author: Jose Alonso Cardenas Marquez AuthorDate: 2023-04-19 21:10:14 +0000 Commit: Jose Alonso Cardenas Marquez CommitDate: 2023-04-19 21:10:14 +0000 devel/py-aiohttp-apispec: New port: build and document REST APIs with aiohttp and apispec aiohttp-apispec key features: - docs and request_schema decorators to add swagger spec support out of the box - validation_middleware middleware to enable validating with marshmallow schemas from those decorators; - SwaggerUI support. - match_info_schema, querystring_schema, form_schema, json_schema, headers_schema and cookies_schema decorators for specific request parts validation. --- devel/Makefile | 1 + devel/py-aiohttp-apispec/Makefile | 22 ++++++++++++++++++++++ devel/py-aiohttp-apispec/distinfo | 3 +++ devel/py-aiohttp-apispec/pkg-descr | 9 +++++++++ 4 files changed, 35 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index da67a548b09e..0d863c5f3427 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4170,6 +4170,7 @@ SUBDIR += py-aioapns SUBDIR += py-aiocontextvars SUBDIR += py-aiofiles + SUBDIR += py-aiohttp-apispec SUBDIR += py-aioice SUBDIR += py-aioitertools SUBDIR += py-aiologger diff --git a/devel/py-aiohttp-apispec/Makefile b/devel/py-aiohttp-apispec/Makefile new file mode 100644 index 000000000000..001ba3f7de38 --- /dev/null +++ b/devel/py-aiohttp-apispec/Makefile @@ -0,0 +1,22 @@ +PORTNAME= aiohttp-apispec +DISTVERSION= 2.2.3 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= acm@FreeBSD.org +COMMENT= build and document REST APIs with aiohttp and apispec +WWW= https://github.com/maximdanilchenko/aiohttp-apispec + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}aiohttp>0:www/py-aiohttp@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}apispec>0:devel/py-apispec@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}webargs>0:www/py-webargs@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}Jinja2>0:devel/py-Jinja2@${PY_FLAVOR} + +USES= python:3.7+ +USE_PYTHON= autoplist distutils + +.include diff --git a/devel/py-aiohttp-apispec/distinfo b/devel/py-aiohttp-apispec/distinfo new file mode 100644 index 000000000000..6ed7215fc6b0 --- /dev/null +++ b/devel/py-aiohttp-apispec/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1681935757 +SHA256 (aiohttp-apispec-2.2.3.tar.gz) = d70431e5f3ef5c6dc96dc9180ce10ddfd78fa054f178af8259707eb6d421ed05 +SIZE (aiohttp-apispec-2.2.3.tar.gz) = 2653064 diff --git a/devel/py-aiohttp-apispec/pkg-descr b/devel/py-aiohttp-apispec/pkg-descr new file mode 100644 index 000000000000..31eeaf87cbf5 --- /dev/null +++ b/devel/py-aiohttp-apispec/pkg-descr @@ -0,0 +1,9 @@ +aiohttp-apispec key features: + +- docs and request_schema decorators to add swagger spec support out of the box +- validation_middleware middleware to enable validating with marshmallow + schemas from those decorators; +- SwaggerUI support. +- match_info_schema, querystring_schema, form_schema, json_schema, + headers_schema and cookies_schema decorators for specific request parts + validation.