795e2d3041
- Update PORTVERSION and distinfo checksum (0.5.0) - Update RUN_DEPENDS - Add TEST_DEPENDS and do-test: target. Note, we disable test_integration* tests because they hang, and I don't yet know why. - Add test files that are not (yet [1]) included in the PyPI sdist Changes: (No repository tag for v0.5.0 [2]) https://github.com/Lukasa/hyper/blob/development/HISTORY.rst [1] https://github.com/Lukasa/hyper/issues/175 [2] https://github.com/Lukasa/hyper/issues/173
41 lines
1.2 KiB
Makefile
41 lines
1.2 KiB
Makefile
# Created by: Kubilay Kocak <koobs@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= hyper
|
|
PORTVERSION= 0.5.0
|
|
CATEGORIES= www python
|
|
MASTER_SITES= CHEESESHOP
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= koobs@FreeBSD.org
|
|
COMMENT= HTTP/2 Client for Python
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:${PORTSDIR}/devel/py-pytest \
|
|
${PYTHON_PKGNAMEPREFIX}requests>0:${PORTSDIR}/www/py-requests \
|
|
${PYTHON_PKGNAMEPREFIX}mock>0:${PORTSDIR}/devel/py-mock
|
|
|
|
USES= python
|
|
USE_PYTHON= autoplist distutils
|
|
|
|
NO_ARCH= yes
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${PYTHON_REL} == 3300 || (${PYTHON_VER} == 2.7 && ${PYTHON_REL} < 2709)
|
|
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}openssl>=0.14:${PORTSDIR}/security/py-openssl \
|
|
${PYTHON_PGNAMEPREFIX}service_identity>=14.0.0:${PORTSDIR}/security/py-service_identity
|
|
.endif
|
|
|
|
post-extract:
|
|
@${MKDIR} ${WRKSRC}/test/certs/
|
|
@${CP} ${FILESDIR}/files-server.py ${WRKSRC}/test/server.py
|
|
@${CP} ${FILESDIR}/files-server.key ${WRKSRC}/test/certs/server.key
|
|
@${CP} ${FILESDIR}/files-server.crt ${WRKSRC}/test/certs/server.crt
|
|
|
|
do-test:
|
|
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test --pytest-args "-k 'not test_integration'"
|
|
|
|
.include <bsd.port.post.mk>
|