Skip to content

Commit 15e5189

Browse files
committed
drop 3.7, add mypy, type annotations, fix tests, etc
1 parent 5d12066 commit 15e5189

File tree

9 files changed

+179
-90
lines changed

9 files changed

+179
-90
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
os: [ubuntu-latest]
1515
# latest pylint/astroid doesn't support 3.7
1616
# python3.7 is covered in build_and_test_old_deps
17-
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13-dev']
17+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
1818

1919
steps:
2020
- uses: actions/checkout@v3
@@ -33,7 +33,7 @@ jobs:
3333
strategy:
3434
matrix:
3535
os: [ubuntu-latest]
36-
python-version: ['3.7']
36+
python-version: ['3.8']
3737

3838
steps:
3939
- uses: actions/checkout@v3
@@ -73,7 +73,7 @@ jobs:
7373
strategy:
7474
matrix:
7575
os: [ubuntu-latest]
76-
python-version: ['3.12-dev']
76+
python-version: ['3.13-dev']
7777
steps:
7878
- uses: actions/checkout@v3
7979
- name: Setup Python

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ docs:
88
$(MAKE) -C docs html
99

1010
test:
11-
$(PYTHON) -m pytest --cov=trio_websocket --no-cov-on-fail
11+
$(PYTHON) -m pytest --cov=trio_websocket --cov-report=term-missing --no-cov-on-fail
1212

1313
lint:
1414
$(PYTHON) -m pylint trio_websocket/ tests/ autobahn/ examples/
15+
$(PYTHON) -m mypy trio_websocket tests autobahn examples
1516

1617
publish:
1718
rm -fr build dist .egg trio_websocket.egg-info

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ available here](https://trio-websocket.readthedocs.io).
1717
![Python Versions](https://img.shields.io/pypi/pyversions/trio-websocket.svg?style=flat-square)
1818
[![Build Status](https://img.shields.io/github/actions/workflow/status/python-trio/trio-websocket/ci.yml)](https://github.com/python-trio/trio-websocket/actions/workflows/ci.yml)
1919
[![Read the Docs](https://img.shields.io/readthedocs/trio-websocket.svg)](https://trio-websocket.readthedocs.io)
20+
[![Join chatroom](https://img.shields.io/badge/chat-join%20now-blue.svg)](https://gitter.im/python-trio/general)
21+
22+
## Status
23+
**This project is on life-support maintenance.** If you're interested in helping to maintain and contribute, please reach out on [Gitter](https://gitter.im/python-trio/general) or contribute in issues and pull requests.
2024

2125
## Alternatives
2226

requirements-dev-full.txt

Lines changed: 100 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,158 +1,180 @@
11
#
2-
# This file is autogenerated by pip-compile with Python 3.11
2+
# This file is autogenerated by pip-compile with Python 3.8
33
# by the following command:
44
#
5-
# pip-compile --output-file=requirements-dev-full.txt --resolver=backtracking requirements-dev.in requirements-extras.in setup.py
5+
# pip-compile --output-file=requirements-dev-full.txt requirements-dev.in requirements-extras.in setup.py
66
#
77
alabaster==0.7.13
88
# via sphinx
9-
astroid==3.0.0
9+
astroid==3.2.2
1010
# via pylint
11-
attrs==22.2.0
11+
attrs==23.2.0
1212
# via
1313
# -r requirements-dev.in
1414
# outcome
1515
# trio
16-
babel==2.12.1
16+
babel==2.15.0
1717
# via sphinx
18-
bleach==6.0.0
19-
# via readme-renderer
20-
build==0.10.0
18+
backports-tarfile==1.2.0
19+
# via jaraco-context
20+
build==1.2.1
2121
# via pip-tools
22-
certifi==2022.12.7
22+
certifi==2024.6.2
2323
# via requests
24-
cffi==1.15.1
24+
cffi==1.16.0
2525
# via cryptography
26-
charset-normalizer==3.1.0
26+
charset-normalizer==3.3.2
2727
# via requests
28-
click==8.1.3
28+
click==8.1.7
2929
# via pip-tools
30-
coverage[toml]==7.2.1
31-
# via
32-
# coverage
33-
# pytest-cov
34-
cryptography==39.0.2
30+
coverage[toml]==7.5.3
31+
# via pytest-cov
32+
cryptography==42.0.8
3533
# via
3634
# secretstorage
3735
# trustme
38-
dill==0.3.7
36+
dill==0.3.8
3937
# via pylint
40-
docutils==0.18.1
38+
docutils==0.20.1
4139
# via
4240
# readme-renderer
4341
# sphinx
4442
# sphinx-rtd-theme
43+
exceptiongroup==1.2.1 ; python_version < "3.11"
44+
# via
45+
# pytest
46+
# trio
47+
# trio-websocket (setup.py)
4548
h11==0.14.0
4649
# via wsproto
47-
idna==3.4
50+
idna==3.7
4851
# via
4952
# requests
5053
# trio
5154
# trustme
5255
imagesize==1.4.1
5356
# via sphinx
54-
importlib-metadata==6.0.0
57+
importlib-metadata==7.1.0
5558
# via
59+
# build
5660
# keyring
61+
# sphinx
5762
# twine
63+
importlib-resources==6.4.0
64+
# via keyring
5865
iniconfig==2.0.0
5966
# via pytest
60-
isort==5.11.5
67+
isort==5.13.2
6168
# via pylint
62-
jaraco-classes==3.2.3
69+
jaraco-classes==3.4.0
70+
# via keyring
71+
jaraco-context==5.3.0
72+
# via keyring
73+
jaraco-functools==4.0.1
6374
# via keyring
6475
jeepney==0.8.0
6576
# via
6677
# keyring
6778
# secretstorage
68-
jinja2==3.1.2
79+
jinja2==3.1.4
6980
# via sphinx
70-
keyring==23.13.1
81+
keyring==25.2.1
7182
# via twine
72-
markdown-it-py==2.2.0
83+
markdown-it-py==3.0.0
7384
# via rich
74-
markupsafe==2.1.2
85+
markupsafe==2.1.5
7586
# via jinja2
7687
mccabe==0.7.0
7788
# via pylint
7889
mdurl==0.1.2
7990
# via markdown-it-py
80-
more-itertools==9.1.0
81-
# via jaraco-classes
82-
outcome==1.2.0
91+
more-itertools==10.2.0
92+
# via
93+
# jaraco-classes
94+
# jaraco-functools
95+
mypy==1.10.0
96+
# via -r requirements-extras.in
97+
mypy-extensions==1.0.0
98+
# via mypy
99+
nh3==0.2.17
100+
# via readme-renderer
101+
outcome==1.3.0.post0
83102
# via
84103
# pytest-trio
85104
# trio
86-
packaging==23.0
105+
packaging==24.1
87106
# via
88107
# build
89108
# pytest
90109
# sphinx
91-
pip-tools==6.14.0
110+
pip-tools==7.4.1
92111
# via -r requirements-dev.in
93-
pkginfo==1.9.6
112+
pkginfo==1.11.1
94113
# via twine
95-
platformdirs==3.1.1
114+
platformdirs==4.2.2
96115
# via pylint
97-
pluggy==1.0.0
116+
pluggy==1.5.0
98117
# via pytest
99-
pycparser==2.21
118+
pycparser==2.22
100119
# via cffi
101-
pygments==2.14.0
120+
pygments==2.18.0
102121
# via
103122
# readme-renderer
104123
# rich
105124
# sphinx
106-
pylint==3.0.0a7
125+
pylint==3.2.3
107126
# via -r requirements-extras.in
108-
pyproject-hooks==1.0.0
109-
# via build
110-
pytest==7.4.2
127+
pyproject-hooks==1.1.0
128+
# via
129+
# build
130+
# pip-tools
131+
pytest==8.2.2
111132
# via
112133
# -r requirements-dev.in
113134
# pytest-cov
114135
# pytest-trio
115-
pytest-cov==4.0.0
136+
pytest-cov==5.0.0
116137
# via -r requirements-dev.in
117138
pytest-trio==0.8.0
118139
# via -r requirements-dev.in
119-
readme-renderer==37.3
140+
pytz==2024.1
141+
# via babel
142+
readme-renderer==43.0
120143
# via twine
121-
requests==2.28.2
144+
requests==2.32.3
122145
# via
123146
# requests-toolbelt
124147
# sphinx
125148
# twine
126-
requests-toolbelt==0.10.1
149+
requests-toolbelt==1.0.0
127150
# via twine
128151
rfc3986==2.0.0
129152
# via twine
130-
rich==13.3.2
153+
rich==13.7.1
131154
# via twine
132155
secretstorage==3.3.3
133156
# via keyring
134-
six==1.16.0
135-
# via bleach
136-
sniffio==1.3.0
157+
sniffio==1.3.1
137158
# via trio
138159
snowballstemmer==2.2.0
139160
# via sphinx
140161
sortedcontainers==2.4.0
141162
# via trio
142-
sphinx==5.3.0
163+
sphinx==7.1.2
143164
# via
144165
# -r requirements-extras.in
145166
# sphinx-rtd-theme
167+
# sphinxcontrib-jquery
146168
# sphinxcontrib-trio
147-
sphinx-rtd-theme==1.2.0
169+
sphinx-rtd-theme==2.0.0
148170
# via -r requirements-extras.in
149-
sphinxcontrib-applehelp==1.0.2
171+
sphinxcontrib-applehelp==1.0.4
150172
# via sphinx
151173
sphinxcontrib-devhelp==1.0.2
152174
# via sphinx
153-
sphinxcontrib-htmlhelp==2.0.0
175+
sphinxcontrib-htmlhelp==2.0.1
154176
# via sphinx
155-
sphinxcontrib-jquery==2.0.0
177+
sphinxcontrib-jquery==4.1
156178
# via sphinx-rtd-theme
157179
sphinxcontrib-jsmath==1.0.1
158180
# via sphinx
@@ -162,28 +184,42 @@ sphinxcontrib-serializinghtml==1.1.5
162184
# via sphinx
163185
sphinxcontrib-trio==1.1.2
164186
# via -r requirements-extras.in
165-
tomlkit==0.11.6
187+
tomli==2.0.1
188+
# via
189+
# build
190+
# coverage
191+
# mypy
192+
# pip-tools
193+
# pylint
194+
# pytest
195+
tomlkit==0.12.5
166196
# via pylint
167-
trio==0.24.0
197+
trio==0.25.1
168198
# via
169199
# pytest-trio
170200
# trio-websocket (setup.py)
171-
trustme==0.9.0
201+
trustme==1.1.0
172202
# via -r requirements-dev.in
173-
twine==4.0.2
203+
twine==5.1.0
174204
# via -r requirements-extras.in
175-
urllib3==1.26.15
205+
typing-extensions==4.12.2
206+
# via
207+
# astroid
208+
# mypy
209+
# pylint
210+
# rich
211+
urllib3==2.2.1
176212
# via
177213
# requests
178214
# twine
179-
webencodings==0.5.1
180-
# via bleach
181-
wheel==0.38.4
215+
wheel==0.43.0
182216
# via pip-tools
183217
wsproto==1.2.0
184218
# via trio-websocket (setup.py)
185-
zipp==3.15.0
186-
# via importlib-metadata
219+
zipp==3.19.2
220+
# via
221+
# importlib-metadata
222+
# importlib-resources
187223

188224
# The following packages are considered to be unsafe in a requirements file:
189225
# pip

0 commit comments

Comments
 (0)