Skip to content

Commit da3252d

Browse files
committed
towards v1
ref #114
1 parent 2082563 commit da3252d

File tree

3 files changed

+74
-63
lines changed

3 files changed

+74
-63
lines changed

CHANGELOG.rst

Lines changed: 69 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,55 @@
1-
0.15.0 2019-08-10
2-
-----------------
1+
Release History
2+
===============
33

4-
*This contains all the Bugfixes in the 0.14 branch.*
4+
1.0.0+dev
5+
---------
56

6-
* Drop support for Python 2. Please pin to ~= 0.14.0 if you support
7+
- Prevent invalid window bit sizes.
8+
- Added support for Python 3.8.
9+
10+
11+
0.15.0 (2019-08-10)
12+
-------------------
13+
14+
**This contains all the Bugfixes in the 0.14 branch.**
15+
16+
- Drop support for Python 2. Please pin to ~= 0.14.0 if you support
717
Python 2.
8-
* Drop support for Python 3.5, meaning the minimum supported version
18+
- Drop support for Python 3.5, meaning the minimum supported version
919
is Python 3.6.1.
10-
* Switch events to be dataclass based, otherwise the API is
20+
- Switch events to be dataclass based, otherwise the API is
1121
consistent.
12-
* Add type hints throughout and support PEP 561 via a py.typed
22+
- Add type hints throughout and support PEP 561 via a py.typed
1323
file. This should allow projects that use wsproto to type check their
1424
usage of wsproto.
15-
* Bugfix prevent the test folder being installed as a package called
25+
- Bugfix prevent the test folder being installed as a package called
1626
test.
17-
* Explicitly require Host header in handshake.
18-
* Drop wsaccel support and utilise the aiohttp/@willmcgugan masking
19-
method. wsaccel is unmaintained and this new maksing method is
27+
- Explicitly require Host header in handshake.
28+
- Drop wsaccel support and utilise the aiohttp/@willmcgugan masking
29+
method. wsaccel is unmaintained and this new masking method is
2030
almost as quick.
2131

22-
0.14.1 2019-05-30
23-
-----------------
32+
0.14.1 (2019-05-30)
33+
-------------------
2434

25-
* Loosen the h11 requirement to >= 0.8.1 as wsproto is compatible with
35+
- Loosen the h11 requirement to >= 0.8.1 as wsproto is compatible with
2636
0.9 onwards.
27-
* Stop installing a "test" package on installation.
37+
- Stop installing a "test" package on installation.
2838

29-
0.14.0 2019-04-06
30-
-----------------
39+
0.14.0 (2019-04-06)
40+
-------------------
3141

32-
* Bugfix clarify subprotocol type as str not bytes.
33-
* Support HTTP/2 WebSockets. This requires a HTTP/2 parser (not
42+
- Bugfix clarify subprotocol type as str not bytes.
43+
- Support HTTP/2 WebSockets. This requires a HTTP/2 parser (not
3444
included), with hyper-h2 recommended. It renames
3545
``handshake_extensions`` and hence is a breaking change.
36-
* Bugfix badly formatted type hints.
37-
* Bugfix minor issues identified by type checking.
46+
- Bugfix badly formatted type hints.
47+
- Bugfix minor issues identified by type checking.
3848

39-
0.13.0 2019-01-24
40-
-----------------
49+
0.13.0 (2019-01-24)
50+
-------------------
4151

42-
* Introduce a send method on the connection which accepts the new
52+
- Introduce a send method on the connection which accepts the new
4353
events. This requires the following usage changes, ::
4454

4555
connection.accept(subprotocol=subprotocol) -> connection.send(AcceptConnection(subprotocol=subprotocol))
@@ -48,7 +58,7 @@
4858
connection.ping() -> connection.send(Ping())
4959
connection.pong() -> connection.send(Pong())
5060

51-
* The Event structure is altered to allow for events to be sent and
61+
- The Event structure is altered to allow for events to be sent and
5262
received, this requires the following name changes in existing code, ::
5363

5464
ConnectionRequested -> Request
@@ -60,66 +70,67 @@
6070
PingReceived -> Ping
6171
PongReceived -> Pong
6272

63-
* Introduce RejectConnection and RejectData events to be used by a
73+
- Introduce RejectConnection and RejectData events to be used by a
6474
server connection to reject rather than accept a connection or by a
6575
client connection to emit the rejection response. The RejectData
6676
event represents the rejection response body, if present.
67-
* Add an extra_headers field to the AcceptConnection event in order to
77+
- Add an extra_headers field to the AcceptConnection event in order to
6878
customise the acceptance response in server mode or to emit this
6979
information in client mode.
70-
* Switch from Fail events being returned to RemoteProtocolError`s being
71-
raised.
72-
* Switch from ValueError`s to LocalProtocolError`s being raised when
80+
- Switch from Fail events being returned to raising ``RemoteProtocolError``.
81+
- Switch from ValueError`s to LocalProtocolError`s being raised when
7382
an action is taken that is incompatible with the connection state or
7483
websocket standard.
75-
* Enforce version checking in SERVER mode, only 13 is supported.
76-
* Add an event_hint to RemoteProtocolErrors to hint at how to respond
84+
- Enforce version checking in SERVER mode, only 13 is supported.
85+
- Add an event_hint to RemoteProtocolErrors to hint at how to respond
7786
to issues.
78-
* Switch from a ``bytes_to_send`` method to the ``send`` method
87+
- Switch from a ``bytes_to_send`` method to the ``send`` method
7988
returning the bytes to send directly. Responses to Ping and Close
8089
messages must now be sent (via ``send``), with the ``Ping`` and
8190
``CloseConnection`` events gaining a ``response`` method. This
8291
allows ::
8392

8493
if isinstance(event, Ping):
8594
bytes_to_send = connection.send(event.response())
86-
* Separate the handshake from the active connection handling. This
95+
- Separate the handshake from the active connection handling. This
8796
allows the handshake and connection to be seperately used. By
8897
default though WSConnection does both.
89-
* ``receive_bytes`` is renamed to ``receive_data`` and
98+
- ``receive_bytes`` is renamed to ``receive_data`` and
9099
``WSConnection`` should be imported from ``wsproto`` rather than
91100
``wsproto.connection``.
92101

93-
0.12.0 2018-09-23
94-
-----------------
102+
0.12.0 (2018-09-23)
103+
-------------------
95104

96-
* Support h11 ~0.8.1.
97-
* Support Python 3.7.
98-
* Make the close-handshake more explicit, by sending a close frame on
105+
- Support h11 ~0.8.1.
106+
- Support Python 3.7.
107+
- Make the close-handshake more explicit, by sending a close frame on
99108
reciept of a close frame.
100-
* Bugfix fix deflate after a non-compressable message.
101-
* Bugfix connection header acceptance, by accepting Connection header
109+
- Bugfix fix deflate after a non-compressable message.
110+
- Bugfix connection header acceptance, by accepting Connection header
102111
values that are comma separated lists.
103112

104-
0.11.0 2017-12-31
105-
-----------------
113+
0.11.0 (2017-12-31)
114+
-------------------
115+
116+
- Separate extension handling into its own method.
117+
- Add events for PING and PONG frames.
118+
- Stop supporting Python 3.4.
119+
- Large increase in tests and test coverage.
120+
- Bugfix extension accept for empty strings.
121+
- Bugfix raise if default arguments are invalid.
106122

107-
* Separate extension handling into its own method.
108-
* Add events for PING and PONG frames.
109-
* Stop supporting Python 3.4.
110-
* Large increase in tests and test coverage.
111-
* Bugfix extension accept for empty strings.
112-
* Bugfix raise if default arguments are invalid.
123+
0.10.0 (2017-05-03)
124+
-------------------
113125

114-
0.10.0 2017-05-03
115-
-----------------
126+
- General improvements.
116127

117-
0.9.1 2016-10-27
118-
----------------
128+
0.9.1 (2016-10-27)
129+
------------------
119130

120-
(Unreleased on PyPI)
131+
- (unreleased on PyPI)
121132

122-
0.9.0 2016-08-24
123-
----------------
133+
0.9.0 (2016-08-24)
134+
------------------
124135

125-
(First release on PyPI)
136+
- First release on PyPI.

setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@
3232
version=version,
3333
description='WebSockets state-machine based protocol implementation',
3434
long_description=long_description,
35-
long_description_content_type="text/x-rst",
35+
long_description_content_type='text/x-rst',
3636
author='Benno Rice',
3737
author_email='[email protected]',
3838
url='https://github.com/python-hyper/wsproto/',
3939
packages=find_packages(where="src"),
4040
package_data={'': ['LICENSE', 'README.rst', 'CHANGELOG.rst']},
41-
package_dir={"": "src"},
42-
python_requires=">=3.6.1",
41+
package_dir={'': 'src'},
42+
python_requires='>=3.6.1',
4343
include_package_data=True,
4444
license='MIT License',
4545
classifiers=[
@@ -56,6 +56,6 @@
5656
],
5757
install_requires=[
5858
"dataclasses ; python_version < '3.7'",
59-
'h11 >= 0.8.1',
59+
'h11>=0.9.0,<1',
6060
],
6161
)

src/wsproto/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from .handshake import H11Handshake
1313
from .typing import Headers
1414

15-
__version__ = "0.15.0+dev"
15+
__version__ = "1.0.0+dev"
1616

1717

1818
class WSConnection:

0 commit comments

Comments
 (0)