head 1.8; access; symbols pkgsrc-2023Q4:1.8.0.10 pkgsrc-2023Q4-base:1.8 pkgsrc-2023Q3:1.8.0.8 pkgsrc-2023Q3-base:1.8 pkgsrc-2023Q2:1.8.0.6 pkgsrc-2023Q2-base:1.8 pkgsrc-2023Q1:1.8.0.4 pkgsrc-2023Q1-base:1.8 pkgsrc-2022Q4:1.8.0.2 pkgsrc-2022Q4-base:1.8 pkgsrc-2022Q3:1.7.0.6 pkgsrc-2022Q3-base:1.7 pkgsrc-2022Q2:1.7.0.4 pkgsrc-2022Q2-base:1.7 pkgsrc-2022Q1:1.7.0.2 pkgsrc-2022Q1-base:1.7 pkgsrc-2021Q4:1.6.0.10 pkgsrc-2021Q4-base:1.6 pkgsrc-2021Q3:1.6.0.8 pkgsrc-2021Q3-base:1.6 pkgsrc-2021Q2:1.6.0.6 pkgsrc-2021Q2-base:1.6 pkgsrc-2021Q1:1.6.0.4 pkgsrc-2021Q1-base:1.6 pkgsrc-2020Q4:1.6.0.2 pkgsrc-2020Q4-base:1.6 pkgsrc-2020Q3:1.5.0.6 pkgsrc-2020Q3-base:1.5 pkgsrc-2020Q2:1.5.0.4 pkgsrc-2020Q2-base:1.5 pkgsrc-2020Q1:1.5.0.2 pkgsrc-2020Q1-base:1.5 pkgsrc-2019Q4:1.4.0.8 pkgsrc-2019Q4-base:1.4 pkgsrc-2019Q3:1.4.0.4 pkgsrc-2019Q3-base:1.4 pkgsrc-2019Q2:1.4.0.2 pkgsrc-2019Q2-base:1.4 pkgsrc-2019Q1:1.2.0.10 pkgsrc-2019Q1-base:1.2 pkgsrc-2018Q4:1.2.0.8 pkgsrc-2018Q4-base:1.2 pkgsrc-2018Q3:1.2.0.6 pkgsrc-2018Q3-base:1.2 pkgsrc-2018Q2:1.2.0.4 pkgsrc-2018Q2-base:1.2 pkgsrc-2018Q1:1.2.0.2 pkgsrc-2018Q1-base:1.2; locks; strict; comment @# @; 1.8 date 2022.11.27.09.55.37; author adam; state Exp; branches; next 1.7; commitid V7JKL09S3kqtbk3E; 1.7 date 2022.01.04.20.55.38; author wiz; state Exp; branches; next 1.6; commitid CYyhdK9qtoffkmnD; 1.6 date 2020.12.19.11.50.04; author leot; state Exp; branches; next 1.5; commitid YyYAeoTho5vIzlAC; 1.5 date 2020.02.06.20.41.42; author adam; state Exp; branches; next 1.4; commitid zPv6WAK0BVdKHEVB; 1.4 date 2019.05.31.20.57.05; author adam; state Exp; branches; next 1.3; commitid PFoZ5abfgwIgRopB; 1.3 date 2019.04.07.15.58.32; author adam; state Exp; branches; next 1.2; commitid 3HLs9Xu9Q9HjWqiB; 1.2 date 2018.02.27.06.57.26; author adam; state Exp; branches; next 1.1; commitid X4PgIUueeqm5WssA; 1.1 date 2018.02.26.12.09.18; author leot; state Exp; branches; next ; commitid FUWaazdnvEHTGmsA; desc @@ 1.8 log @py-wsproto: updated to 1.2.0 1.2.0 (2022-08-23) ------------------ - Bugfix: When a close frame with status NO_STATUS_RCVD is sent, send and empty payload. - Bugfix: Changing both encoding and decoding of the Host, from ascii to idna. - Bugfix: Support multiple Sec-WebSocket-Extensions and Sec-WebSocket-Protocol headers. - Accept bytes alongside string as path argument in initiate_upgrade_connection. - Check the state when sending events, raising if the event cannot be sent in the current state. - Send an empty payload for NO_STATUS_RCVD. 1.1.0 (2022-02-27) ------------------ - Added support for Python 3.10. - Drop support for Python 3.6, meaning the minimum supported version is Python 3.7.0. - Various type checking and code linting improvements. @ text @# $NetBSD: Makefile,v 1.7 2022/01/04 20:55:38 wiz Exp $ DISTNAME= wsproto-1.2.0 PKGNAME= ${PYPKGPREFIX}-${DISTNAME} CATEGORIES= www python MASTER_SITES= ${MASTER_SITE_PYPI:=w/wsproto/} MAINTAINER= pkgsrc-users@@NetBSD.org HOMEPAGE= https://wsproto.readthedocs.io/ COMMENT= Pure Python, pure state-machine WebSocket implementation LICENSE= mit DEPENDS+= ${PYPKGPREFIX}-h11>=0.9.0:../../www/py-h11 TEST_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner USE_LANGUAGES= # none PYSETUPTESTTARGET= pytest PYTHON_VERSIONS_INCOMPATIBLE= 27 .include "../../lang/python/egg.mk" .include "../../mk/bsd.pkg.mk" @ 1.7 log @*: bump PKGREVISION for egg.mk users They now have a tool dependency on py-setuptools instead of a DEPENDS @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.6 2020/12/19 11:50:04 leot Exp $ d3 1 a3 1 DISTNAME= wsproto-1.0.0 a4 1 PKGREVISION= 1 @ 1.6 log @py-wsproto: Update to 1.0.0 Changes: 1.0.0 (2020-11-22) ------------------ - Prevent invalid window bit sizes. - Added support for Python 3.8 and 3.9. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.5 2020/02/06 20:41:42 adam Exp $ d5 1 @ 1.5 log @py-wsproto: updated to 0.15.0 0.15.0: * Drop support for Python 2. Please pin to ~= 0.14.0 if you support Python 2. * Drop support for Python 3.5, meaning the minimum supported version is Python 3.6.1. * Switch events to be dataclass based, otherwise the API is consistent. * Add type hints throughout and support PEP 561 via a py.typed file. This should allow projects that use wsproto to type check their usage of wsproto. * Bugfix prevent the test folder being installed as a package called test. * Explicitly require Host header in handshake. * Drop wsaccel support and utilise the aiohttp/@@willmcgugan masking method. wsaccel is unmaintained and this new maksing method is almost as quick. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.4 2019/05/31 20:57:05 adam Exp $ d3 1 a3 1 DISTNAME= wsproto-0.15.0 d13 1 a13 1 DEPENDS+= ${PYPKGPREFIX}-h11>=0.8.1:../../www/py-h11 @ 1.4 log @py-wsproto: updated to 0.14.1 0.14.1: * Loosen the h11 requirement to >= 0.8.1 as wsproto is compatible with 0.9 onwards. * Stop installing a "test" package on installation. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.3 2019/04/07 15:58:32 adam Exp $ d3 1 a3 1 DISTNAME= wsproto-0.14.1 d13 1 a13 1 DEPENDS+= ${PYPKGPREFIX}-h11>=0.7.0:../../www/py-h11 a15 5 .include "../../lang/python/pyversion.mk" .if ${_PYTHON_VERSION} == 27 DEPENDS+= ${PYPKGPREFIX}-enum34>=1.0.4:../../devel/py-enum34 .endif d20 2 @ 1.3 log @py-wsproto: updated to 0.14.0 0.14.0: * Bugfix clarify subprotocol type as str not bytes. * Support HTTP/2 WebSockets. This requires a HTTP/2 parser (not included), with hyper-h2 recommended. It renames handshake_extensions and hence is a breaking change. * Bugfix badly formatted type hints. * Bugfix minor issues identified by type checking. 0.13.0: * Introduce a send method on the conenction which accepts the new events. This requires the following usage changes, :: connection.accept(subprotocol=subprotocol) -> connection.send(AcceptConnection(subprotocol=subprotocol)) connection.send_data(data) -> connection.send(Message(payload=payload)) connection.close(code) -> connection.send(CloseConnection(code=code)) connection.ping() -> connection.send(Ping()) connection.pong() -> connection.send(Pong()) * The Event structure is altered to allow for events to be sent and received, this requires the following name changes in existing code, :: ConnectionRequested -> Request ConnectionEstablished -> AcceptConnection ConnectionClosed -> CloseConnection DataReceived -> Message TextReceived -> TextMessage BytesReceived -> BytesMessage PingReceived -> Ping PongReceived -> Pong * Introduce RejectConnection and RejectData events to be used by a server connection to reject rather than accept a connection or by a client connection to emit the rejection response. The RejectData event represents the rejection response body, if present. * Add an extra_headers field to the AcceptConnection event in order to customise the acceptance response in server mode or to emit this information in client mode. * Switch from Fail events being returned to RemoteProtocolErrors being raised. * Switch from ValueErrors to LocalProtocolErrors being raised when an action is taken that is incompatible with the connection state or websocket standard. * Enforce version checking in SERVER mode, only 13 is supported. * Add an event_hint to RemoteProtocolErrors to hint at how to respond to issues. * Switch from a bytes_to_send method to the send method returning the bytes to send directly. Responses to Ping and Close messages must now be sent (via send), with the Ping and CloseConnection events gaining a response method. This allows :: if isinstance(event, Ping): bytes_to_send = connection.send(event.response()) * Separate the handshake from the active connection handling. This allows the handshake and connection to be seperately used. By default though WSConnection does both. * receive_bytes is renamed to receive_data and WSConnection should be imported from wsproto rather than wsproto.connection. 0.12.0: * Support h11 ~0.8.1. * Support Python 3.7. * Make the close-handshake more explicit, by sending a close frame on reciept of a close frame. * Bugfix fix deflate after a non-compressable message. * Bugfix connection header acceptance, by accepting Connection header values that are comma separated lists. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.2 2018/02/27 06:57:26 adam Exp $ d3 1 a3 1 DISTNAME= wsproto-0.14.0 @ 1.2 log @Added "python" to CATEGORIES @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.1 2018/02/26 12:09:18 leot Exp $ d3 1 a3 1 DISTNAME= wsproto-0.11.0 d14 1 d17 1 a17 2 .if "${PYPKGPREFIX}" == "py27" d23 2 @ 1.1 log @py-wsproto: Import py-wsproto-0.11.0 as www/py-wsproto Pure-Python implementation of a WebSocket protocol stack. It's written from the ground up to be embeddable in whatever program you choose to use, ensuring that you can communicate via WebSockets, as defined in RFC6455, regardless of your programming paradigm. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.5 2017/06/21 09:57:57 adam Exp $ d5 1 a5 1 CATEGORIES= www @