Skip to content

Commit 6613fe7

Browse files
Merge branch 'python38'
2 parents c7f3b53 + 0cb3b87 commit 6613fe7

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ python:
66
- 3.5
77
- 3.6
88
- 3.7
9+
- 3.8
910

1011
# tmp fix until travis gets python3.7
1112
dist: xenial

pythonanywhere/api.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
from pythonanywhere.exceptions import SanityException
1010
from pythonanywhere.snakesay import snakesay
1111

12-
PYTHON_VERSIONS = {"2.7": "python27", "3.4": "python34", "3.5": "python35", "3.6": "python36", "3.7": "python37"}
12+
PYTHON_VERSIONS = {
13+
"2.7": "python27", "3.4": "python34", "3.5": "python35", "3.6": "python36", "3.7": "python37", "3.8": "python38",
14+
}
1315

1416

1517
class AuthenticationError(Exception):

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
certifi==2019.3.9
22
chardet==3.0.4
33
cookies==2.2.1
4-
coverage==4.5.1
4+
coverage==4.5.4
55
docopt==0.6.2
66
idna==2.8
77
pbr==5.1.0

submodules/example-django-project

tests/test_django_project.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ def test_actually_produces_wsgi_file_that_can_import_project_non_nested(
287287
running_python_version = ".".join(python_version().split(".")[:2])
288288
project = DjangoProject("mydomain.com", running_python_version)
289289
shutil.copytree(str(non_nested_submodule), str(project.project_path))
290-
if running_python_version == "3.7":
290+
if running_python_version in ["3.7", "3.8"]:
291291
project.create_virtualenv(django_version="latest")
292292
else:
293293
project.create_virtualenv()
@@ -306,7 +306,7 @@ def test_actually_produces_wsgi_file_that_can_import_nested_project(
306306
running_python_version = ".".join(python_version().split(".")[:2])
307307
project = DjangoProject("mydomain.com", running_python_version)
308308
shutil.copytree(str(more_nested_submodule), str(project.project_path))
309-
if running_python_version == "3.7":
309+
if running_python_version in ["3.7", "3.8"]:
310310
project.create_virtualenv(django_version="latest")
311311
else:
312312
project.create_virtualenv()

0 commit comments

Comments
 (0)