Skip to content

Commit 50813f0

Browse files
drops python 3.5
1 parent 9137ead commit 50813f0

24 files changed

+67
-81
lines changed

.travis.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,14 @@ sudo: false
33
language: python
44

55
python:
6-
- 3.5
76
- 3.6
87
- 3.7
98
- 3.8
109

11-
# tmp fix until travis gets python3.7
12-
dist: xenial
13-
sudo: true
14-
1510
install:
1611
- pip install -r requirements.txt
1712
- pip install -e .
1813

19-
2014
script:
2115
- pytest
2216
- pytest --cov=pythonanywhere --cov=scripts --cov-fail-under=65
23-
- pytest --mypy -m mypy

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,25 @@
11
[![Build Status](https://travis-ci.org/pythonanywhere/helper_scripts.svg?branch=master)](https://travis-ci.org/pythonanywhere/helper_scripts)
22
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
3-
3+
[![PyPI](https://img.shields.io/pypi/v/pythonanywhere)](https://pypi.org/project/pythonanywhere/)
4+
[![Downloads](https://pepy.tech/badge/pythonanywhere)](https://pepy.tech/project/pythonanywhere)
45

56
# PythonAnywhere helper scripts
67

78
These scripts are designed to be run from PythonAnywhere consoles
89

9-
1010
## Installing
1111

12+
pip3.6 install --user pythonanywhere
1213

13-
pip3.5 install --user pythonanywhere
14-
15-
14+
If there is no `python3.6` on your PythonAnywhere account,
15+
you should contact [[email protected]](mailto:[email protected]) and ask for an upgrade.
16+
1617
## Contributing
1718

1819
Pull requests are welcome! You'll find tests in the [tests](tests) folder...
1920

2021
# prep your dev environment
21-
mkvirtualenv --python=python3.5 helper_scripts
22+
mkvirtualenv --python=python3.6 helper_scripts
2223
pip install -r requirements.txt
2324
pip install -e .
2425

pytest.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
[pytest]
22
addopts = --tb=native
3+
markers =
4+
slowtest: marks tests as one of slowest (deselect with '-m "not slowtest"')
5+
tasks: marks test as one of realated to tasks

pythonanywhere/api/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
from pythonanywhere.api.base import AuthenticationError, PYTHON_VERSIONS, call_api, get_api_endpoint
44
from pythonanywhere.api.webapp import Webapp
55

6+
## TODO PEP 562 __getattr__ should be used here to handle deprecation warnings nicely when we drop python 3.6.
7+
## See https://www.python.org/dev/peps/pep-0562/#id8
8+
69
warnings.warn(
710
"""
811
Importing from pythonanywhere.api is deprecated in favor of

pythonanywhere/api/base.py

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

55
PYTHON_VERSIONS = {
6-
"2.7": "python27", "3.4": "python34", "3.5": "python35", "3.6": "python36", "3.7": "python37", "3.8": "python38",
6+
"3.6": "python36", "3.7": "python37", "3.8": "python38",
77
}
88

99

pythonanywhere/snakesay.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python3.5
1+
#!/usr/bin/env python3.6
22
import sys
33
import textwrap
44

requirements.txt

Lines changed: 10 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,11 @@
1-
certifi==2019.3.9
2-
chardet==3.0.4
3-
cookies==2.2.1
4-
coverage==4.5.4
51
docopt==0.6.2
6-
idna==2.8
7-
pbr==5.1.0
8-
psutil==5.4.0
9-
py==1.7.0
10-
pytest-cov==2.6.1
11-
pytest-mock==2.0.0
12-
pytest-mypy==0.4.2
13-
pytest==3.6.4
14-
python-dateutil==2.7.5
15-
requests==2.22.0
16-
responses==0.8.1
17-
schema==0.7.1
18-
six==1.11.0
19-
stevedore==1.30.0
20-
tabulate==0.8.6
21-
urllib3==1.25.2
22-
virtualenv-clone==0.4.0
23-
virtualenv==16.0.0
24-
virtualenvwrapper==4.8.2
2+
psutil==5.7.0
3+
pytest==5.4.2
4+
pytest-cov==2.8.1
5+
pytest-mock==3.1.0
6+
pytest-mypy==0.6.2
7+
requests==2.23.0
8+
responses==0.10.14
9+
schema==0.7.2
10+
tabulate==0.8.7
11+
virtualenvwrapper==4.8.4

scripts/pa_autoconfigure_django.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python3.5
1+
#!/usr/bin/python3.6
22
"""Autoconfigure a Django project from on a github URL.
33
44
- downloads the repo
@@ -12,7 +12,7 @@
1212
1313
Options:
1414
--domain=<domain> Domain name, eg www.mydomain.com [default: your-username.pythonanywhere.com]
15-
--python=<python-version> Python version, eg "2.7" [default: 3.5]
15+
--python=<python-version> Python version, eg "3.8" [default: 3.6]
1616
--nuke *Irrevocably* delete any existing web app config on this domain. Irrevocably.
1717
"""
1818

scripts/pa_create_scheduled_task.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python3.5
1+
#!/usr/bin/python3.6
22
"""Create a scheduled task.
33
44
Two categories of tasks are available: daily and hourly.

scripts/pa_create_webapp_with_virtualenv.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python3.5
1+
#!/usr/bin/python3.6
22
"""Create a web app with a virtualenv
33
44
- creates a simple hello world web app
@@ -11,7 +11,7 @@
1111
1212
Options:
1313
--domain=<domain> Domain name, eg www.mydomain.com [default: your-username.pythonanywhere.com]
14-
--python=<python-version> Python version, eg "2.7" [default: 3.6]
14+
--python=<python-version> Python version, eg "3.8" [default: 3.6]
1515
--nuke *Irrevocably* delete any existing web app config on this domain. Irrevocably.
1616
"""
1717

0 commit comments

Comments
 (0)