Add compatibility with Django 1.11.
This commit is contained in:
parent
85627139f6
commit
190b584ad5
10
.travis.yml
10
.travis.yml
|
@ -3,17 +3,27 @@ env:
|
||||||
- DJANGO_VERSION=1.8.0
|
- DJANGO_VERSION=1.8.0
|
||||||
- DJANGO_VERSION=1.9.0
|
- DJANGO_VERSION=1.9.0
|
||||||
- DJANGO_VERSION=1.10.0
|
- DJANGO_VERSION=1.10.0
|
||||||
|
- DJANGO_VERSION=1.11.0
|
||||||
python:
|
python:
|
||||||
- "2.7"
|
- "2.7"
|
||||||
- "3.3"
|
- "3.3"
|
||||||
- "3.4"
|
- "3.4"
|
||||||
- "3.5"
|
- "3.5"
|
||||||
|
- "3.6"
|
||||||
matrix:
|
matrix:
|
||||||
exclude:
|
exclude:
|
||||||
- python: "3.3"
|
- python: "3.3"
|
||||||
env: "DJANGO_VERSION=1.9.0"
|
env: "DJANGO_VERSION=1.9.0"
|
||||||
- python: "3.3"
|
- python: "3.3"
|
||||||
env: "DJANGO_VERSION=1.10.0"
|
env: "DJANGO_VERSION=1.10.0"
|
||||||
|
- python: "3.3"
|
||||||
|
env: "DJANGO_VERSION=1.11.0"
|
||||||
|
- python: "3.6"
|
||||||
|
env: "DJANGO_VERSION=1.8.0"
|
||||||
|
- python: "3.6"
|
||||||
|
env: "DJANGO_VERSION=1.9.0"
|
||||||
|
- python: "3.6"
|
||||||
|
env: "DJANGO_VERSION=1.10.0"
|
||||||
install:
|
install:
|
||||||
- pip install django~=$DJANGO_VERSION
|
- pip install django~=$DJANGO_VERSION
|
||||||
- pip install .
|
- pip install .
|
||||||
|
|
|
@ -91,7 +91,7 @@ class Tests(TestCase):
|
||||||
with self.modify_settings(INSTALLED_APPS={
|
with self.modify_settings(INSTALLED_APPS={
|
||||||
'prepend': self.test_apps
|
'prepend': self.test_apps
|
||||||
}):
|
}):
|
||||||
html = get_template(self.unique_id).render(Context())
|
html = get_template(self.unique_id).render({})
|
||||||
previous = ""
|
previous = ""
|
||||||
for test_string in ["project"] + self.test_apps:
|
for test_string in ["project"] + self.test_apps:
|
||||||
self.assertTrue(test_string in html)
|
self.assertTrue(test_string in html)
|
||||||
|
|
5
setup.py
5
setup.py
|
@ -15,7 +15,7 @@ setup(
|
||||||
include_package_data = True,
|
include_package_data = True,
|
||||||
packages = find_packages(),
|
packages = find_packages(),
|
||||||
install_requires = [
|
install_requires = [
|
||||||
"django >= 1.8, < 1.11",
|
"django >= 1.8, < 2.0",
|
||||||
],
|
],
|
||||||
extras_require = {
|
extras_require = {
|
||||||
'dev': [
|
'dev': [
|
||||||
|
@ -28,10 +28,13 @@ setup(
|
||||||
"Intended Audience :: Developers",
|
"Intended Audience :: Developers",
|
||||||
"Operating System :: OS Independent",
|
"Operating System :: OS Independent",
|
||||||
"Programming Language :: Python",
|
"Programming Language :: Python",
|
||||||
|
"Programming Language :: Python :: 2",
|
||||||
"Programming Language :: Python :: 2.7",
|
"Programming Language :: Python :: 2.7",
|
||||||
"Programming Language :: Python :: 3",
|
"Programming Language :: Python :: 3",
|
||||||
"Programming Language :: Python :: 3.3",
|
"Programming Language :: Python :: 3.3",
|
||||||
"Programming Language :: Python :: 3.4",
|
"Programming Language :: Python :: 3.4",
|
||||||
|
"Programming Language :: Python :: 3.5",
|
||||||
|
"Programming Language :: Python :: 3.6",
|
||||||
"Framework :: Django",
|
"Framework :: Django",
|
||||||
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
|
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
|
||||||
"Topic :: Internet :: WWW/HTTP :: Site Management",
|
"Topic :: Internet :: WWW/HTTP :: Site Management",
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
|
urlpatterns = []
|
||||||
|
|
Loading…
Reference in New Issue