Skip to content

Commit

Permalink
devel/py-reedsolo: Allow build with Python 3.10+
Browse files Browse the repository at this point in the history
- Regenerate creedsolo.c with Cython, which fixes
  build error with Python 3.10+

- Switched Nose to Pytest, for the nosetests issue [0]

[0]: nose-devs/nose#1124

PR:		267882
Reported by:	teodorsigaev@gmail.com
MFH:		2022Q4 (build fix)
  • Loading branch information
loader-bsd committed Nov 22, 2022
1 parent fb0f43d commit c3aa37c
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions devel/py-reedsolo/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
PORTNAME= reedsolo
DISTVERSIONPREFIX= v
DISTVERSION= 1.5.4
PORTREVISION= 1
CATEGORIES= devel python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}

Expand All @@ -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>

0 comments on commit c3aa37c

Please sign in to comment.