Lines 1-28
Link Here
|
1 |
PORTNAME= websocket-client |
1 |
PORTNAME= websocket-client |
2 |
PORTVERSION= 0.58.0 |
2 |
PORTVERSION= 1.4.2 |
3 |
CATEGORIES= www python |
3 |
CATEGORIES= www python |
4 |
MASTER_SITES= CHEESESHOP |
4 |
MASTER_SITES= CHEESESHOP |
5 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
5 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
6 |
# Newer version is called "websocket_client" |
|
|
7 |
# but to keep compat with old portname we fixup |
8 |
# "-" to "_" here. |
9 |
DISTNAME= ${PORTNAME:S/-/_/g}-${DISTVERSION} |
10 |
|
6 |
|
11 |
MAINTAINER= alfred@FreeBSD.org |
7 |
MAINTAINER= alfred@FreeBSD.org |
12 |
COMMENT= Websocket client for python |
8 |
COMMENT= Websocket client for python |
13 |
WWW= https://github.com/websocket-client/websocket-client |
9 |
WWW= https://github.com/websocket-client/websocket-client |
14 |
|
10 |
|
15 |
LICENSE= BSD3CLAUSE |
11 |
LICENSE= APACHE20 |
16 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
12 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
17 |
|
13 |
|
18 |
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>=0:devel/py-six@${PY_FLAVOR} |
14 |
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} |
19 |
|
15 |
|
20 |
USES= python:3.6+ |
16 |
USES= python:3.7+ |
21 |
USE_PYTHON= distutils concurrent autoplist |
17 |
USE_PYTHON= distutils autoplist |
22 |
|
18 |
|
23 |
NO_ARCH= yes |
19 |
NO_ARCH= yes |
24 |
|
20 |
|
|
|
21 |
OPTIONS_DEFINE= OPTIONAL TEST |
22 |
OPTIONS_DEFAULT= OPTIONAL TEST |
23 |
OPTIONAL_DESC= SOCKS proxy support and performance boost |
24 |
TEST_DESC= Run unit tests using a local echo server |
25 |
|
26 |
OPTIONAL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}python-socks>0:net/py-python-socks@${PY_FLAVOR} \ |
27 |
${PYTHON_PKGNAMEPREFIX}wsaccel>0:www/py-wsaccel@${PY_FLAVOR} |
28 |
|
29 |
TEST_TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}websockets>0:devel/py-websockets@${PY_FLAVOR} |
30 |
|
31 |
.include <bsd.port.options.mk> |
32 |
|
33 |
.if ${PORT_OPTIONS:MTEST} |
34 |
TEST_ENV= LOCAL_WS_SERVER_PORT=8765 |
35 |
.endif |
36 |
|
25 |
do-test: |
37 |
do-test: |
26 |
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test |
38 |
.if ${PORT_OPTIONS:MTEST} |
|
|
39 |
@(cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} websocket/tests/echo-server.py &) |
40 |
.endif |
41 |
@(cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} pytest -v -ra) |
27 |
|
42 |
|
28 |
.include <bsd.port.mk> |
43 |
.include <bsd.port.mk> |