diff -Nru django-cors-headers-1.1.0/debian/changelog django-cors-headers-1.1.0/debian/changelog --- django-cors-headers-1.1.0/debian/changelog 2015-08-07 02:22:31.000000000 +0000 +++ django-cors-headers-1.1.0/debian/changelog 2016-09-30 23:15:49.000000000 +0000 @@ -1,5 +1,11 @@ +django-cors-headers (1.1.0-1~reddit1~trusty1) trusty; urgency=low + + * Make version reddit specific + + -- Rich McKinley (reddit) Fri, 30 Sep 2016 23:15:49 +0000 + django-cors-headers (1.1.0-1) unstable; urgency=low - * Initial upload. Closes: #794829. + * source package automatically created by stdeb 0.8.5 - -- Brian May Fri, 07 Aug 2015 11:42:16 +1000 + -- Otto Yiu Fri, 30 Sep 2016 23:15:09 +0000 diff -Nru django-cors-headers-1.1.0/debian/compat django-cors-headers-1.1.0/debian/compat --- django-cors-headers-1.1.0/debian/compat 2015-08-07 01:42:16.000000000 +0000 +++ django-cors-headers-1.1.0/debian/compat 2016-09-30 23:15:09.000000000 +0000 @@ -1 +1 @@ -9 +7 diff -Nru django-cors-headers-1.1.0/debian/control django-cors-headers-1.1.0/debian/control --- django-cors-headers-1.1.0/debian/control 2015-08-07 02:30:44.000000000 +0000 +++ django-cors-headers-1.1.0/debian/control 2016-09-30 23:15:09.000000000 +0000 @@ -1,30 +1,17 @@ Source: django-cors-headers -Maintainer: Debian Python Modules Team -Uploaders: Brian May +Maintainer: Otto Yiu Section: python Priority: optional -Build-Depends: debhelper (>= 9), dh-python, - python-setuptools (>= 0.6b3), python-mock, python-django, python-all (>= 2.6.6-3), - python3-setuptools (>= 0.6b3), python3-mock, python3-django, python3-all -Standards-Version: 3.9.6 -Homepage: https://github.com/ottoyiu/django-cors-headers -Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/django-cors-headers/trunk/ -Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/django-cors-headers/trunk/ +Build-Depends: python-setuptools (>= 0.6b3), python-all (>= 2.6.6-3), debhelper (>= 7) +Standards-Version: 3.9.1 + + Package: python-django-cors-headers Architecture: all Depends: ${misc:Depends}, ${python:Depends} -Description: Django application for handling CORS. - A Django application for handling the server headers required for Cross-Origin - Resource Sharing (CORS). - . - This package contains the Python 2 version. +Description: django-cors-headers is a Django application for handling the + + + -Package: python3-django-cors-headers -Architecture: all -Depends: ${misc:Depends}, ${python:Depends} -Description: Django application for handling CORS. - A Django application for handling the server headers required for Cross-Origin - Resource Sharing (CORS). - . - This package contains the Python 3 version. diff -Nru django-cors-headers-1.1.0/debian/copyright django-cors-headers-1.1.0/debian/copyright --- django-cors-headers-1.1.0/debian/copyright 2015-08-07 02:26:41.000000000 +0000 +++ django-cors-headers-1.1.0/debian/copyright 1970-01-01 00:00:00.000000000 +0000 @@ -1,27 +0,0 @@ -Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ -Upstream-Name: django-cors-headers -Source: https://pypi.python.org/pypi/django-cors-headers - -Files: * -Copyright: 2013 Otto Yiu and other contributors -License: MIT - -License: MIT - 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. diff -Nru django-cors-headers-1.1.0/debian/patches/disable_broken_tests.patch django-cors-headers-1.1.0/debian/patches/disable_broken_tests.patch --- django-cors-headers-1.1.0/debian/patches/disable_broken_tests.patch 2015-08-07 02:12:50.000000000 +0000 +++ django-cors-headers-1.1.0/debian/patches/disable_broken_tests.patch 1970-01-01 00:00:00.000000000 +0000 @@ -1,20 +0,0 @@ -Index: django-cors-headers-1.1.0/corsheaders/tests.py -=================================================================== ---- django-cors-headers-1.1.0.orig/corsheaders/tests.py -+++ django-cors-headers-1.1.0/corsheaders/tests.py -@@ -10,6 +10,7 @@ from corsheaders.middleware import ACCES - from corsheaders import defaults as settings - from mock import Mock - from mock import patch -+import unittest - - - class settings_override(object): -@@ -322,6 +323,7 @@ class TestCorsMiddlewareProcessResponse( - processed = self.middleware.process_response(request, response) - self.assertEqual(processed.get(ACCESS_CONTROL_ALLOW_ORIGIN, None), None) - -+ @unittest.skip("broken test") - def test_process_response_when_custom_model_enabled(self, settings): - from corsheaders.models import CorsModel - CorsModel.objects.create(cors='foo.google.com') diff -Nru django-cors-headers-1.1.0/debian/patches/series django-cors-headers-1.1.0/debian/patches/series --- django-cors-headers-1.1.0/debian/patches/series 2015-08-07 02:11:45.000000000 +0000 +++ django-cors-headers-1.1.0/debian/patches/series 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -disable_broken_tests.patch diff -Nru django-cors-headers-1.1.0/debian/rules django-cors-headers-1.1.0/debian/rules --- django-cors-headers-1.1.0/debian/rules 2015-08-07 02:31:06.000000000 +0000 +++ django-cors-headers-1.1.0/debian/rules 2016-09-30 23:15:09.000000000 +0000 @@ -1,10 +1,31 @@ #!/usr/bin/make -f -export PYBUILD_NAME=django-cors-headers +# This file was automatically generated by stdeb 0.8.5 at +# Fri, 30 Sep 2016 23:15:09 +0000 + %: - dh $@ --with python2,python3 --buildsystem=pybuild + dh $@ --with python2 --buildsystem=python_distutils + + +override_dh_auto_clean: + python setup.py clean -a + find . -name \*.pyc -exec rm {} \; + + + +override_dh_auto_build: + python setup.py build --force + + + +override_dh_auto_install: + python setup.py install --force --root=debian/python-django-cors-headers --no-compile -O0 --install-layout=deb + + + +override_dh_python2: + dh_python2 --no-guessing-versions + + + -override_dh_auto_test: - PYBUILD_SYSTEM=custom \ - PYBUILD_TEST_ARGS="{interpreter} $(CURDIR)/debian/run_tests.py" \ - dh_auto_test diff -Nru django-cors-headers-1.1.0/debian/run_tests.py django-cors-headers-1.1.0/debian/run_tests.py --- django-cors-headers-1.1.0/debian/run_tests.py 2015-08-07 02:09:11.000000000 +0000 +++ django-cors-headers-1.1.0/debian/run_tests.py 1970-01-01 00:00:00.000000000 +0000 @@ -1,24 +0,0 @@ -# -*- coding: utf-8 -*- -import os -import sys -import django - -os.environ['DJANGO_SETTINGS_MODULE'] = 'test_settings' -test_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) -sys.path.insert(0, test_dir) - -from django.test.utils import get_runner -from django.conf import settings as s - -if django.VERSION > (1, 7, 0): - django.setup() - - -def run_tests(): - TestRunner = get_runner(s) - test_runner = TestRunner(verbosity=1, interactive=True) - failuers = test_runner.run_tests(['corsheaders.tests']) - sys.exit(bool(failuers)) - -if __name__ == '__main__': - run_tests() diff -Nru django-cors-headers-1.1.0/debian/source/options django-cors-headers-1.1.0/debian/source/options --- django-cors-headers-1.1.0/debian/source/options 1970-01-01 00:00:00.000000000 +0000 +++ django-cors-headers-1.1.0/debian/source/options 2016-09-30 23:15:09.000000000 +0000 @@ -0,0 +1 @@ +extend-diff-ignore="\.egg-info$" \ No newline at end of file diff -Nru django-cors-headers-1.1.0/debian/test_settings.py django-cors-headers-1.1.0/debian/test_settings.py --- django-cors-headers-1.1.0/debian/test_settings.py 2015-08-07 02:15:24.000000000 +0000 +++ django-cors-headers-1.1.0/debian/test_settings.py 1970-01-01 00:00:00.000000000 +0000 @@ -1,28 +0,0 @@ -# Django settings for testproject project. - -DEBUG = True -TEMPLATE_DEBUG = DEBUG - -DATABASES = { - 'default': { - 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. - 'NAME': 'sqlite.db', # Or path to database file if using sqlite3. - 'USER': '', # Not used with sqlite3. - 'PASSWORD': '', # Not used with sqlite3. - 'HOST': '', # Set to empty string for localhost. Not used with sqlite3. - 'PORT': '', # Set to empty string for default. Not used with sqlite3. - } -} - -# Make this unique, and don't share it with anybody. -SECRET_KEY = 'u@x-aj9(hoh#rb-^ymf#g2jx_hp0vj7u5#b@ag1n^seu9e!%cy' - -MIDDLEWARE_CLASSES = ( - 'django.middleware.common.CommonMiddleware', - 'django.contrib.sessions.middleware.SessionMiddleware', - 'django.middleware.csrf.CsrfViewMiddleware', - 'django.contrib.auth.middleware.AuthenticationMiddleware', - 'django.contrib.messages.middleware.MessageMiddleware', -) - -TEST_RUNNER = "django.test.runner.DiscoverRunner" diff -Nru django-cors-headers-1.1.0/debian/watch django-cors-headers-1.1.0/debian/watch --- django-cors-headers-1.1.0/debian/watch 2015-08-07 01:46:52.000000000 +0000 +++ django-cors-headers-1.1.0/debian/watch 1970-01-01 00:00:00.000000000 +0000 @@ -1,3 +0,0 @@ -version=3 -opts=uversionmangle=s/(rc|a|b|c)/~$1/ \ -http://pypi.debian.net/django-cors-headers/django-cors-headers-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))