git: b24a5b230220 - main - graphics/py-pandana: Allow build with py-tables 3.7.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sun, 23 Jan 2022 19:28:28 UTC
The branch main has been updated by sunpoet:

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

commit b24a5b230220d1266c81b2af8c50bac190d007e1
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-01-23 18:19:44 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-01-23 18:50:18 +0000

    graphics/py-pandana: Allow build with py-tables 3.7.0
    
    - Bump PORTREVISION for package change
---
 graphics/py-pandana/Makefile             |  3 ++-
 graphics/py-pandana/files/patch-setup.py | 11 +++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/graphics/py-pandana/Makefile b/graphics/py-pandana/Makefile
index 362ad0d161fa..dc59aaf11932 100644
--- a/graphics/py-pandana/Makefile
+++ b/graphics/py-pandana/Makefile
@@ -2,6 +2,7 @@
 
 PORTNAME=	pandana
 PORTVERSION=	0.6.1
+PORTREVISION=	1
 CATEGORIES=	graphics python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -18,7 +19,7 @@ RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}numpy>=1.8,1:math/py-numpy@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pandas>=0.17,1:math/py-pandas@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}requests>=2.0:www/py-requests@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}scikit-learn>=0.18:science/py-scikit-learn@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}tables>=3.1<3.7:devel/py-tables@${PY_FLAVOR}
+		${PYTHON_PKGNAMEPREFIX}tables>=3.1<3.8:devel/py-tables@${PY_FLAVOR}
 
 USES=		compiler:c++11-lang python:3.7+
 USE_PYTHON=	autoplist concurrent cython distutils
diff --git a/graphics/py-pandana/files/patch-setup.py b/graphics/py-pandana/files/patch-setup.py
new file mode 100644
index 000000000000..2425ffefde8c
--- /dev/null
+++ b/graphics/py-pandana/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig	2021-03-17 16:44:15 UTC
++++ setup.py
+@@ -151,7 +151,7 @@ setup(
+         'requests >=2.0',
+         'scikit-learn >=0.18',
+         'tables >=3.1, <3.6; python_version <"3.6"',
+-        'tables >=3.1, <3.7; python_version >="3.6"'
++        'tables >=3.1, <3.8; python_version >="3.6"'
+     ],
+     cmdclass={
+         'test': PyTest,