Skip to content

Commit

Permalink
Add Django 3.0 Support
Browse files Browse the repository at this point in the history
  • Loading branch information
Antoine LAURENT committed Feb 17, 2020
1 parent e376fc1 commit 3cbd2d0
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 14 deletions.
12 changes: 7 additions & 5 deletions .travis.yml
Expand Up @@ -8,18 +8,20 @@ matrix:
fast_finish: true
include:
# https://docs.djangoproject.com/en/dev/faq/install/#what-python-version-can-i-use-with-django
- {env: DJANGO=2.1, python: '3.5'}
- {env: DJANGO=2.1, python: '3.6'}
- {env: DJANGO=2.1, python: '3.7'}
- {env: DJANGO=2.1, python: 'nightly'}

- {env: DJANGO=2.2, python: '3.5'}
- {env: DJANGO=2.2, python: '3.6'}
- {env: DJANGO=2.2, python: '3.7'}
- {env: DJANGO=2.2, python: '3.8'}
- {env: DJANGO=2.2, python: 'nightly'}

- {env: DJANGO=3.0, python: '3.6'}
- {env: DJANGO=3.0, python: '3.7'}
- {env: DJANGO=3.0, python: '3.8'}
- {env: DJANGO=3.0, python: 'nightly'}

- {env: DJANGO=master, python: '3.6'}
- {env: DJANGO=master, python: '3.7'}
- {env: DJANGO=master, python: '3.8'}
- {env: DJANGO=master, python: 'nightly'}

- {python: '3.7', env: TOXENV=docs}
Expand Down
3 changes: 2 additions & 1 deletion HISTORY.rst
Expand Up @@ -4,7 +4,8 @@ History
2.1 (unreleased)
++++++++++++++++

- Nothing changed yet.
* Add support of Django 3.0
* |backward-incompatible| Drop support of Django 2.1.


2.0 (2019-09-27)
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Expand Up @@ -49,7 +49,7 @@ Supported versions

We currently support the following versions:

- Django 2.1 with Python >= 3.5.
- Django 2.2 with Python >= 3.5.
- Django 3.0 with Python >= 3.6.

Other versions may work but are not supported.
3 changes: 1 addition & 2 deletions cid/backends/postgresql/base.py
@@ -1,5 +1,4 @@
from django.db.backends.postgresql_psycopg2.base import \
DatabaseWrapper as BaseDatabaseWrapper
from django.db.backends.postgresql.base import DatabaseWrapper as BaseDatabaseWrapper

from ...cursor import CidCursorWrapper

Expand Down
1 change: 1 addition & 0 deletions setup.py
Expand Up @@ -44,5 +44,6 @@ def clean_history(history):
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
],
)
10 changes: 5 additions & 5 deletions tox.ini
@@ -1,23 +1,23 @@
[tox]
envlist =
py{35,36,37,nightly}-django21,
py{35,36,37,nightly}-django22,
py{36,37,nightly}-djangomaster,
py{35,36,37,38,nightly}-django22,
py{36,37,38,nightly}-django30,
py{36,37,38,nightly}-djangomaster,
docs,
quality

[travis:env]
DJANGO =
2.1: django21
2.2: django22
3.0: django30
master: djangomaster

[testenv]
commands = /usr/bin/make test
envdir = {toxworkdir}/venvs/{envname}
deps =
django21: Django==2.1.*
django22: Django==2.2.*
django30: Django==3.0.*
djangomaster: https://github.com/django/django/archive/master.tar.gz
-rrequirements/tests.txt

Expand Down

0 comments on commit 3cbd2d0

Please sign in to comment.