git: f104ac610306 - main - databases/py-fakeredis: Update to 2.10.3

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sun, 09 Apr 2023 20:42:36 UTC
The branch main has been updated by sunpoet:

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

commit f104ac61030613eff4295045a39c1bd939010f87
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-04-09 20:40:05 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-04-09 20:40:05 +0000

    databases/py-fakeredis: Update to 2.10.3
    
    - Remove AIOREDIS option
    - Add JSON option
    
    Changes:        https://github.com/cunla/fakeredis-py/releases
---
 databases/py-fakeredis/Makefile                   | 19 ++++++++---------
 databases/py-fakeredis/distinfo                   |  6 +++---
 databases/py-fakeredis/files/patch-pyproject.toml | 25 ++++++++---------------
 3 files changed, 21 insertions(+), 29 deletions(-)

diff --git a/databases/py-fakeredis/Makefile b/databases/py-fakeredis/Makefile
index ef79b3705980..4bddd1c8e802 100644
--- a/databases/py-fakeredis/Makefile
+++ b/databases/py-fakeredis/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	fakeredis
-PORTVERSION=	1.10.2
+PORTVERSION=	2.10.3
 CATEGORIES=	databases python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -13,11 +13,11 @@ LICENSE_COMB=	multi
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
 BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}poetry-core>=0:devel/py-poetry-core@${PY_FLAVOR}
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}redis>=0<4.5:databases/py-redis@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}sortedcontainers>=2.3.0<3.0.0:devel/py-sortedcontainers@${PY_FLAVOR}
-TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}aioredis>=1.3.1<3.0.0:databases/py-aioredis@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}hypothesis>=0:devel/py-hypothesis@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}lupa>=1.13<2.0:lang/py-lupa@${PY_FLAVOR} \
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}redis>=4:databases/py-redis@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}sortedcontainers>=2.3<3:devel/py-sortedcontainers@${PY_FLAVOR}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}hypothesis>=0:devel/py-hypothesis@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}jsonpath-ng>=1.5<2:devel/py-jsonpath-ng@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}lupa>=1.14<2:lang/py-lupa@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pytest-asyncio>=0:devel/py-pytest-asyncio@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pytest-cov>=0:devel/py-pytest-cov@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pytest-mock>=0:devel/py-pytest-mock@${PY_FLAVOR}
@@ -27,11 +27,10 @@ USE_PYTHON=	autoplist concurrent pep517 pytest
 
 NO_ARCH=	yes
 
-OPTIONS_DEFINE=	AIOREDIS LUA
-AIOREDIS_DESC=	Asyncio redis support
+OPTIONS_DEFINE=	JSON LUA
 LUA_DESC=	Lua support
 
-AIOREDIS_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}aioredis>=1.3.1<3.0.0:databases/py-aioredis@${PY_FLAVOR}
-LUA_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}lupa>=1.13<2.0:lang/py-lupa@${PY_FLAVOR}
+JSON_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}jsonpath-ng>=1.5<2:devel/py-jsonpath-ng@${PY_FLAVOR}
+LUA_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}lupa>=1.14<2:lang/py-lupa@${PY_FLAVOR}
 
 .include <bsd.port.mk>
diff --git a/databases/py-fakeredis/distinfo b/databases/py-fakeredis/distinfo
index 56b354c555cb..055d8abe4b27 100644
--- a/databases/py-fakeredis/distinfo
+++ b/databases/py-fakeredis/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1680726094
-SHA256 (fakeredis-1.10.2.tar.gz) = 001e36864eb9e19fce6414081245e7ae5c9a363a898fedc17911b1e680ba2d08
-SIZE (fakeredis-1.10.2.tar.gz) = 41265
+TIMESTAMP = 1681052912
+SHA256 (fakeredis-2.10.3.tar.gz) = c5dcb070ef3219226e1d6db8836ddad47da1fc821270f6e89cfeb5da1f7f2e38
+SIZE (fakeredis-2.10.3.tar.gz) = 94025
diff --git a/databases/py-fakeredis/files/patch-pyproject.toml b/databases/py-fakeredis/files/patch-pyproject.toml
index 871f0f6b0248..dc56d32874ea 100644
--- a/databases/py-fakeredis/files/patch-pyproject.toml
+++ b/databases/py-fakeredis/files/patch-pyproject.toml
@@ -1,18 +1,11 @@
---- pyproject.toml.orig	2022-11-08 19:14:48 UTC
+--- pyproject.toml.orig	2023-04-03 23:14:58 UTC
 +++ pyproject.toml
-@@ -43,7 +43,7 @@ python = "^3.7"
- redis = "<4.5"
- sortedcontainers = "^2.4.0"
- lupa = { version = "^1.13", optional = true }
--aioredis = { version = "^2.0.1", optional = true }
-+aioredis = { version = ">=1.3.1,<3.0.0", optional = true }
+@@ -44,7 +44,7 @@ include = [
+ [tool.poetry.dependencies]
+ python = "^3.7"
+ redis = ">=4"
+-sortedcontainers = "^2.4"
++sortedcontainers = "^2.3"
+ lupa = { version = "^1.14", optional = true }
+ jsonpath-ng = { version = "^1.5", optional = true }
  
- [tool.poetry.extras]
- lua = ["lupa"]
-@@ -74,4 +74,4 @@ markers = [
-     "max_server",
-     "decode_responses",
- ]
--asyncio_mode="strict"
-\ No newline at end of file
-+asyncio_mode="strict"