git: b4dcd5bab692 - main - devel/py-openapi-core: Update to 0.19.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Wed, 21 Feb 2024 15:22:58 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b4dcd5bab692301271b8841ea8c19d0a9859d930

commit b4dcd5bab692301271b8841ea8c19d0a9859d930
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-02-21 14:32:49 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-02-21 15:07:28 +0000

    devel/py-openapi-core: Update to 0.19.0
    
    - Add FASTAPI option
    
    Changes:        https://github.com/python-openapi/openapi-core/releases
---
 devel/py-openapi-core/Makefile                   | 13 ++++++++-----
 devel/py-openapi-core/distinfo                   |  6 +++---
 devel/py-openapi-core/files/patch-pyproject.toml | 11 +++++++++++
 3 files changed, 22 insertions(+), 8 deletions(-)

diff --git a/devel/py-openapi-core/Makefile b/devel/py-openapi-core/Makefile
index 788afbe2f8c4..1b4b8df40964 100644
--- a/devel/py-openapi-core/Makefile
+++ b/devel/py-openapi-core/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	openapi-core
-PORTVERSION=	0.18.2
+PORTVERSION=	0.19.0
 CATEGORIES=	devel python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -14,9 +14,9 @@ LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
 BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}poetry-core>=1.0.0:devel/py-poetry-core@${PY_FLAVOR}
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}asgiref>=3.6.0<4:www/py-asgiref@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}isodate>=0:devel/py-isodate@${PY_FLAVOR} \
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}isodate>=0:devel/py-isodate@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}jsonschema>=4.18.0<5:devel/py-jsonschema@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}jsonschema-path>=0.3.1<0.4:devel/py-jsonschema-path@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}jsonschema-spec>=0.2.3<0.3:devel/py-jsonschema-spec@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}more-itertools>=0:devel/py-more-itertools@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}openapi-schema-validator>=0.6.0<0.7:devel/py-openapi-schema-validator@${PY_FLAVOR} \
@@ -29,9 +29,10 @@ USE_PYTHON=	autoplist concurrent pep517
 
 NO_ARCH=	yes
 
-OPTIONS_DEFINE=	AIOHTTP DJANGO FALCON FLASK REQUESTS STARLETTE
+OPTIONS_DEFINE=	AIOHTTP DJANGO FALCON FASTAPI FLASK REQUESTS STARLETTE
 AIOHTTP_DESC=	Async http support
 DJANGO_DESC=	Django support
+FASTAPI_DESC=	FastAPI support
 FALCON_DESC=	Falcon support
 FLASK_DESC=	Flask support
 REQUESTS_DESC=	Requests support
@@ -41,8 +42,10 @@ AIOHTTP_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}aiohttp>=3.0:www/py-aiohttp@${PY_FLA
 			${PYTHON_PKGNAMEPREFIX}multidict>=6.0.4<7:www/py-multidict@${PY_FLAVOR}
 DJANGO_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}django32>=3.0:www/py-django32@${PY_FLAVOR}
 FALCON_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}falcon>=3.0:www/py-falcon@${PY_FLAVOR}
+FASTAPI_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}fastapi>=0.108.0<1:www/py-fastapi@${PY_FLAVOR}
 FLASK_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}flask>=0:www/py-flask@${PY_FLAVOR}
 REQUESTS_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${PY_FLAVOR}
-STARLETTE_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}starlette>=0.26.1<0.32.0:www/py-starlette@${PY_FLAVOR}
+STARLETTE_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}aioitertools>=0.11.0<0.12:devel/py-aioitertools@${PY_FLAVOR} \
+			${PYTHON_PKGNAMEPREFIX}starlette>=0.26.1<0.38.0:www/py-starlette@${PY_FLAVOR}
 
 .include <bsd.port.mk>
diff --git a/devel/py-openapi-core/distinfo b/devel/py-openapi-core/distinfo
index 804d4192872d..a4acd185a5d1 100644
--- a/devel/py-openapi-core/distinfo
+++ b/devel/py-openapi-core/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1699774558
-SHA256 (openapi_core-0.18.2.tar.gz) = d4cc50f3ee03ae46313c83e97c6fbfe7e7ae9686741135eb0e4ed49e9d8ff08a
-SIZE (openapi_core-0.18.2.tar.gz) = 84444
+TIMESTAMP = 1708449226
+SHA256 (openapi_core-0.19.0.tar.gz) = 9c0a157ca8e21a1205f95e0495557a45ad2a33bc8f0f9002406d671420b0920a
+SIZE (openapi_core-0.19.0.tar.gz) = 105815
diff --git a/devel/py-openapi-core/files/patch-pyproject.toml b/devel/py-openapi-core/files/patch-pyproject.toml
new file mode 100644
index 000000000000..6121ca318beb
--- /dev/null
+++ b/devel/py-openapi-core/files/patch-pyproject.toml
@@ -0,0 +1,11 @@
+--- pyproject.toml.orig	2024-02-14 15:44:09 UTC
++++ pyproject.toml
+@@ -76,7 +76,7 @@ aioitertools = {version = "^0.11.0", optional = true}
+ jsonschema = "^4.18.0"
+ multidict = {version = "^6.0.4", optional = true}
+ aioitertools = {version = "^0.11.0", optional = true}
+-fastapi = {version = "^0.108.0", optional = true}
++fastapi = {version = "^0.108", optional = true}
+ 
+ [tool.poetry.extras]
+ django = ["django"]