From owner-dev-commits-ports-main@freebsd.org Thu May 13 21:49:14 2021 Return-Path: Delivered-To: dev-commits-ports-main@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 971446304B4; Thu, 13 May 2021 21:49:14 +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 4Fh50B3qPdz3vq3; Thu, 13 May 2021 21:49:14 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 7631A2605F; Thu, 13 May 2021 21:49:14 +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 14DLnEvh029906; Thu, 13 May 2021 21:49:14 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 14DLnEct029905; Thu, 13 May 2021 21:49:14 GMT (envelope-from git) Date: Thu, 13 May 2021 21:49:14 GMT Message-Id: <202105132149.14DLnEct029905@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Neel Chauhan Subject: git: 432ac2b0fdaa - main - New port: www/py-fastapi: High-performance Python API Framework MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: nc X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 432ac2b0fdaa82f206f2e9f2c0572ebbae95c260 Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-main@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commits to the main branch of the FreeBSD ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 May 2021 21:49:14 -0000 The branch main has been updated by nc: URL: https://cgit.FreeBSD.org/ports/commit/?id=432ac2b0fdaa82f206f2e9f2c0572ebbae95c260 commit 432ac2b0fdaa82f206f2e9f2c0572ebbae95c260 Author: Neel Chauhan AuthorDate: 2021-05-13 21:48:47 +0000 Commit: Neel Chauhan CommitDate: 2021-05-13 21:49:11 +0000 New port: www/py-fastapi: High-performance Python API Framework --- www/Makefile | 1 + www/py-fastapi/Makefile | 21 +++++++++++++++++++++ www/py-fastapi/distinfo | 3 +++ www/py-fastapi/files/patch-setup.py | 11 +++++++++++ www/py-fastapi/pkg-descr | 24 ++++++++++++++++++++++++ 5 files changed, 60 insertions(+) diff --git a/www/Makefile b/www/Makefile index 661e68de16bd..01f6ff60a9ee 100644 --- a/www/Makefile +++ b/www/Makefile @@ -1574,6 +1574,7 @@ SUBDIR += py-enmerkar SUBDIR += py-fake-useragent SUBDIR += py-falcon + SUBDIR += py-fastapi SUBDIR += py-feedgenerator SUBDIR += py-flask SUBDIR += py-flask-admin diff --git a/www/py-fastapi/Makefile b/www/py-fastapi/Makefile new file mode 100644 index 000000000000..101c8c156a8a --- /dev/null +++ b/www/py-fastapi/Makefile @@ -0,0 +1,21 @@ +PORTNAME= fastapi +PORTVERSION= 0.65.1 +CATEGORIES= www python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= nc@FreeBSD.org +COMMENT= High-performance Python API Framework + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pydantic>0:devel/py-pydantic@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}starlette>0:www/py-starlette@${PY_FLAVOR} + +USES= python:3.6+ +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +.include diff --git a/www/py-fastapi/distinfo b/www/py-fastapi/distinfo new file mode 100644 index 000000000000..53f8e06262ad --- /dev/null +++ b/www/py-fastapi/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1620940704 +SHA256 (fastapi-0.65.1.tar.gz) = 478b7e0cbb52c9913b9903d88ae14195cb8a479c4596e0b2f2238d317840a7dc +SIZE (fastapi-0.65.1.tar.gz) = 5519965 diff --git a/www/py-fastapi/files/patch-setup.py b/www/py-fastapi/files/patch-setup.py new file mode 100644 index 000000000000..4927af19ca7b --- /dev/null +++ b/www/py-fastapi/files/patch-setup.py @@ -0,0 +1,11 @@ +--- setup.py.orig 1970-01-01 00:00:00 UTC ++++ setup.py +@@ -15,7 +15,7 @@ package_data = \ + + install_requires = \ + ['starlette ==0.14.2', +- 'pydantic >=1.6.2,!=1.7,!=1.7.1,!=1.7.2,!=1.7.3,!=1.8,!=1.8.1,<2.0.0'] ++ 'pydantic >=1.6.2,<2.0.0'] + + extras_require = \ + {'all': ['requests >=2.24.0,<3.0.0', diff --git a/www/py-fastapi/pkg-descr b/www/py-fastapi/pkg-descr new file mode 100644 index 000000000000..448bb07edb48 --- /dev/null +++ b/www/py-fastapi/pkg-descr @@ -0,0 +1,24 @@ +FastAPI is a modern, fast (high-performance), web framework for building APIs +with Python 3.6+ based on standard Python type hints. + +The key features are: + + * Fast: Very high performance, on par with NodeJS and Go. + + * Fast to code: Increase the speed to develop features by about 200% to 300%. + + * Fewer bugs: Reduce about 40% of human (developer) induced errors. + + * Intuitive: Great editor support. Completion everywhere. Less time debugging. + + * Easy: Designed to be easy to use and learn. Less time reading docs. + + * Short: Minimize code duplication. Multiple features from each parameter + declaration. Fewer bugs. + + * Robust: Get production-ready code. With automatic interactive documentation. + + * Standards-based: Based on (and fully compatible with) the open standards for + APIs: OpenAPI (previously known as Swagger) and JSON Schema. + +WWW: https://github.com/tiangolo/fastapi