[Python-modules-commits] r31011 - in packages/djangorestframework-gis/trunk (15 files)
fladi-guest at users.alioth.debian.org
fladi-guest at users.alioth.debian.org
Sun Oct 12 17:09:24 UTC 2014
Date: Sunday, October 12, 2014 @ 17:09:23
Author: fladi-guest
Revision: 31011
Initial release (Closes: #764969).
Added:
packages/djangorestframework-gis/trunk/debian/
packages/djangorestframework-gis/trunk/debian/changelog
packages/djangorestframework-gis/trunk/debian/compat
packages/djangorestframework-gis/trunk/debian/control
packages/djangorestframework-gis/trunk/debian/copyright
packages/djangorestframework-gis/trunk/debian/docs
packages/djangorestframework-gis/trunk/debian/patches/
packages/djangorestframework-gis/trunk/debian/patches/series
packages/djangorestframework-gis/trunk/debian/patches/spatialite.patch
packages/djangorestframework-gis/trunk/debian/python-djangorestframework-gis.lintian-overrides
packages/djangorestframework-gis/trunk/debian/rules
packages/djangorestframework-gis/trunk/debian/source/
packages/djangorestframework-gis/trunk/debian/source/format
packages/djangorestframework-gis/trunk/debian/source/lintian-overrides
packages/djangorestframework-gis/trunk/debian/watch
Property changes on: packages/djangorestframework-gis/trunk/debian
___________________________________________________________________
Added: mergeWithUpstream
+ 1
Added: packages/djangorestframework-gis/trunk/debian/changelog
===================================================================
--- packages/djangorestframework-gis/trunk/debian/changelog (rev 0)
+++ packages/djangorestframework-gis/trunk/debian/changelog 2014-10-12 17:09:23 UTC (rev 31011)
@@ -0,0 +1,5 @@
+djangorestframework-gis (0.7-1) unstable; urgency=low
+
+ * Initial release (Closes: #764969).
+
+ -- Michael Fladischer <FladischerMichael at fladi.at> Sun, 12 Oct 2014 18:46:46 +0200
Added: packages/djangorestframework-gis/trunk/debian/compat
===================================================================
--- packages/djangorestframework-gis/trunk/debian/compat (rev 0)
+++ packages/djangorestframework-gis/trunk/debian/compat 2014-10-12 17:09:23 UTC (rev 31011)
@@ -0,0 +1 @@
+9
Added: packages/djangorestframework-gis/trunk/debian/control
===================================================================
--- packages/djangorestframework-gis/trunk/debian/control (rev 0)
+++ packages/djangorestframework-gis/trunk/debian/control 2014-10-12 17:09:23 UTC (rev 31011)
@@ -0,0 +1,42 @@
+Source: djangorestframework-gis
+Section: python
+Priority: optional
+Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+Uploaders: Michael Fladischer <FladischerMichael at fladi.at>
+Build-Depends: debhelper (>= 9),
+ dh-python,
+ python-all,
+ python-djangorestframework,
+ python-django-filter,
+ python-gdal,
+ python-pyspatialite,
+ python-pysqlite2,
+ python-setuptools,
+ spatialite-bin
+Standards-Version: 3.9.6
+X-Python-Version: >= 2.6
+Homepage: https://github.com/dmeehan/django-rest-framework-gis
+Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/djangorestframework-gis/trunk/
+Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/djangorestframework-gis/trunk/
+
+Package: python-djangorestframework-gis
+Architecture: all
+Depends: python-djangorestframework,
+ python-django-filter,
+ ${misc:Depends},
+ ${python:Depends}
+Description: Geographic add-ons for Django REST Framework
+ djangorestframework-gis extends the Django REST Framework to also handle
+ geographic data as used by GeoDjango during serialization and deserialization.
+ It provides the following features:
+ .
+ * GeometryField: This field handles GeoDjango geometry fields, providing
+ custom to_native and from_native methods for GeoJSON input/output.
+ * GeoModelSerializer: This serializer updates the field_mapping dictionary to
+ include field mapping of GeoDjango geometry fields to the above
+ GeometryField.
+ * GeoFeatureModelSerializer: GeoFeatureModelSerializer is a subclass of
+ GeoModelSerializer which will output data in a format that is GeoJSON
+ compatible.
+ * InBBOXFilter: Filters a queryset to only those instances within a certain
+ bounding box.
Added: packages/djangorestframework-gis/trunk/debian/copyright
===================================================================
--- packages/djangorestframework-gis/trunk/debian/copyright (rev 0)
+++ packages/djangorestframework-gis/trunk/debian/copyright 2014-10-12 17:09:23 UTC (rev 31011)
@@ -0,0 +1,31 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: djangorestframework-gis
+Upstream-Contact: Douglas Meehan <dmeehan at gmail.com>
+Source: https://github.com/djangonauts/django-rest-framework-gis
+
+Files: *
+Copyright: 2013-2014, Douglas Meehan <dmeehan at gmail.com>
+License: Expat
+
+Files: debian/*
+Copyright: 2014, Fladischer Michael <FladischerMichael at fladi.at>
+License: Expat
+
+License: Expat
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+ .
+ The above copyright notice and this permission notice shall be included in
+ all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ THE SOFTWARE.
Added: packages/djangorestframework-gis/trunk/debian/docs
===================================================================
--- packages/djangorestframework-gis/trunk/debian/docs (rev 0)
+++ packages/djangorestframework-gis/trunk/debian/docs 2014-10-12 17:09:23 UTC (rev 31011)
@@ -0,0 +1 @@
+README.rst
Added: packages/djangorestframework-gis/trunk/debian/patches/series
===================================================================
--- packages/djangorestframework-gis/trunk/debian/patches/series (rev 0)
+++ packages/djangorestframework-gis/trunk/debian/patches/series 2014-10-12 17:09:23 UTC (rev 31011)
@@ -0,0 +1 @@
+spatialite.patch
Added: packages/djangorestframework-gis/trunk/debian/patches/spatialite.patch
===================================================================
--- packages/djangorestframework-gis/trunk/debian/patches/spatialite.patch (rev 0)
+++ packages/djangorestframework-gis/trunk/debian/patches/spatialite.patch 2014-10-12 17:09:23 UTC (rev 31011)
@@ -0,0 +1,87 @@
+Description: Disable tests that only work with PostGIS
+ 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
+Author: Michael Fladischer <FladischerMichael at fladi.at>
+Last-Update: 2014-10-12
+Forwarded: not-needed
+
+--- a/tests/settings.py
++++ b/tests/settings.py
+@@ -5,12 +5,8 @@
+
+ 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',
+ },
+ }
+
+@@ -18,11 +14,11 @@
+
+ INSTALLED_APPS = (
+ 'django.contrib.staticfiles',
+-
++
+ # rest framework
+ 'rest_framework',
+ 'rest_framework_gis',
+-
++
+ # test app
+ 'django_restframework_gis_tests'
+ )
+@@ -40,6 +36,8 @@
+ 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
+--- a/tests/django_restframework_gis_tests/tests.py
++++ b/tests/django_restframework_gis_tests/tests.py
+@@ -9,7 +9,9 @@
+
+
+ import urllib
++from django.conf import settings
+ from django.test import TestCase
++from django.test.testcases import skipIf
+ from django.contrib.gis.geos import GEOSGeometry, Polygon
+ from django.core.urlresolvers import reverse
+
+@@ -471,6 +473,7 @@
+ for result in response.data['features']:
+ self.assertEqual(result['properties']['name'] in ('isContained', 'isEqualToBounds', 'overlaps'), True)
+
++ @skipIf(settings.DATABASES['default']["ENGINE"] != "django.contrib.gis.db.backends.postgis", "PostGIS not installed")
+ def test_TileFilter_filtering(self):
+ """
+ Checks that the TMSTileFilter returns only objects strictly contained
+@@ -520,6 +523,7 @@
+ for result in response.data['features']:
+ self.assertEqual(result['properties']['name'] in ('isContained', 'isEqualToBounds', 'overlaps'), True)
+
++ @skipIf(settings.DATABASES['default']["ENGINE"] != "django.contrib.gis.db.backends.postgis", "PostGIS not installed")
+ def test_DistanceToPointFilter_filtering(self):
+ """
+ Checks that the DistancFilter returns only objects within the given distance of the
+@@ -655,6 +659,7 @@
+ for result in response.data['features']:
+ self.assertEqual(result['properties']['name'] in (treasure_island.name), True)
+
++ @skipIf(settings.DATABASES['default']["ENGINE"] != "django.contrib.gis.db.backends.postgis", "PostGIS not installed")
+ def test_GeometryField_filtering(self):
+ """ Checks that the GeometryField allows sane filtering. """
+ self.assertEqual(Location.objects.count(), 0)
Added: packages/djangorestframework-gis/trunk/debian/python-djangorestframework-gis.lintian-overrides
===================================================================
--- packages/djangorestframework-gis/trunk/debian/python-djangorestframework-gis.lintian-overrides (rev 0)
+++ packages/djangorestframework-gis/trunk/debian/python-djangorestframework-gis.lintian-overrides 2014-10-12 17:09:23 UTC (rev 31011)
@@ -0,0 +1,2 @@
+# Upstream does not provide a separate changelog.
+python-djangorestframework-gis: no-upstream-changelog
Added: packages/djangorestframework-gis/trunk/debian/rules
===================================================================
--- packages/djangorestframework-gis/trunk/debian/rules (rev 0)
+++ packages/djangorestframework-gis/trunk/debian/rules 2014-10-12 17:09:23 UTC (rev 31011)
@@ -0,0 +1,17 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+export PYBUILD_NAME=djangorestframework-gis
+
+%:
+ dh $@ --with python2 --buildsystem=pybuild
+
+override_dh_auto_test:
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+ set -e; \
+ for python in $(shell pyversions -r); do \
+ $$python runtests.py ; \
+ done
+endif
Property changes on: packages/djangorestframework-gis/trunk/debian/rules
___________________________________________________________________
Added: svn:executable
+ *
Added: packages/djangorestframework-gis/trunk/debian/source/format
===================================================================
--- packages/djangorestframework-gis/trunk/debian/source/format (rev 0)
+++ packages/djangorestframework-gis/trunk/debian/source/format 2014-10-12 17:09:23 UTC (rev 31011)
@@ -0,0 +1 @@
+3.0 (quilt)
Added: packages/djangorestframework-gis/trunk/debian/source/lintian-overrides
===================================================================
--- packages/djangorestframework-gis/trunk/debian/source/lintian-overrides (rev 0)
+++ packages/djangorestframework-gis/trunk/debian/source/lintian-overrides 2014-10-12 17:09:23 UTC (rev 31011)
@@ -0,0 +1,2 @@
+# Upstream does not provide detached PGP signatures for their source tarballs.
+djangorestframework-gis source: debian-watch-may-check-gpg-signature
Added: packages/djangorestframework-gis/trunk/debian/watch
===================================================================
--- packages/djangorestframework-gis/trunk/debian/watch (rev 0)
+++ packages/djangorestframework-gis/trunk/debian/watch 2014-10-12 17:09:23 UTC (rev 31011)
@@ -0,0 +1,4 @@
+version=3
+opts=filenamemangle=s/.*\/v([\d\.]+.*)$/djangorestframework-gis-$1/ \
+https://github.com/djangonauts/django-rest-framework-gis/releases \
+/djangonauts/django-rest-framework-gis/archive/v([\d\.]+)\.tar\.gz
More information about the Python-modules-commits
mailing list