[Python-modules-commits] [djangorestframework-gis] 06/08: merge patched-experimental into experimental

Michael Fladischer fladi at moszumanska.debian.org
Sun May 28 10:44:04 UTC 2017


This is an automated email from the git hooks/post-receive script.

fladi pushed a commit to branch experimental
in repository djangorestframework-gis.

commit 99c056e388da6ac2a733522e5549d47234365a94
Merge: 6a9f5fc ddebe68
Author: Michael Fladischer <FladischerMichael at fladi.at>
Date:   Sun May 28 11:29:55 2017 +0200

    merge patched-experimental into experimental

 CHANGES.rst                                        |  6 +++
 PKG-INFO                                           |  2 +-
 README.rst                                         | 53 ++++++++++++++++++----
 debian/.git-dpm                                    |  6 +--
 ...02-Do-not-import-local-settings-for-tests.patch |  2 +-
 ...0003-Add-TEMPLATES-setting-for-Django-1.8.patch |  2 +-
 debian/patches/spatialite.patch                    |  2 +-
 djangorestframework_gis.egg-info/PKG-INFO          |  2 +-
 djangorestframework_gis.egg-info/SOURCES.txt       |  1 -
 rest_framework_gis/__init__.py                     |  2 +-
 rest_framework_gis/filters.py                      |  4 ++
 setup.cfg                                          |  1 +
 setup.py                                           |  2 +-
 tests/__init__.py                                  |  0
 tests/django_restframework_gis_tests/tests.py      | 12 +++--
 15 files changed, 72 insertions(+), 25 deletions(-)

diff --cc debian/.git-dpm
index e27d6f9,0000000..129b202
mode 100644,000000..100644
--- a/debian/.git-dpm
+++ b/debian/.git-dpm
@@@ -1,11 -1,0 +1,11 @@@
 +# see git-dpm(1) from git-dpm package
- 6d233b6157cdd310e065d9b6a823a041999ed9ab
- 6d233b6157cdd310e065d9b6a823a041999ed9ab
- 7cb183ba6e670f84ceaab76b69253abd39aea136
++ddebe683135f9a43cbaa14ff3d37f6084b41c2fc
++ddebe683135f9a43cbaa14ff3d37f6084b41c2fc
++f7c155b8b2740357a5ff6b1e52f3e45aaf9da388
 +f7c155b8b2740357a5ff6b1e52f3e45aaf9da388
 +djangorestframework-gis_0.11.2.orig.tar.gz
 +33a0512c6037cf77e98f2f67fae7262057f1a7d3
 +27821
 +debianTag="debian/%e%v"
 +patchedTag="patched/%e%v"
 +upstreamTag="upstream/%e%u"
diff --cc debian/patches/0002-Do-not-import-local-settings-for-tests.patch
index 388b4b6,0000000..8a5299b
mode 100644,000000..100644
--- a/debian/patches/0002-Do-not-import-local-settings-for-tests.patch
+++ b/debian/patches/0002-Do-not-import-local-settings-for-tests.patch
@@@ -1,23 -1,0 +1,23 @@@
- From a0af8d352d0497a3169c501111d331ba577870c3 Mon Sep 17 00:00:00 2001
++From c4f9a151fb868de2ef87ee4d687f46e5352b4ca8 Mon Sep 17 00:00:00 2001
 +From: Michael Fladischer <FladischerMichael at fladi.at>
 +Date: Thu, 7 Jan 2016 12:23:10 +0100
 +Subject: Do not import local settings for tests.
 +
 +---
 + tests/settings.py | 6 ------
 + 1 file changed, 6 deletions(-)
 +
 +diff --git a/tests/settings.py b/tests/settings.py
 +index c628f97..0fb4e30 100644
 +--- a/tests/settings.py
 ++++ b/tests/settings.py
 +@@ -75,9 +75,3 @@ STATIC_URL = '/static/'
 + ANONYMOUS_USER_ID=-1
 + 
 + TEMPLATE_STRING_IF_INVALID = 'INVALID_TEMPLATE: %s END_INVALID_TEMPLATE'
 +-
 +-# local settings must be imported before test runner otherwise they'll be ignored
 +-try:
 +-    from local_settings import *
 +-except ImportError:
 +-    pass
diff --cc debian/patches/0003-Add-TEMPLATES-setting-for-Django-1.8.patch
index d03e4c0,0000000..fa7d237
mode 100644,000000..100644
--- a/debian/patches/0003-Add-TEMPLATES-setting-for-Django-1.8.patch
+++ b/debian/patches/0003-Add-TEMPLATES-setting-for-Django-1.8.patch
@@@ -1,36 -1,0 +1,36 @@@
- From 6d233b6157cdd310e065d9b6a823a041999ed9ab Mon Sep 17 00:00:00 2001
++From ddebe683135f9a43cbaa14ff3d37f6084b41c2fc Mon Sep 17 00:00:00 2001
 +From: Michael Fladischer <FladischerMichael at fladi.at>
 +Date: Mon, 17 Oct 2016 13:44:45 +0200
 +Subject: Add TEMPLATES setting for Django 1.8+.
 +
 +---
 + tests/settings.py | 19 +++++++++++++++++++
 + 1 file changed, 19 insertions(+)
 +
 +diff --git a/tests/settings.py b/tests/settings.py
 +index 0fb4e30..a419f71 100644
 +--- a/tests/settings.py
 ++++ b/tests/settings.py
 +@@ -75,3 +75,22 @@ STATIC_URL = '/static/'
 + ANONYMOUS_USER_ID=-1
 + 
 + TEMPLATE_STRING_IF_INVALID = 'INVALID_TEMPLATE: %s END_INVALID_TEMPLATE'
 ++
 ++TEMPLATES = [
 ++    {
 ++        'BACKEND': 'django.template.backends.django.DjangoTemplates',
 ++        'DIRS': [],
 ++        'APP_DIRS': True,
 ++        'OPTIONS': {
 ++            'context_processors': [
 ++                'django.contrib.auth.context_processors.auth',
 ++                'django.template.context_processors.debug',
 ++                'django.template.context_processors.i18n',
 ++                'django.template.context_processors.media',
 ++                'django.template.context_processors.static',
 ++                'django.template.context_processors.tz',
 ++                'django.contrib.messages.context_processors.messages',
 ++            ],
 ++        },
 ++    },
 ++]
diff --cc debian/patches/spatialite.patch
index e6d533a,0000000..aacc6a2
mode 100644,000000..100644
--- a/debian/patches/spatialite.patch
+++ b/debian/patches/spatialite.patch
@@@ -1,53 -1,0 +1,53 @@@
- From 0b06141202a2b9164f58fa721a37a32d0f4c3419 Mon Sep 17 00:00:00 2001
++From 4322dded754e96879a0a2f1f88ce32484df4653c Mon Sep 17 00:00:00 2001
 +From: Michael Fladischer <fladi at debian.org>
 +Date: Thu, 8 Oct 2015 08:58:54 -0700
 +Subject: Use spatialite backend for tests.
 +
 + Some of the upstream tests are designed to test features only supported on a
 + PostGIS enable database. To make the tests run with an embedded spatialite
 + database, those tests are skipped if the database connection ist not done using
 + the PostGIS driver.
 + See the following URL for a compatibility matrix:
 + https://docs.djangoproject.com/en/1.7/ref/contrib/gis/db-api/#compatibility-tables
 +Forwarded: not-needed
 +
 +Patch-Name: spatialite.patch
 +---
 + tests/settings.py | 14 ++++++++------
 + 1 file changed, 8 insertions(+), 6 deletions(-)
 +
 +diff --git a/tests/settings.py b/tests/settings.py
 +index 39b5df0..c628f97 100644
 +--- a/tests/settings.py
 ++++ b/tests/settings.py
 +@@ -7,15 +7,15 @@ TEMPLATE_DEBUG = DEBUG
 + 
 + DATABASES = {
 +     'default': {
 +-        'ENGINE': 'django.contrib.gis.db.backends.postgis',
 +-        'NAME': 'django_restframework_gis',
 +-        'USER': 'postgres',
 +-        'PASSWORD': 'postgres',
 +-        'HOST': '',
 +-        'PORT': ''
 ++        'ENGINE': 'django.contrib.gis.db.backends.spatialite',
 ++        'NAME': 'test.db',
 +     },
 + }
 + 
 ++# Support mod_spatialite:
 ++# https://code.djangoproject.com/ticket/23901
 ++SPATIALITE_LIBRARY_PATH = 'mod_spatialite'
 ++
 + SECRET_KEY = 'fn)t*+$)ugeyip6-#txyy$5wf2ervc0d2n#h)qb)y5 at ly$t*@w'
 + 
 + INSTALLED_APPS = (
 +@@ -72,6 +72,8 @@ MEDIA_URL = '/media/'
 + STATIC_ROOT = '%s/static/' % SITE_ROOT
 + STATIC_URL = '/static/'
 + 
 ++ANONYMOUS_USER_ID=-1
 ++
 + TEMPLATE_STRING_IF_INVALID = 'INVALID_TEMPLATE: %s END_INVALID_TEMPLATE'
 + 
 + # local settings must be imported before test runner otherwise they'll be ignored

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/djangorestframework-gis.git



More information about the Python-modules-commits mailing list