Skip to content

Commit

Permalink
Add support for Python 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-k authored and ad-m committed Nov 14, 2019
1 parent 1be1a0a commit 7308d61
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@ matrix:
- { python: 3.7, env: [*djangomaster, *postgres], <<: *pgdb}
- { python: 3.7, env: [*djangomaster, *mysql], <<: *mariadb}
- { python: 3.7, env: [*djangomaster, *sqlite]}

- { python: 3.8, env: [*django22, *postgres], <<: *pgdb}
- { python: 3.8, env: [*django22, *mysql], <<: *mariadb}
- { python: 3.8, env: [*django22, *sqlite]}
- { python: 3.8, env: [*djangomaster, *postgres], <<: *pgdb}
- { python: 3.8, env: [*djangomaster, *mysql], <<: *mariadb}
- { python: 3.8, env: [*djangomaster, *sqlite]}
allow_failures:
- env: [*djangomaster, *postgres]
- env: [*djangomaster, *mysql]
Expand Down
4 changes: 2 additions & 2 deletions contrib/travis/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ fi;

# Install database drivers
if [[ $DATABASE_URL = postgres* ]]; then
PACKAGES+=('psycopg2==2.7.5');
PACKAGES+=('psycopg2-binary==2.8.4');
psql -c 'create database django_guardian;' -U postgres;
psql -c 'create database test_django_guardian;' -U postgres;
fi;

if [[ $DATABASE_URL = mysql* ]]; then
PACKAGES+=('mysqlclient==1.3.13');
PACKAGES+=('mysqlclient==1.4.5');
mysql -e 'CREATE DATABASE django_guardian;';
mysql -e 'CREATE DATABASE test_django_guardian;';
fi;
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3 :: Only',
],
test_suite='tests.main',
Expand Down
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
downloadcache = {toxworkdir}/cache/
envlist = # sort by django version, next by python version
{core,example,docs}-py{35,36,py37}-django21,
{core,example,docs}-py{35,36,py37}-django22,
{core,example,docs}-py{35,36,py37,py38}-django22,

[testenv]
passenv = DATABASE_URL
basepython =
py35: python3.5
py36: python3.6
py37: python3.7
py38: python3.8
changedir =
example: example_project
docs: docs
Expand Down

0 comments on commit 7308d61

Please sign in to comment.