git: c3aa37c126e2 - main - devel/py-reedsolo: Allow build with Python 3.10+
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 22 Nov 2022 12:14:46 UTC
The branch main has been updated by loader:
URL: https://cgit.FreeBSD.org/ports/commit/?id=c3aa37c126e21308f0e21947d96ff8b0e85e0fa8
commit c3aa37c126e21308f0e21947d96ff8b0e85e0fa8
Author: Fukang Chen <loader@FreeBSD.org>
AuthorDate: 2022-11-22 11:37:54 +0000
Commit: Fukang Chen <loader@FreeBSD.org>
CommitDate: 2022-11-22 12:13:30 +0000
devel/py-reedsolo: Allow build with Python 3.10+
- Regenerate creedsolo.c with Cython, which fixes
build error with Python 3.10+
- Switched Nose to Pytest, for the nosetests issue [0]
[0]: https://github.com/nose-devs/nose/issues/1124
PR: 267882
Reported by: teodorsigaev@gmail.com
MFH: 2022Q4 (build fix)
---
devel/py-reedsolo/Makefile | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/devel/py-reedsolo/Makefile b/devel/py-reedsolo/Makefile
index bf656e565d8a..116fecf93d35 100644
--- a/devel/py-reedsolo/Makefile
+++ b/devel/py-reedsolo/Makefile
@@ -1,6 +1,7 @@
PORTNAME= reedsolo
DISTVERSIONPREFIX= v
DISTVERSION= 1.5.4
+PORTREVISION= 1
CATEGORIES= devel python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -11,19 +12,16 @@ WWW= https://github.com/tomerfiliba/reedsolomon
LICENSE= PD
LICENSE_FILE= ${WRKSRC}/LICENSE
-TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>=0:devel/py-nose@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}coverage>=0:devel/py-coverage@${PY_FLAVOR}
-
-USES= python:3.6-3.9
+USES= python:3.6+
USE_GITHUB= yes
-USE_PYTHON= autoplist cython distutils
+USE_PYTHON= autoplist cython distutils pytest
GH_ACCOUNT= tomerfiliba
GH_PROJECT= reedsolomon
TEST_ENV+= PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
-do-test:
- @cd ${TEST_WRKSRC} && \
- ${SETENV} ${TEST_ENV} nosetests-${PYTHON_VER} --with-coverage -d -v
+# PR 267882: regenerate creedsolo.c with Cython
+post-patch:
+ @${RM} ${WRKSRC}/creedsolo.c
.include <bsd.port.mk>