debian/0000755000000000000000000000000012250375654007177 5ustar debian/patches/0000755000000000000000000000000012250375654010626 5ustar debian/patches/series0000644000000000000000000000006612250375462012042 0ustar testurlsdjango16.patch needtemplatestopasstests.patch debian/patches/needtemplatestopasstests.patch0000644000000000000000000000204212250375462017011 0ustar Description: We need to add templates in the build dir for running tests Author: Olivier Berger --- django-conneg-0.9.4.orig/setup.py +++ django-conneg-0.9.4/setup.py @@ -1,5 +1,6 @@ from distutils.core import setup from distutils.command.install import INSTALL_SCHEMES +from setuptools import find_packages import os from django_conneg import __version__ @@ -67,7 +68,7 @@ setup( author='IT Services, University of Oxford', author_email='infodev@it.ox.ac.uk', version=__version__, - packages=packages, + packages=find_packages(), license='BSD', url='https://github.com/ox-it/django-conneg', long_description=open('README.rst').read(), @@ -82,6 +83,7 @@ setup( data_files=data_files, install_requires=install_requires, dependency_links=dependency_links, + include_package_data=True, ) --- django-conneg-0.9.4.orig/MANIFEST.in +++ django-conneg-0.9.4/MANIFEST.in @@ -1,3 +1,4 @@ include requirements.txt include README.rst +recursive-include django_conneg *.py *.html debian/patches/testurlsdjango16.patch0000644000000000000000000000132212250375462015061 0ustar Description: Adjusting to Django 1.6 for the urls.py of the tests Author: Olivier Berger --- django-conneg-0.9.4.orig/django_conneg/tests/urls.py +++ django-conneg-0.9.4/django_conneg/tests/urls.py @@ -1,4 +1,4 @@ -from django.conf.urls.defaults import patterns, url +from django.conf.urls import patterns, url from django.conf import settings from django.http import HttpResponse, HttpResponseRedirect from django.utils.decorators import method_decorator @@ -23,4 +23,4 @@ class LoginRequiredView(HTMLView, JSONVi urlpatterns = patterns('', url(r'^optional-auth/$', OptionalAuthView.as_view()), url(r'^login-required/$', LoginRequiredView.as_view()), -) \ No newline at end of file +) debian/README.source0000644000000000000000000000044712250375462011360 0ustar This package was initially debianized by the upstream author, Alexander Dutton . It was later adapted to create an official Debian package by Olivier Berger, making it a non-native package. -- Olivier Berger , Fri, 29 Nov 2013 10:14:21 +0100 debian/python-django-conneg.pyremove0000644000000000000000000000006412250375462015014 0ustar django_conneg/test_settings.py django_conneg/tests/ debian/control0000644000000000000000000000306412250375462010602 0ustar Source: django-conneg Section: python Priority: optional Maintainer: Olivier Berger Uploaders: Debian Python Modules Team , Olivier Berger Build-Depends: debhelper (>= 8), dh-python, python-all, python-setuptools, python-mock, # python3-all, # python3-setuptools, python-django (>= 1.6) Standards-Version: 3.9.4 X-Python-Version: >= 2.7 X-Python3-Version: >= 3.3 Homepage: https://github.com/ox-it/django-conneg Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/django-conneg/trunk/ Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/django-conneg/ Package: python-django-conneg Architecture: all Depends: ${misc:Depends}, ${python:Depends}, python-django (>= 1.6) #Description: Framework for content-negotiated views in Django (Python 2) Description: Framework for content-negotiated views in Django django-conneg provides a simple and extensible framework for producing views that content-negotiate in Django. # . # This is the Python 2 version of the package. # Package: python3-django-conneg # Architecture: all # Depends: ${misc:Depends}, # ${python3:Depends}, # python-django (>= 1.6) # Description: Framework for content-negotiated views in Django (Python 3) # django-conneg provides a simple and extensible framework for producing # views that content-negotiate in Django. # . # This is the Python 3 version of the package. debian/changelog0000644000000000000000000000026112250375524011044 0ustar django-conneg (0.9.4-1) unstable; urgency=low * Create official Debian packaging (Closes: #730634). -- Olivier Berger Fri, 06 Dec 2013 17:09:00 +0100 debian/watch0000644000000000000000000000023012250375462010220 0ustar version=3 opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/django-conneg-$1\.tar\.gz/ \ https://github.com/ox-it/django-conneg/tags .*/v?(\d\S*)\.tar\.gz debian/pyversions0000644000000000000000000000000512245741361011332 0ustar 2.6- debian/source/0000755000000000000000000000000012250375654010477 5ustar debian/source/format0000644000000000000000000000001412250375462011702 0ustar 3.0 (quilt) debian/docs0000644000000000000000000000001312250375462010041 0ustar README.rst debian/rules0000755000000000000000000000202312250375462010251 0ustar #!/usr/bin/make -f #export DH_VERBOSE=1 export PYBUILD_NAME=django-conneg #MY_PYBUILD_OPTION=-v #MY_DJANGOADMIN_OPTION=-v 3 %: # dh $@ --with python2,python3 --buildsystem=pybuild dh $@ --with python2 --buildsystem=pybuild override_dh_auto_test: pybuild $(MY_PYBUILD_OPTION) --test -i python{version} -p 2.7 --dir . --system=custom --test-args 'cd {build_dir}; django-admin test $(MY_DJANGOADMIN_OPTION) --settings=django_conneg.test_settings --pythonpath=. django_conneg.tests' # pybuild $(MY_PYBUILD_OPTION) --test -i python{version} -p 3.3 --dir . --system=custom --test-args 'cd {build_dir}; django3-admin test $(MY_DJANGOADMIN_OPTION) --settings=django_conneg.test_settings --pythonpath=. django_conneg.tests' # override_dh_install: # dh_install # rm -fr debian/python3-django-conneg/usr/lib/python3.3/dist-packages/django_conneg/tests/ # rm -fr debian/python3-django-conneg/usr/lib/python3.3/dist-packages/django_conneg/test_settings.py # rm -fr debian/python3-django-conneg/usr/lib/python3/dist-packages/django_conneg/tests/ debian/compat0000644000000000000000000000000212250375462010372 0ustar 7 debian/python3-django-conneg.pyremove0000644000000000000000000000006412250375462015077 0ustar django_conneg/test_settings.py django_conneg/tests/ debian/README0000644000000000000000000000034112245741361010051 0ustar The Debian Package python-django-conneg ---------------------------- Native source package from . -- Alexander Dutton Mon, 19 Dec 2011 14:14:33 +0000 debian/copyright0000644000000000000000000000406012250375462011127 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Contact: IT Services, University of Oxford Source: https://github.com/ox-it/django-conneg Files: * Copyright: (c) 2011-2013, University of Oxford License: BSD-3-clause Copyright (c) 2011-2013, University of Oxford All rights reserved. . Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the University of Oxford nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE UNIVERSITY OF OXFORD BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Files: debian/* Copyright: 2012-2013 University of Oxford 2013 Olivier Berger License: BSD-3-clause The Debian packaging source files are released under the same terms as the upstream sources.