freebsd-ports/archivers/py-lz4/Makefile
Kubilay Kocak 79b785672b archivers/py-lz4: Remove pytest-runner from BUILD_DEPENDS
pkg-fallout reports, after setuptools attempts to fetch pytest as a dependency:

distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('pytest<4.0.0,>=3.8.2')

pytest was recently updated to 4.x, which is presumably the root source of the
issue, but I wasn't able to identify the source of the pinned pytest version,
or why the fetch of pytest was attempted.

However, remove pytest-runner from BUILD_DEPENDS as a stop gap, since as
setup.py states:

# Only require pytest-runner if actually running the tests
needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)
pytest_runner = ['pytest-runner'] if needs_pytest else []

Further, since the port is using pythonX.Y -m pytest as the test invocation,
rather than pythonX.Y setup.py test, the dependency is spurious anyway.

Reported by: pkg-fallout
2019-04-02 12:35:25 +00:00

39 lines
1.1 KiB
Makefile

# $FreeBSD$
PORTNAME= lz4
PORTVERSION= 2.1.6
CATEGORIES= archivers python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= python@FreeBSD.org
COMMENT= Python binding for the LZ4 compression library
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= liblz4>=1.7.5:archivers/liblz4 \
${PYTHON_PKGNAMEPREFIX}pkgconfig>=0:devel/py-pkgconfig@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}setuptools_scm>0:devel/py-setuptools_scm@${PY_FLAVOR}
LIB_DEPENDS= liblz4.so:archivers/liblz4
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}psutil>=0:sysutils/py-psutil@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR}
USES= python
USE_PYTHON= distutils py3kplist
post-install:
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}/_version.so \
${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}/block/_block.so \
${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}/frame/_frame.so
do-test:
cd ${WRKSRC} && ${PYTHON_CMD} -m pytest
.include <bsd.port.pre.mk>
.if ${PYTHON_REL} < 3000
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}future>=0:devel/py-future@${PY_FLAVOR}
.endif
.include <bsd.port.post.mk>