Skip to content

Commit cd03749

Browse files
committed
Upgrade Python dependencies
1 parent b305243 commit cd03749

File tree

4 files changed

+50
-45
lines changed

4 files changed

+50
-45
lines changed

requirements/dev.txt

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -10,51 +10,52 @@ appdirs==1.4.4
1010
# via virtualenv
1111
atomicwrites==1.4.0
1212
# via pytest
13-
attrs==20.3.0
13+
attrs==21.2.0
1414
# via pytest
15-
babel==2.9.0
15+
babel==2.9.1
1616
# via sphinx
17-
certifi==2020.12.5
17+
certifi==2021.5.30
1818
# via requests
19-
cfgv==3.2.0
19+
cfgv==3.3.0
2020
# via pre-commit
2121
chardet==4.0.0
2222
# via requests
23-
click==7.1.2
23+
click==8.0.1
2424
# via pip-tools
2525
colorama==0.4.4
2626
# via
27+
# click
2728
# pytest
2829
# sphinx
2930
# sphinx-autobuild
3031
# tox
31-
distlib==0.3.1
32+
distlib==0.3.2
3233
# via virtualenv
33-
docutils==0.16
34+
docutils==0.17.1
3435
# via sphinx
3536
filelock==3.0.12
3637
# via
3738
# tox
3839
# virtualenv
39-
flake8==3.9.0
40+
flake8==3.9.2
4041
# via -r .\requirements\dev.in
41-
identify==2.2.0
42+
identify==2.2.9
4243
# via pre-commit
4344
idna==2.10
4445
# via requests
4546
imagesize==1.2.0
4647
# via sphinx
4748
iniconfig==1.1.1
4849
# via pytest
49-
jinja2==2.11.3
50+
jinja2==3.0.1
5051
# via sphinx
5152
livereload==2.6.3
5253
# via sphinx-autobuild
53-
markupsafe==1.1.1
54+
markupsafe==2.0.1
5455
# via jinja2
5556
mccabe==0.6.1
5657
# via flake8
57-
nodeenv==1.5.0
58+
nodeenv==1.6.0
5859
# via pre-commit
5960
packaging==20.9
6061
# via
@@ -63,41 +64,41 @@ packaging==20.9
6364
# tox
6465
pep517==0.10.0
6566
# via pip-tools
66-
pip-tools==6.0.1
67+
pip-tools==6.1.0
6768
# via -r .\requirements\dev.in
6869
pluggy==0.13.1
6970
# via
7071
# pytest
7172
# tox
72-
pre-commit==2.11.1
73+
pre-commit==2.13.0
7374
# via -r .\requirements\dev.in
7475
py==1.10.0
7576
# via
7677
# pytest
7778
# tox
7879
pycodestyle==2.7.0
7980
# via flake8
80-
pyflakes==2.3.0
81+
pyflakes==2.3.1
8182
# via flake8
82-
pygments==2.8.1
83+
pygments==2.9.0
8384
# via sphinx
8485
pyparsing==2.4.7
8586
# via packaging
86-
pytest-mock==3.5.1
87+
pytest-mock==3.6.1
8788
# via -r .\requirements\tests.in
88-
pytest==6.2.2
89+
pytest==6.2.4
8990
# via
9091
# -r .\requirements\tests.in
9192
# pytest-mock
9293
pytz==2021.1
9394
# via babel
94-
pywinpty==0.5.7
95+
pywinpty==1.1.1
9596
# via -r .\requirements\tests.in
9697
pyyaml==5.4.1
9798
# via pre-commit
9899
requests==2.25.1
99100
# via sphinx
100-
six==1.15.0
101+
six==1.16.0
101102
# via
102103
# livereload
103104
# tox
@@ -106,21 +107,21 @@ snowballstemmer==2.1.0
106107
# via sphinx
107108
sphinx-autobuild==2021.3.14
108109
# via -r .\requirements\dev.in
109-
sphinx==3.5.2
110+
sphinx==4.0.2
110111
# via
111112
# -r .\requirements\docs.in
112113
# sphinx-autobuild
113114
sphinxcontrib-applehelp==1.0.2
114115
# via sphinx
115116
sphinxcontrib-devhelp==1.0.2
116117
# via sphinx
117-
sphinxcontrib-htmlhelp==1.0.3
118+
sphinxcontrib-htmlhelp==2.0.0
118119
# via sphinx
119120
sphinxcontrib-jsmath==1.0.1
120121
# via sphinx
121122
sphinxcontrib-qthelp==1.0.3
122123
# via sphinx
123-
sphinxcontrib-serializinghtml==1.1.4
124+
sphinxcontrib-serializinghtml==1.1.5
124125
# via sphinx
125126
toml==0.10.2
126127
# via
@@ -130,11 +131,11 @@ toml==0.10.2
130131
# tox
131132
tornado==6.1
132133
# via livereload
133-
tox==3.23.0
134+
tox==3.23.1
134135
# via -r .\requirements\dev.in
135-
urllib3==1.26.4
136+
urllib3==1.26.5
136137
# via requests
137-
virtualenv==20.4.3
138+
virtualenv==20.4.7
138139
# via
139140
# pre-commit
140141
# tox

requirements/docs.txt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,27 @@
66
#
77
alabaster==0.7.12
88
# via sphinx
9-
babel==2.9.0
9+
babel==2.9.1
1010
# via sphinx
11-
certifi==2020.12.5
11+
certifi==2021.5.30
1212
# via requests
1313
chardet==4.0.0
1414
# via requests
1515
colorama==0.4.4
1616
# via sphinx
17-
docutils==0.16
17+
docutils==0.17.1
1818
# via sphinx
1919
idna==2.10
2020
# via requests
2121
imagesize==1.2.0
2222
# via sphinx
23-
jinja2==2.11.3
23+
jinja2==3.0.1
2424
# via sphinx
25-
markupsafe==1.1.1
25+
markupsafe==2.0.1
2626
# via jinja2
2727
packaging==20.9
2828
# via sphinx
29-
pygments==2.8.1
29+
pygments==2.9.0
3030
# via sphinx
3131
pyparsing==2.4.7
3232
# via packaging
@@ -36,21 +36,21 @@ requests==2.25.1
3636
# via sphinx
3737
snowballstemmer==2.1.0
3838
# via sphinx
39-
sphinx==3.5.2
39+
sphinx==4.0.2
4040
# via -r .\requirements\docs.in
4141
sphinxcontrib-applehelp==1.0.2
4242
# via sphinx
4343
sphinxcontrib-devhelp==1.0.2
4444
# via sphinx
45-
sphinxcontrib-htmlhelp==1.0.3
45+
sphinxcontrib-htmlhelp==2.0.0
4646
# via sphinx
4747
sphinxcontrib-jsmath==1.0.1
4848
# via sphinx
4949
sphinxcontrib-qthelp==1.0.3
5050
# via sphinx
51-
sphinxcontrib-serializinghtml==1.1.4
51+
sphinxcontrib-serializinghtml==1.1.5
5252
# via sphinx
53-
urllib3==1.26.4
53+
urllib3==1.26.5
5454
# via requests
5555

5656
# The following packages are considered to be unsafe in a requirements file:

requirements/tests.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#
77
atomicwrites==1.4.0
88
# via pytest
9-
attrs==20.3.0
9+
attrs==21.2.0
1010
# via pytest
1111
colorama==0.4.4
1212
# via pytest
@@ -20,13 +20,13 @@ py==1.10.0
2020
# via pytest
2121
pyparsing==2.4.7
2222
# via packaging
23-
pytest-mock==3.5.1
23+
pytest-mock==3.6.1
2424
# via -r .\requirements\tests.in
25-
pytest==6.2.2
25+
pytest==6.2.4
2626
# via
2727
# -r .\requirements\tests.in
2828
# pytest-mock
29-
pywinpty==0.5.7
29+
pywinpty==1.1.1
3030
# via -r .\requirements\tests.in
3131
toml==0.10.2
3232
# via pytest

tests/test_cli.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import os
12
import subprocess
23
from textwrap import dedent
34

@@ -14,6 +15,10 @@
1415

1516
skip_if_winpty_is_missing = pytest.mark.skipif(winpty is None, reason="winpty is missing")
1617

18+
# Force WinPTY backend instead of ConPTY. The latter doesn't seem to send
19+
# SIGINTs properly when the tests are run via tox.
20+
os.environ['PYWINPTY_BACKEND'] = '1'
21+
1722

1823
def test_stdin(child_ahk):
1924
code = "import ahkpy as ahk, sys; print(__name__, __file__, sys.argv)"
@@ -242,27 +247,27 @@ def test_interactive_mode(request):
242247
assert "Python 3" in proc.readline()
243248
assert 'Type "help"' in proc.readline()
244249
assert "(InteractiveConsole)" in proc.readline()
245-
assert proc.read(3) == ">>>"
250+
assert ">>>" in proc.read()
246251

247252
proc.write("import sys; sys.argv\r\n")
248253
assert "import sys; sys.argv" in proc.readline()
249254
assert "['']" in proc.readline()
250-
assert proc.read(3) == ">>>"
255+
assert ">>>" in proc.read()
251256

252257
proc.write("nonexistent\r\n")
253258
assert "nonexistent" in proc.readline()
254259
assert "Traceback" in proc.readline()
255260
assert " File" in proc.readline()
256261
assert "NameError: name 'nonexistent' is not defined" in proc.readline()
257-
assert proc.read(3) == ">>>"
262+
assert ">>>" in proc.read()
258263

259264
proc.write("!\r\n")
260265
assert "!" in proc.readline()
261266
assert ' File "<console>"' in proc.readline()
262267
assert " !" in proc.readline()
263268
assert " ^" in proc.readline()
264269
assert "SyntaxError: invalid syntax" in proc.readline()
265-
assert proc.read(3) == ">>>"
270+
assert ">>>" in proc.read()
266271

267272
proc.write("exit()\r\n")
268273
proc.wait()
@@ -324,7 +329,6 @@ def code():
324329
proc.sendintr()
325330
proc.wait()
326331
assert proc.exitstatus == STATUS_CONTROL_C_EXIT
327-
assert "KeyboardInterrupt" in proc.read()
328332

329333

330334
@skip_if_winpty_is_missing

0 commit comments

Comments
 (0)