Skip to content

Commit 045a3f7

Browse files
author
Ryo Chijiiwa
authored
update python versions, Circle image (#287)
* update Python, Django and DRF versions, upgrade Circle image
1 parent f5d3fee commit 045a3f7

File tree

12 files changed

+38
-113
lines changed

12 files changed

+38
-113
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
parallelism: 1
77

88
docker:
9-
- image: circleci/python:2.7.15-jessie
9+
- image: circleci/python:2.7.16-stretch
1010
steps:
1111
- checkout
1212
- run:
@@ -54,7 +54,7 @@ jobs:
5454
command: ENABLE_INTEGRATION_TESTS=True py.test tests/integration
5555
- run:
5656
name: Run Tox Tests
57-
command: tox
57+
command: tox --parallel=4
5858

5959
workflows:
6060
version: 2

.circleci/python-versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.7.15 3.4.9 3.5.6 3.6.6
1+
2.7.16 3.5.7 3.6.9 3.7.4

README.md

Lines changed: 11 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ See http://dynamic-rest.readthedocs.org for full documentation.
2929
- [Directory panel](#directory-panel)
3030
- [Optimizations](#optimizations)
3131
- [Settings](#settings)
32-
- [Compatibility table](#compatibility-table)
32+
- [Compatibility](#compatibility)
3333
- [Contributing](#contributing)
3434
- [License](#license)
3535

@@ -625,87 +625,16 @@ DYNAMIC_REST = {
625625
}
626626
```
627627

628-
# Compatibility table
629-
630-
Not all versions of Python, Django, and DRF are compatible. Here are the combinations you can use reliably with DREST (all tested by our tox configuration):
631-
632-
| Python | Django | DRF | OK |
633-
| ------ | ------ | --- | --- |
634-
| 2.7 | 1.8 | 3.1 | YES |
635-
| 2.7 | 1.8 | 3.2 | YES |
636-
| 2.7 | 1.8 | 3.3 | YES |
637-
| 2.7 | 1.8 | 3.4 | YES |
638-
| 2.7 | 1.9 | 3.1 | NO<sup>1</sup> |
639-
| 2.7 | 1.9 | 3.2 | YES |
640-
| 2.7 | 1.9 | 3.3 | YES |
641-
| 2.7 | 1.9 | 3.4 | YES |
642-
| 2.7 | 1.10 | 3.2 | NO<sup>3</sup> |
643-
| 2.7 | 1.10 | 3.3 | NO<sup>3</sup> |
644-
| 2.7 | 1.10 | 3.4 | YES |
645-
| 2.7 | 1.10 | 3.5 | YES |
646-
| 2.7 | 1.10 | 3.6 | YES |
647-
| 2.7 | 1.11 | 3.4 | YES |
648-
| 2.7 | 1.11 | 3.5 | YES |
649-
| 2.7 | 1.11 | 3.6 | YES |
650-
| 3.3 | 1.8 | 3.1 | YES |
651-
| 3.3 | 1.8 | 3.2 | YES |
652-
| 3.3 | 1.8 | 3.3 | YES |
653-
| 3.3 | 1.8 | 3.4 | YES |
654-
| 3.3 | 1.9 | x.x | NO<sup>2</sup> |
655-
| 3.3 | 1.10 | x.x | NO<sup>4</sup> |
656-
| 3.3 | 1.11 | x.x | NO<sup>5</sup> |
657-
| 3.4 | 1.8 | 3.1 | YES |
658-
| 3.4 | 1.8 | 3.2 | YES |
659-
| 3.4 | 1.8 | 3.3 | YES |
660-
| 3.4 | 1.8 | 3.4 | YES |
661-
| 3.4 | 1.9 | 3.1 | NO<sup>1</sup> |
662-
| 3.4 | 1.9 | 3.2 | YES |
663-
| 3.4 | 1.9 | 3.3 | YES |
664-
| 3.4 | 1.9 | 3.4 | YES |
665-
| 3.4 | 1.10 | 3.2 | NO<sup>3</sup> |
666-
| 3.4 | 1.10 | 3.3 | NO<sup>3</sup> |
667-
| 3.4 | 1.10 | 3.4 | YES |
668-
| 3.4 | 1.10 | 3.5 | YES |
669-
| 3.4 | 1.10 | 3.6 | YES |
670-
| 3.4 | 1.11 | 3.3 | NO<sup>3</sup> |
671-
| 3.4 | 1.11 | 3.4 | YES |
672-
| 3.4 | 1.11 | 3.5 | YES |
673-
| 3.5 | 1.8 | 3.1 | YES |
674-
| 3.5 | 1.8 | 3.2 | YES |
675-
| 3.5 | 1.8 | 3.3 | YES |
676-
| 3.5 | 1.8 | 3.4 | YES |
677-
| 3.5 | 1.9 | 3.1 | NO<sup>1</sup> |
678-
| 3.5 | 1.9 | 3.2 | YES |
679-
| 3.5 | 1.9 | 3.3 | YES |
680-
| 3.5 | 1.9 | 3.4 | YES |
681-
| 3.5 | 1.10 | 3.2 | NO<sup>3</sup> |
682-
| 3.5 | 1.10 | 3.3 | NO<sup>3</sup> |
683-
| 3.5 | 1.10 | 3.4 | YES |
684-
| 3.5 | 1.10 | 3.5 | YES |
685-
| 3.5 | 1.10 | 3.6 | YES |
686-
| 3.5 | 1.11 | 3.4 | YES |
687-
| 3.5 | 1.11 | 3.5 | YES |
688-
| 3.5 | 1.11 | 3.6 | YES |
689-
| 3.5 | 2.0 | 3.7 | YES |
690-
| 3.5 | 2.0 | 3.8 | YES |
691-
| 3.5 | 2.0 | 3.9 | YES |
692-
| 3.5 | 2.1 | 3.7 | YES |
693-
| 3.5 | 2.1 | 3.8 | YES |
694-
| 3.5 | 2.1 | 3.9 | YES |
695-
| 3.6 | 1.11 | 3.7 | YES |
696-
| 3.6 | 2.0 | 3.7 | YES |
697-
| 3.6 | 2.1 | 3.7 | YES |
698-
| 3.6 | 1.11 | 3.8 | YES |
699-
| 3.6 | 2.0 | 3.8 | YES |
700-
| 3.6 | 2.1 | 3.8 | YES |
701-
| 3.6 | 2.0 | 3.9 | YES |
702-
| 3.6 | 2.1 | 3.9 | YES |
703-
704-
* 1: Django 1.9 is not compatible with DRF 3.1
705-
* 2: Django 1.9 is not compatible with Python 3.3
706-
* 3: Django 1.10 is only compatible with DRF 3.4+
707-
* 4: Django 1.10 requires Python 2.7, 3.4, 3.5
708-
* 5: Django 1.11 requires Python 2.7, 3.4, 3.5, 3.6
628+
# Compatibility
629+
630+
We actively support the following:
631+
632+
* Python: 2.7, 3.5, 3.6, 3.7
633+
* Django: 1.11, 2.0, 2.2
634+
* Django Rest Framework: 3.4 ~ 3.10
635+
636+
**Note:** Some combinations are not supported. For up-to-date information on actively supported/tested combinations, see the tox.ini file.
637+
709638
# Contributing
710639

711640
See [Contributing](CONTRIBUTING.md).

README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ Maintainers
4040
Requirements
4141
============
4242

43-
- Python (2.7, 3.4, 3.5, 3.6)
44-
- Django (1.8, 1.9, 1.10, 1.11, 2.0, 2.1)
45-
- Django REST Framework (3.1, 3.2, 3.3, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9)
43+
- Python (2.7, 3.5, 3.6, 3.7)
44+
- Django (1.11, 2.0, 2.1, 2.2)
45+
- Django REST Framework (3.1, 3.2, 3.3, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, 3.10)

install_requires.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
Django>=1.8,<2.0
2-
djangorestframework>=3.1.0,<3.8
2+
djangorestframework>=3.1.0,<3.10
33
inflection==0.3.1
44
requests
5+
pytz

install_requires_python3.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Django>=1.8,<2.2
2-
djangorestframework>=3.1.0,<3.10
1+
Django>=1.8,<2.3
2+
djangorestframework>=3.1.0,<3.11
33
inflection==0.3.1
44
requests

requirements.benchmark.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ pytest==2.7.2
1010
psycopg2==2.5.1
1111
tox-pyenv==1.0.2
1212
tox==2.3.1
13-
djay==0.0.4
13+
djay==0.0.8

requirements.test.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ pytest==3.7.1
1010
psycopg2==2.7.5
1111
tox-pyenv==1.1.0
1212
tox==3.2.1
13-
djay==0.0.4
13+
djay==0.0.8

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ pytest-sugar==0.9.0
88
pytest==3.2.5 # last supported version python 2
99
psycopg2==2.7.3.2
1010
tox-pyenv==1.1.0
11-
tox==2.9.1
12-
djay==0.0.4
11+
tox==3.13.2
12+
djay==0.0.8

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
NAME = 'dynamic-rest'
55
DESCRIPTION = 'Adds Dynamic API support to Django REST Framework.'
66
URL = 'http://github.com/AltSchool/dynamic-rest'
7-
VERSION = '1.9.4'
7+
VERSION = '1.9.5'
88
SCRIPTS = ['manage.py']
99

1010
setup(

0 commit comments

Comments
 (0)