git: fbd2a519ce69 - main - devel/py-openapi-schema-validator: Allow build with py-jsonschema-specifications 2024+

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Mon, 14 Oct 2024 05:28:39 UTC
The branch main has been updated by sunpoet:

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

commit fbd2a519ce69585c9b5eb9099067995822ec00ed
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-10-14 04:49:39 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-10-14 05:25:33 +0000

    devel/py-openapi-schema-validator: Allow build with py-jsonschema-specifications 2024+
    
    - Update version requirement of RUN_DEPENDS
    - Bump PORTREVISION for package change
    
    Obtained from:  https://github.com/python-openapi/openapi-schema-validator/commit/1f93f5be800625f3ef9350acaff111c3f441c598
---
 devel/py-openapi-schema-validator/Makefile               |  5 +++--
 .../files/patch-pyproject.toml                           | 16 +++++++++-------
 2 files changed, 12 insertions(+), 9 deletions(-)

diff --git a/devel/py-openapi-schema-validator/Makefile b/devel/py-openapi-schema-validator/Makefile
index 116c644a7238..8801b2dd3a3e 100644
--- a/devel/py-openapi-schema-validator/Makefile
+++ b/devel/py-openapi-schema-validator/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	openapi-schema-validator
 PORTVERSION=	0.6.2
+PORTREVISION=	1
 CATEGORIES=	devel python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -13,8 +14,8 @@ 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}jsonschema>=4.19.0<5:devel/py-jsonschema@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}jsonschema-specifications>=2023.5.2<2024:devel/py-jsonschema-specifications@${PY_FLAVOR} \
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}jsonschema>=4.19.1<5:devel/py-jsonschema@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}jsonschema-specifications>=2023.5.2:devel/py-jsonschema-specifications@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}rfc3339-validator>=0:devel/py-rfc3339-validator@${PY_FLAVOR}
 
 USES=		python
diff --git a/devel/py-openapi-schema-validator/files/patch-pyproject.toml b/devel/py-openapi-schema-validator/files/patch-pyproject.toml
index cc8819dd212b..1153fdd1c753 100644
--- a/devel/py-openapi-schema-validator/files/patch-pyproject.toml
+++ b/devel/py-openapi-schema-validator/files/patch-pyproject.toml
@@ -1,11 +1,13 @@
---- pyproject.toml.orig	2023-09-20 20:02:43 UTC
+Obtained from:	https://github.com/python-openapi/openapi-schema-validator/commit/1f93f5be800625f3ef9350acaff111c3f441c598
+
+--- pyproject.toml.orig	2023-10-05 11:16:22 UTC
 +++ pyproject.toml
-@@ -55,7 +55,7 @@ include = [
- 
- [tool.poetry.dependencies]
+@@ -57,7 +57,7 @@ rfc3339-validator = "*" # requred by jsonschema for da
  python = "^3.8.0"
--jsonschema = "^4.19.1"
-+jsonschema = "^4.19.0"
+ jsonschema = "^4.19.1"
  rfc3339-validator = "*" # requred by jsonschema for date-time checker
- jsonschema-specifications = "^2023.5.2"
+-jsonschema-specifications = "^2023.5.2"
++jsonschema-specifications = ">=2023.5.2"
  
+ [tool.poetry.extras]
+ docs = ["sphinx", "sphinx-immaterial"]