git: 46b64225b9cd - main - devel/pytype: Update to 2023.5.8

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sat, 27 May 2023 04:25:44 UTC
The branch main has been updated by sunpoet:

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

commit 46b64225b9cdabfed4b58c620a9248f05b482528
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-05-27 04:07:16 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-05-27 04:07:16 +0000

    devel/pytype: Update to 2023.5.8
    
    - Convert to USE_PYTHON=pep517
    
    Changes:        https://github.com/google/pytype/blob/main/CHANGELOG
---
 devel/pytype/Makefile                   | 19 +++++++++----------
 devel/pytype/distinfo                   |  6 +++---
 devel/pytype/files/patch-pyproject.toml | 16 ++++++++++++++++
 devel/pytype/files/patch-setup.cfg      | 10 +++-------
 4 files changed, 31 insertions(+), 20 deletions(-)

diff --git a/devel/pytype/Makefile b/devel/pytype/Makefile
index 91edf7af984a..5017c29ff028 100644
--- a/devel/pytype/Makefile
+++ b/devel/pytype/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	pytype
-PORTVERSION=	2023.2.17
-PORTREVISION=	1
+PORTVERSION=	2023.5.8
 CATEGORIES=	devel python
 MASTER_SITES=	PYPI
 PKGNAMESUFFIX=	${PYTHON_PKGNAMESUFFIX}
@@ -12,20 +11,25 @@ WWW=		https://google.github.io/pytype/
 LICENSE=	APACHE20
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pybind11>=0:devel/py-pybind11@${PY_FLAVOR}
+BUILD_DEPENDS=	ninja:devel/ninja \
+		${PYTHON_PKGNAMEPREFIX}pybind11>=2.10.1:devel/py-pybind11@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}setuptools>=40.8.0:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
 RUN_DEPENDS=	ninja>=1.10.2:devel/ninja \
 		${PYTHON_PKGNAMEPREFIX}attrs>=21.4.0:devel/py-attrs@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}importlab>=0.8:devel/py-importlab@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}Jinja2>=3.1.2:devel/py-Jinja2@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}libcst>=0.4.9:devel/py-libcst@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}networkx>=2.8.5:math/py-networkx@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}networkx>=0,1<3.2,1:math/py-networkx@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pydot>=1.4.2:graphics/py-pydot@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}tabulate>=0.8.9:devel/py-tabulate@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}toml>=0.10.2:textproc/py-toml@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.3.0:devel/py-typing-extensions@${PY_FLAVOR}
 
 USES=		compiler:c++11-lang python:3.7+
-USE_PYTHON=	autoplist concurrent distutils
+USE_PYTHON=	autoplist concurrent pep517 pytest
+
+TEST_ENV=	PYTHONPATH=${STAGEDIR}${PYTHON_SITELIBDIR}
 
 .include <bsd.port.pre.mk>
 
@@ -34,12 +38,7 @@ RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}typed-ast>=1.5.0:devel/py-typed-ast@${PY_FL
 .endif
 
 post-patch:
-	@${RM} ${WRKSRC}/pytype/tools/merge_pyi/test_data/packed_tuple.py
-	@${RM} ${WRKSRC}/pytype/tools/merge_pyi/test_data/packed_tuple.comment.py
-	@${RM} ${WRKSRC}/pytype/tools/merge_pyi/test_data/packed_tuple.pep484.py
 	@${RM} ${WRKSRC}/pytype/tools/merge_pyi/test_data/parse_error.py
-	@${RM} ${WRKSRC}/pytype/tools/merge_pyi/test_data/pyi_variations.comment.py
-	@${RM} ${WRKSRC}/pytype/tools/merge_pyi/test_data/simple_defaults.py
 
 post-install:
 	${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +
diff --git a/devel/pytype/distinfo b/devel/pytype/distinfo
index 6909de01c625..163d194b01fd 100644
--- a/devel/pytype/distinfo
+++ b/devel/pytype/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1677771015
-SHA256 (pytype-2023.2.17.tar.gz) = 18b61a630c9eba9d8716fce21f280666ac28a0909af7a796c9b2c1dc97337ce6
-SIZE (pytype-2023.2.17.tar.gz) = 2237000
+TIMESTAMP = 1684104320
+SHA256 (pytype-2023.5.8.tar.gz) = 69bd26d3b0599acb7ebf4867db3f22239f8a7e4c58c8f9839b75b99216360d40
+SIZE (pytype-2023.5.8.tar.gz) = 2896810
diff --git a/devel/pytype/files/patch-pyproject.toml b/devel/pytype/files/patch-pyproject.toml
new file mode 100644
index 000000000000..4e5d567d6c7a
--- /dev/null
+++ b/devel/pytype/files/patch-pyproject.toml
@@ -0,0 +1,16 @@
+--- pyproject.toml.orig	2023-01-05 03:33:54 UTC
++++ pyproject.toml
+@@ -1,5 +1,5 @@
+ [build-system]
+-requires = ["setuptools>=40.8.0", "ninja", "wheel", "pybind11>=2.10.1"]
++requires = ["setuptools>=40.8.0", "wheel", "pybind11>=2.10.1"]
+ build-backend = "setuptools.build_meta"
+ 
+ [tool.pytype]
+@@ -19,4 +19,4 @@ exclude = [
+     "**/*_test_*.py",
+     "pytype/tools/merge_pyi/test_data/",
+     "pytype/tools/xref/testdata/",
+-]
+\ No newline at end of file
++]
diff --git a/devel/pytype/files/patch-setup.cfg b/devel/pytype/files/patch-setup.cfg
index b6c46cfed910..11f02eeaca41 100644
--- a/devel/pytype/files/patch-setup.cfg
+++ b/devel/pytype/files/patch-setup.cfg
@@ -1,11 +1,7 @@
---- setup.cfg.orig	2023-02-17 23:14:02 UTC
+--- setup.cfg.orig	2023-04-27 23:35:51 UTC
 +++ setup.cfg
-@@ -34,10 +34,10 @@ install_requires = 
- 	importlab>=0.8
- 	jinja2>=3.1.2
- 	libcst>=0.4.9
--	networkx<2.8.4
-+	networkx>=2.8.5
+@@ -37,7 +37,7 @@ install_requires = 
+ 	networkx<3.2
  	ninja>=1.10.0.post2
  	pydot>=1.4.2
 -	tabulate>=0.8.10