Skip to content

Commit

Permalink
Add Python 3.7 to Travis and Tox
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaoming committed Sep 17, 2018
1 parent 018074b commit 1280eb5
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 23 deletions.
73 changes: 53 additions & 20 deletions .travis.yml
@@ -1,28 +1,61 @@
# Because Python 3.6 is available on GCE
dist: trusty
cache: pip

language: python
cache: pip

python:
- "3.4"
- "3.5"
- "3.6"
matrix:
include:
- python: 3.4
dist: trusty
sudo: false
env: LINT="yes"
- python: 3.4
dist: trusty
sudo: false
env: DJANGO="1.11"
- python: 3.4
dist: trusty
sudo: false
env: DJANGO="2.0"

env:
- LINT="yes"
- DJANGO="1.11"
- DJANGO="2.0"
- DJANGO="2.1"
- python: 3.5
dist: trusty
sudo: false
env: DJANGO="1.11"
- python: 3.5
dist: trusty
sudo: false
env: DJANGO="2.0"
- python: 3.5
dist: trusty
sudo: false
env: DJANGO="2.1"

matrix:
exclude:
- python: "3.4"
- python: 3.6
dist: trusty
sudo: false
env: DJANGO="1.11"
- python: 3.6
dist: trusty
sudo: false
env: DJANGO="2.0"
- python: 3.6
dist: trusty
sudo: false
env: DJANGO="2.1"
- python: "3.5"
env: LINT="yes"
- python: "3.6"
env: LINT="yes"

- python: 3.7
dist: xenial
sudo: true
env: DJANGO="2.0"
- python: 3.7
dist: xenial
sudo: true
env: DJANGO="2.1"

- python: pypy
dist: trusty
sudo: false
env: DJANGO="1.11"

addons:
apt:
Expand All @@ -31,7 +64,7 @@ addons:
- libjpeg8-dev

install:
- pip install tox\>=2.1 tox-travis codecov
- pip install tox tox-travis codecov

script:
- tox
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Expand Up @@ -26,7 +26,7 @@ The below table explains which Django versions are supported.
+------------------+----------------+--------------+
| Release | Django | Upgrade from |
+==================+================+==============+
| 0.4b2 | 1.11, 2.0 | 0.3 |
| 0.4b2 | 1.11, 2.0, 2.1 | 0.3 |
+------------------+----------------+--------------+
| 0.3.x | 1.8, 1.9, | 0.2 |
| | 1.10, 1.11 | |
Expand Down
3 changes: 2 additions & 1 deletion docs/release_notes.rst
Expand Up @@ -18,7 +18,8 @@ django-wiki 0.4b2
Added
~~~~~

* Django 2 support :url-issue:`755` (Raffaele Salmaso & Mads Jensen)
* Django 2.0 and 2.1 support :url-issue:`755` (Raffaele Salmaso & Mads Jensen)
* Python 3.7 support
* Added ``wiki.sites.WikiSite`` for easy customization :url-issue:`827`
* Automatic link highlighting of URLs handles lots of new patterns :url-issue:`816` (Branko Majic)
* Red links: Internal links turn red and link to Create Page (Mathias Rav) :url-issue:`889`
Expand Down
4 changes: 3 additions & 1 deletion tox.ini
@@ -1,13 +1,14 @@
[tox]
# Ensure you add to .travis.yml if you add here, using `tox -l`
envlist = {py34,py35,py36}-django{111,20,21},lint
envlist = {py34,py35,py36,py37}-django{111,20,21},lint


[travis]
python =
3.4: py34
3.5: py35
3.6: py36
3.7: py37

[travis:env]
DJANGO =
Expand Down Expand Up @@ -42,6 +43,7 @@ basepython =
py34: python3.4
py35: python3.5
py36: python3.6
py37: python3.7


[testenv:lint]
Expand Down

0 comments on commit 1280eb5

Please sign in to comment.