Skip to content

Commit dab32e8

Browse files
updates requirements and setup for python 3.10
1 parent 84ccbc3 commit dab32e8

File tree

4 files changed

+20
-13
lines changed

4 files changed

+20
-13
lines changed

pythonanywhere/api/base.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
import requests
44

55
PYTHON_VERSIONS = {
6-
"3.6": "python36", "3.7": "python37", "3.8": "python38", "3.9": "python39",
6+
"3.6": "python36",
7+
"3.7": "python37",
8+
"3.8": "python38",
9+
"3.9": "python39",
10+
"3.10": "python310",
711
}
812

913

requirements.txt

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
python-dateutil==2.8.1
2+
click==8.0.3
23
docopt==0.6.2
34
packaging
45
psutil==5.7.0
5-
pytest==5.4.2
6-
pytest-cov==2.8.1
7-
pytest-mock==3.1.0
6+
pytest==6.2.5
7+
pytest-cov==3.0.0
8+
pytest-mock==3.6.1
89
pytest-mypy==0.6.2
9-
requests==2.23.0
10-
responses==0.10.14
10+
requests==2.26.0
11+
responses==0.16.0
1112
schema==0.7.2
12-
tabulate==0.8.7
13-
typer==0.3.2
13+
tabulate==0.8.9
14+
typer==0.4.0
15+
urllib3==1.26.7
1416
virtualenvwrapper==4.8.4

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
setup(
1111
name="pythonanywhere",
12-
version="0.9.10",
12+
version="0.9.11",
1313
description="PythonAnywhere helper tools for users",
1414
long_description=long_description,
1515
long_description_content_type="text/markdown",
@@ -22,6 +22,7 @@
2222
"Intended Audience :: Developers",
2323
"Topic :: Software Development :: Libraries",
2424
"License :: OSI Approved :: MIT License",
25+
"Programming Language :: Python :: 3.10",
2526
"Programming Language :: Python :: 3.9",
2627
"Programming Language :: Python :: 3.8",
2728
"Programming Language :: Python :: 3.7",

tests/test_cli_schedule.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,12 @@ def test_validates_minutes(self):
6969
result = runner.invoke(app, ["set", "-c", "echo foo", "-h", "8", "-m", "66"])
7070

7171
assert "Invalid value" in result.stdout
72-
assert "66 is not in the valid range of 0 to 59" in result.stdout
72+
assert "66 is not in the range 0<=x<=59" in result.stdout
7373

7474
def test_validates_hours(self):
7575
result = runner.invoke(app, ["set", "-c", "echo foo", "-h", "66", "-m", "1"])
7676
assert "Invalid value" in result.stdout
77-
assert "66 is not in the valid range of 0 to 23" in result.stdout
77+
assert "66 is not in the range 0<=x<=23" in result.stdout
7878

7979
def test_logs_warning_when_create_schedule_raises(self, mocker):
8080
mock_logger = mocker.patch("cli.schedule.get_logger").return_value
@@ -346,11 +346,11 @@ def test_ensures_proper_hourly_params(self, mocker):
346346

347347
def test_validates_minute(self):
348348
result = runner.invoke(app, ["update", "42", "--minute", "88"])
349-
assert "88 is not in the valid range of 0 to 59" in result.stdout
349+
assert "88 is not in the range 0<=x<=59" in result.stdout
350350

351351
def test_validates_hour(self):
352352
result = runner.invoke(app, ["update", "42", "--daily", "--hour", "33"])
353-
assert "33 is not in the valid range of 0 to 23" in result.stdout
353+
assert "33 is not in the range 0<=x<=23" in result.stdout
354354

355355
def test_complains_when_no_id_provided(self):
356356
result = runner.invoke(app, ["update"])

0 commit comments

Comments
 (0)