Date: Sat, 26 Jun 2021 08:44:18 GMT From: Matthias Andree <mandree@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 26800c785026 - main - graphics/py-pytesseract: 0.3.8 update, fix tests Message-ID: <202106260844.15Q8iI3Y014168@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by mandree: URL: https://cgit.FreeBSD.org/ports/commit/?id=26800c7850269d3480269d40dd841361c76a0a0e commit 26800c7850269d3480269d40dd841361c76a0a0e Author: Matthias Andree <mandree@FreeBSD.org> AuthorDate: 2021-06-26 08:37:40 +0000 Commit: Matthias Andree <mandree@FreeBSD.org> CommitDate: 2021-06-26 08:44:09 +0000 graphics/py-pytesseract: 0.3.8 update, fix tests - update to upstream release 0.3.8, switching to Github because PyPI (the "cheese shop") only carries 0.3.7 - restrict tests to the currently built Python flavor, else tox would try and run others it finds, inheriting possible test failures from other Python versions lacking some packages such as pillow or numpy in their install - test: add py-numpy to test requisites - test: add py-pandas to test requisites for Python >= 3.8 - test: add --sitepackages to tox invocation so that the tests find py-pillow. --- graphics/py-pytesseract/Makefile | 20 ++++++++++++++------ graphics/py-pytesseract/distinfo | 6 +++--- 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/graphics/py-pytesseract/Makefile b/graphics/py-pytesseract/Makefile index b94c50f882b8..537038b60783 100644 --- a/graphics/py-pytesseract/Makefile +++ b/graphics/py-pytesseract/Makefile @@ -1,8 +1,7 @@ PORTNAME= pytesseract -PORTVERSION= 0.3.7 -PORTREVISION= 1 +PORTVERSION= 0.3.8 +DISTVERSIONPREFIX= v CATEGORIES= graphics python -MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= mandree@FreeBSD.org @@ -13,15 +12,24 @@ LICENSE_FILE= ${WRKSRC}/LICENSE RUN_DEPENDS= tesseract:graphics/tesseract \ ${PYTHON_PKGNAMEPREFIX}pillow>0:graphics/py-pillow@${PY_FLAVOR} -TEST_DEPENDS= tesseract:graphics/tesseract \ +TEST_DEPENDS= ${RUN_DEPENDS} \ + ${PYNUMPY} \ ${PYTHON_PKGNAMEPREFIX}tox>0:devel/py-tox@${PY_FLAVOR} USES= localbase python:3.4+ +USE_GITHUB= yes +GH_ACCOUNT= madmaze USE_PYTHON= autoplist concurrent distutils NO_ARCH= yes do-test: - cd ${WRKSRC} && ${SETENV} ${TEST_ENV} tox + cd ${WRKSRC} && ${SETENV} ${TEST_ENV} tox -e ${PY_FLAVOR} --sitepackages -.include <bsd.port.mk> +.include <bsd.port.pre.mk> + +.if ${PYTHON_REL} >= 30800 +TEST_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}pandas>0:math/py-pandas@${PY_FLAVOR} +.endif + +.include <bsd.port.post.mk> diff --git a/graphics/py-pytesseract/distinfo b/graphics/py-pytesseract/distinfo index 89b8c53ece6e..37c7cb61cafe 100644 --- a/graphics/py-pytesseract/distinfo +++ b/graphics/py-pytesseract/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1621679287 -SHA256 (pytesseract-0.3.7.tar.gz) = 4ecfc898d00a70fcc38d2bce729de1597c67e7bc5d2fa26094714c9f5b573645 -SIZE (pytesseract-0.3.7.tar.gz) = 13715 +TIMESTAMP = 1624690353 +SHA256 (madmaze-pytesseract-v0.3.8_GH0.tar.gz) = 6b9b35a36ff5a82ab292b14882062931333687525a383d3fff8133e2e78fd73d +SIZE (madmaze-pytesseract-v0.3.8_GH0.tar.gz) = 964344
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202106260844.15Q8iI3Y014168>