git: 74ecd6fddb98 - main - databases/py-fakeredis: Convert to USE_PYTHON=pep517

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Wed, 05 Apr 2023 17:35:42 UTC
The branch main has been updated by sunpoet:

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

commit 74ecd6fddb98eb9b6f638468c8f439c6f0454765
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-04-05 17:15:40 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-04-05 17:30:11 +0000

    databases/py-fakeredis: Convert to USE_PYTHON=pep517
    
    - Bump PORTREVISION for package change
---
 databases/py-fakeredis/Makefile                   |  3 ++-
 databases/py-fakeredis/files/patch-pyproject.toml | 18 ++++++++++++++++++
 databases/py-fakeredis/files/patch-setup.py       | 15 ---------------
 3 files changed, 20 insertions(+), 16 deletions(-)

diff --git a/databases/py-fakeredis/Makefile b/databases/py-fakeredis/Makefile
index b5040b181a5c..d23ff1a332df 100644
--- a/databases/py-fakeredis/Makefile
+++ b/databases/py-fakeredis/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	fakeredis
 PORTVERSION=	1.10.1
+PORTREVISION=	1
 CATEGORIES=	databases python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -22,7 +23,7 @@ TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}aioredis>=1.3.1<3.0.0:databases/py-aioredis
 		${PYTHON_PKGNAMEPREFIX}pytest-mock>=0:devel/py-pytest-mock@${PY_FLAVOR}
 
 USES=		python:3.8+
-USE_PYTHON=	autoplist concurrent distutils pytest
+USE_PYTHON=	autoplist concurrent pep517 pytest
 
 NO_ARCH=	yes
 
diff --git a/databases/py-fakeredis/files/patch-pyproject.toml b/databases/py-fakeredis/files/patch-pyproject.toml
new file mode 100644
index 000000000000..871f0f6b0248
--- /dev/null
+++ b/databases/py-fakeredis/files/patch-pyproject.toml
@@ -0,0 +1,18 @@
+--- pyproject.toml.orig	2022-11-08 19:14:48 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 }
+ 
+ [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"
diff --git a/databases/py-fakeredis/files/patch-setup.py b/databases/py-fakeredis/files/patch-setup.py
deleted file mode 100644
index 7775d625f117..000000000000
--- a/databases/py-fakeredis/files/patch-setup.py
+++ /dev/null
@@ -1,15 +0,0 @@
---- setup.py.orig	1970-01-01 00:00:00 UTC
-+++ setup.py
-@@ -8,10 +8,10 @@ package_data = \
- {'': ['*']}
- 
- install_requires = \
--['redis<4.5', 'sortedcontainers>=2.4.0,<3.0.0']
-+['redis<4.5', 'sortedcontainers>=2.3.0,<3.0.0']
- 
- extras_require = \
--{'aioredis': ['aioredis>=2.0.1,<3.0.0'], 'lua': ['lupa>=1.13,<2.0']}
-+{'aioredis': ['aioredis>=1.3.1,<3.0.0'], 'lua': ['lupa>=1.13,<2.0']}
- 
- setup_kwargs = {
-     'name': 'fakeredis',