Commit 1718bc6b by John Whitlock

Add support for Django 1.11, dev

- Use new urlpattern syntax
- Switch .travis.yml to matrix form, to specify specific Python versions
- Remove invalid docsinstall and double install from .travis.yml
- Add Django 1.11 and master (allowed failure) targets, and Python 3.6
- Add doc target to .travis.yml
parent 8608351f
language: python language: python
python:
- 3.5
sudo: false sudo: false
install: matrix:
- pip install tox coveralls include:
env: - env: TOXENV=py27-django16
- TOXENV=py27-django16 python: "2.7"
- TOXENV=py34-django16 - env: TOXENV=pypy-django16
- TOXENV=pypy-django16 python: "pypy"
- TOXENV=py27-django17 - env: TOXENV=py34-django16
- TOXENV=py34-django17 python: "3.4"
- TOXENV=pypy-django17 - env: TOXENV=py27-django17
- TOXENV=py27-django18 python: "2.7"
- TOXENV=pypy-django18 - env: TOXENV=pypy-django17
- TOXENV=py34-django18 python: "pypy"
- TOXENV=py27-django19 - env: TOXENV=py34-django17
- TOXENV=pypy-django19 python: "3.4"
- TOXENV=py34-django19 - env: TOXENV=py27-django18
- TOXENV=py35-django19 python: "2.7"
- TOXENV=py27-django110 - env: TOXENV=pypy-django18
- TOXENV=pypy-django110 python: "pypy"
- TOXENV=py34-django110 - env: TOXENV=py34-django18
- TOXENV=py35-django110 python: "3.4"
docsinstall: pip install -q tox - env: TOXENV=py27-django19
python: "2.7"
- env: TOXENV=pypy-django19
python: "pypy"
- env: TOXENV=py34-django19
python: "3.4"
- env: TOXENV=py35-django19
python: "3.5"
- env: TOXENV=py27-django110
python: "2.7"
- env: TOXENV=pypy-django110
python: "pypy"
- env: TOXENV=py34-django110
python: "3.4"
- env: TOXENV=py35-django110
python: "3.5"
- env: TOXENV=py27-django111
python: "2.7"
- env: TOXENV=pypy-django111
python: "pypy"
- env: TOXENV=py34-django111
python: "3.4"
- env: TOXENV=py35-django111
python: "3.5"
- env: TOXENV=py36-django111
python: "3.6"
- env: TOXENV=pypy-django-master
python: "pypy"
- env: TOXENV=py34-django-master
python: "3.4"
- env: TOXENV=py35-django-master
python: "3.5"
- env: TOXENV=py36-django-master
python: "3.6"
- env: TOXENV=docs
python: "2.7"
allow_failures:
- env: TOXENV=pypy-django-master
- env: TOXENV=py34-django-master
- env: TOXENV=py35-django-master
- env: TOXENV=py36-django-master
before_install: before_install:
- nvm install node - nvm install node
- nvm use node - nvm use node
...@@ -40,6 +78,6 @@ deploy: ...@@ -40,6 +78,6 @@ deploy:
on: on:
tags: true tags: true
repo: jazzband/django-pipeline repo: jazzband/django-pipeline
condition: "$TOXENV = py27-django19" condition: "$TOXENV = py27-django111"
notifications: notifications:
email: false email: false
...@@ -124,7 +124,7 @@ Indicate if you want this group to appear in your cache manifest. ...@@ -124,7 +124,7 @@ Indicate if you want this group to appear in your cache manifest.
Defaults to ``True``. Defaults to ``True``.
``compiler_options`` ``compiler_options``
............ ....................
**Optional** **Optional**
......
...@@ -31,6 +31,7 @@ setup( ...@@ -31,6 +31,7 @@ setup(
'Framework :: Django :: 1.8', 'Framework :: Django :: 1.8',
'Framework :: Django :: 1.9', 'Framework :: Django :: 1.9',
'Framework :: Django :: 1.10', 'Framework :: Django :: 1.10',
'Framework :: Django :: 1.11',
'Intended Audience :: Developers', 'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License', 'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent', 'Operating System :: OS Independent',
...@@ -39,6 +40,7 @@ setup( ...@@ -39,6 +40,7 @@ setup(
'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: Implementation :: PyPy', 'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Utilities', 'Topic :: Utilities',
'Topic :: Software Development :: Libraries :: Python Modules', 'Topic :: Software Development :: Libraries :: Python Modules',
......
...@@ -164,20 +164,21 @@ if HAS_NODE and HAS_JAVA: ...@@ -164,20 +164,21 @@ if HAS_NODE and HAS_JAVA:
if HAS_CSSTIDY: if HAS_CSSTIDY:
PIPELINE.update({'CSSTIDY_BINARY': CSSTIDY_EXE_PATH}) PIPELINE.update({'CSSTIDY_BINARY': CSSTIDY_EXE_PATH})
TEMPLATE_DIRS = (
local_path('templates'),
)
TEMPLATES = [ TEMPLATES = [
{ {
'BACKEND': 'django.template.backends.django.DjangoTemplates', 'BACKEND': 'django.template.backends.django.DjangoTemplates',
'APP_DIRS': True, 'APP_DIRS': True,
'DIRS': TEMPLATE_DIRS, 'DIRS': [local_path('templates')],
'OPTIONS': {
'context_processors': [
'django.contrib.auth.context_processors.auth',
]
}
}, },
{ {
'BACKEND': 'django.template.backends.jinja2.Jinja2', 'BACKEND': 'django.template.backends.jinja2.Jinja2',
'APP_DIRS': True, 'APP_DIRS': True,
'DIRS': TEMPLATE_DIRS, 'DIRS': [local_path('templates')],
'OPTIONS': { 'OPTIONS': {
'extensions': ['pipeline.jinja2.PipelineExtension'] 'extensions': ['pipeline.jinja2.PipelineExtension']
} }
......
...@@ -41,6 +41,9 @@ class PipelineNoPathStorage(PipelineStorage): ...@@ -41,6 +41,9 @@ class PipelineNoPathStorage(PipelineStorage):
def open(self, *args): def open(self, *args):
return StringIO() return StringIO()
def listdir(self, *args):
return []
class DummyCSSCompiler(DummyCompiler): class DummyCSSCompiler(DummyCompiler):
""" Handles css files """ """ Handles css files """
......
from django.conf.urls import patterns, include, url from django.conf.urls import url
from django.contrib import admin from django.contrib import admin
from django.views.generic import TemplateView from django.views.generic import TemplateView
urlpatterns = patterns( urlpatterns = [
'',
url(r'^$', TemplateView.as_view(template_name="index.html"), name="index"), url(r'^$', TemplateView.as_view(template_name="index.html"), name="index"),
url(r'^empty/$', TemplateView.as_view(template_name="empty.html"), name="empty"), url(r'^empty/$', TemplateView.as_view(template_name="empty.html"), name="empty"),
(r'^admin/', include(admin.site.urls)), url(r'^admin/', admin.site.urls),
) ]
[tox] [tox]
envlist = envlist =
{py27,pypy,py34}-django{16,17,18,19,110},py35-django{19,110},docs {py27,py34}-django{16,17,18,19,110,111}
pypy-django{16,17,18,19,110,111,-master}
py35-django{19,110,111,-master}
py36-django{111,-master}
docs
[testenv] [testenv]
basepython = basepython =
...@@ -8,6 +12,7 @@ basepython = ...@@ -8,6 +12,7 @@ basepython =
pypy: pypy pypy: pypy
py34: python3.4 py34: python3.4
py35: python3.5 py35: python3.5
py36: python3.6
deps = deps =
py{27,py}: mock py{27,py}: mock
py{27,py}: futures py{27,py}: futures
...@@ -16,6 +21,8 @@ deps = ...@@ -16,6 +21,8 @@ deps =
django18: Django>=1.8,<1.9 django18: Django>=1.8,<1.9
django19: Django>=1.9,<1.10 django19: Django>=1.9,<1.10
django110: Django>=1.10,<1.11 django110: Django>=1.10,<1.11
django111: Django>=1.11,<1.12
django-master: https://github.com/django/django/archive/master.tar.gz
jinja2 jinja2
jsmin==2.2.0 jsmin==2.2.0
ply==3.4 ply==3.4
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment