From 1280eb5edf9ce0b05b15ff3e8d805b74c993415c Mon Sep 17 00:00:00 2001 From: Benjamin Bach Date: Sun, 16 Sep 2018 18:39:02 +0200 Subject: [PATCH] Add Python 3.7 to Travis and Tox --- .travis.yml | 73 ++++++++++++++++++++++++++++++------------ README.rst | 2 +- docs/release_notes.rst | 3 +- tox.ini | 4 ++- 4 files changed, 59 insertions(+), 23 deletions(-) diff --git a/.travis.yml b/.travis.yml index 51ce3427..3cd45c2d 100644 --- a/.travis.yml +++ b/.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: @@ -31,7 +64,7 @@ addons: - libjpeg8-dev install: - - pip install tox\>=2.1 tox-travis codecov + - pip install tox tox-travis codecov script: - tox diff --git a/README.rst b/README.rst index 985c5642..ce975b2c 100644 --- a/README.rst +++ b/README.rst @@ -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 | | diff --git a/docs/release_notes.rst b/docs/release_notes.rst index 6b86bd43..1cda862c 100644 --- a/docs/release_notes.rst +++ b/docs/release_notes.rst @@ -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` diff --git a/tox.ini b/tox.ini index 38507594..15b2dae7 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [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] @@ -8,6 +8,7 @@ python = 3.4: py34 3.5: py35 3.6: py36 + 3.7: py37 [travis:env] DJANGO = @@ -42,6 +43,7 @@ basepython = py34: python3.4 py35: python3.5 py36: python3.6 + py37: python3.7 [testenv:lint] -- 2.45.2