debian/0000755000000000000000000000000012265361157007176 5ustar debian/copyright0000644000000000000000000000406412265320757011136 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: django-oauth-plus Source: http://code.larlet.fr/django-oauth-plus/ Files: * Copyright: 2008-2013 David Larlet Dan Wilson Jay Graves Ariel Nunez Jesper Noerh Toby White Thomas Johansson Micha©È Jaworski Andy Mroczkowski Atle Frenvik Sveen Andrei Kopats Alex Irpan Changhwan Song License: BSD-3-Clause Files: debian/* Copyright: 2013 Kouhei Maeda License: BSD-3-Clause License: BSD-3-Clause Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. 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. 3. Neither the name of the University 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 HOLDERS OR CONTRIBUTORS 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. debian/control0000644000000000000000000000147312265323436010604 0ustar Source: django-oauth-plus Section: python Priority: optional Maintainer: Kouhei Maeda Build-Depends: debhelper (>= 8.0.0), python-all (>= 2.6), python-setuptools, python-django (>= 1.3), python-oauth2 (>= 1.5.170), python-django-south (>= 0.7.5), quilt Standards-Version: 3.9.5 X-Python-Version: >= 2.6 Homepage: http://code.larlet.fr/django-oauth-plus/ Package: python-django-oauth-plus Architecture: all Provides: ${python:Provides} Depends: ${python:Depends}, ${misc:Depends}, python-django (>= 1.3), python-oauth2 (>= 1.5.170), python-django-south (>= 0.7.5) Description: Support of OAuth 1.0a in Django using python-oauth2 Support of OAuth 1.0a in Django using python-oauth2. This app will be compatible with OAuth 1.0a and Django 1.2, but will not be fully backward compatible with django-oauth. debian/watch0000644000000000000000000000012312173120510010203 0ustar version=3 http://code.larlet.fr/django-oauth-plus/downloads .*/(\d[\d.]+)\.tar\.gz debian/docs0000644000000000000000000000002112160457017010035 0ustar requirements.txt debian/changelog0000644000000000000000000000366412265331237011055 0ustar django-oauth-plus (2.2.3-1) unstable; urgency=medium * New upstream release * Fixed FTBFS with django 1.6 (Closes: #729827) - debian/rules: * Append PYTHONPATH=$(CURDIR)/oauth_provider at override_dh_auto_test section. * debian/control: - Standards-Version: Update 3.9.4 to 3.9.5. - Build-Depends: Append quilt. * debian/copyright: Add "Alex Irpan", "Changhwan Song". * debian/rules: - Append quilt option to dh command at "%" section. * debian/patches: - append_egg-info: * Append DEP3 headers * Update timestamp, and update PKG-INFO and SOURCES.txt. - add_setuptools_hg: Append DEP3 headers, and update timestamp. -- Kouhei Maeda Wed, 15 Jan 2014 06:54:21 +0900 django-oauth-plus (2.1.5-1) unstable; urgency=low * New upstream release -- Kouhei Maeda Mon, 30 Sep 2013 18:15:57 +0900 django-oauth-plus (2.1.4-1) unstable; urgency=low * New upstream release * debian/copyright: Add "Atle Frenvik Sveen", "Andrei Kopats". * debian/control: Append python-django-south to Build-Depends. * debian/patches: ppend_egg-info - Update Version in django_oauth_plus.egg-info/PKG-INFO - Update django_oauth_plus.egg-info/SOURCES.txt - Remove oauth_provider/tests/tests.py - Append oauth_provider/tests/protocol.py, oauth_provider/tests/tests.py oauth_provider/tests/xauth.py - Update South version in django_oauth_plus.egg-info/requires.txt -- Kouhei Maeda Sun, 01 Sep 2013 23:42:43 +0900 django-oauth-plus (2.1.2-2) unstable; urgency=low * debian/control - changed "Description" of django-oauth-plus itself, because it is a general description of OAuth. -- Kouhei Maeda Tue, 30 Jul 2013 10:21:06 +0900 django-oauth-plus (2.1.2-1) unstable; urgency=low * Initial release (Closes: #717538) -- Kouhei Maeda Mon, 22 Jul 2013 11:57:58 +0900 debian/source/0000755000000000000000000000000012160457017010471 5ustar debian/source/format0000644000000000000000000000001412160457017011677 0ustar 3.0 (quilt) debian/compat0000644000000000000000000000000212160457017010367 0ustar 8 debian/rules0000755000000000000000000000040612265330371010250 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@ --with python2,quilt override_dh_auto_test: set -e ; \ PYTHONPATH=$(CURDIR)/oauth_provider \ python $(CURDIR)/oauth_provider/runtests/runtests.py debian/patches/0000755000000000000000000000000012265330001010605 5ustar debian/patches/add_setuptools_hg0000644000000000000000000002436212265330001014246 0ustar Description: Append setuptools_hg by python setup.py build Origin: upstream Last-Update: 2014-01-15 Index: django-oauth-plus-2.2.3/setuptools_hg-0.4-py2.7.egg/EGG-INFO/PKG-INFO =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ django-oauth-plus-2.2.3/setuptools_hg-0.4-py2.7.egg/EGG-INFO/PKG-INFO 2014-01-15 06:45:12.246642151 +0900 @@ -0,0 +1,82 @@ +Metadata-Version: 1.1 +Name: setuptools-hg +Version: 0.4 +Summary: Setuptools/distribute plugin for finding files under Mercurial version control. +Home-page: http://bitbucket.org/jezdez/setuptools_hg/ +Author: Jannis Leidel +Author-email: jannis@leidel.info +License: GPL2 +Description: setuptools_hg + ============= + + setuptools_hg is a plugin for setuptools/distribute to enable it to find + files under the Mercurial version control system. + + It uses the Mercurial Python library by default and falls back to use the + command line programm `hg(1)`_. That's especially useful inside virtualenvs + that don't have access to the system wide installed Mercurial lib (e.g. when + created with ``--no-site-packages``). + + .. note:: The setuptools feature + + You can read about the hooks used by setuptool_hg in the setuptools_ or + distribute_ documentation. It basically returns a list of files that are + under Mercurial version control when running the ``setup`` function, e.g. if + you create a source and binary distribution. It's a simple yet effective way + of not having to define package data (non-Python files) manually in MANIFEST + templates (``MANIFEST.in``). + + .. _setuptools: http://peak.telecommunity.com/DevCenter/setuptools#adding-support-for-other-revision-control-systems + .. _distribute: http://packages.python.org/distribute/setuptools.html#adding-support-for-other-revision-control-systems + .. _`hg(1)`: http://www.selenic.com/mercurial/hg.1.html + + Usage + ***** + + Here's an example of a setup.py that uses setuptools_hg:: + + from setuptools import setup, find_packages + + setup( + name="HelloWorld", + version="0.1", + packages=find_packages(), + setup_requires=["setuptools_hg"], + ) + + If you run this setup.py setuptools will automatically download setuptools_hg + to the directory where the setup.py is located at (and won't install it + anywhere else) to get all package data files from the Mercurial repository. + + Options + ******* + + Set the ``HG_SETUPTOOLS_FORCE_CMD`` environment variable before running + setup.py if you want to enforce the use of the hg command. + """ + + CHANGES + ******* + + 0.4 + --- + + - fix a bug if the current distribution is not versionned with mercurial. [kiorky] + - fix https://bitbucket.org/jezdez/setuptools_hg/issue/5/using-hg-command-line-with-py3-does-not [kiorky] + +Platform: UNKNOWN +Classifier: Development Status :: 5 - Production/Stable +Classifier: Programming Language :: Python +Classifier: Programming Language :: Python :: 2 +Classifier: Programming Language :: Python :: 2.4 +Classifier: Programming Language :: Python :: 2.5 +Classifier: Programming Language :: Python :: 2.6 +Classifier: Programming Language :: Python :: 2.7 +Classifier: Programming Language :: Python :: 3 +Classifier: Programming Language :: Python :: 3.1 +Classifier: Programming Language :: Python :: 3.2 +Classifier: Intended Audience :: Developers +Classifier: Operating System :: OS Independent +Classifier: License :: OSI Approved :: GNU General Public License (GPL) +Classifier: Topic :: Software Development :: Version Control +Classifier: Framework :: Setuptools Plugin Index: django-oauth-plus-2.2.3/setuptools_hg-0.4-py2.7.egg/EGG-INFO/SOURCES.txt =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ django-oauth-plus-2.2.3/setuptools_hg-0.4-py2.7.egg/EGG-INFO/SOURCES.txt 2014-01-15 06:45:12.246642151 +0900 @@ -0,0 +1,12 @@ +.hgignore +.hgtags +LICENSE +README.rst +setup.cfg +setup.py +setuptools_hg.py +setuptools_hg.egg-info/PKG-INFO +setuptools_hg.egg-info/SOURCES.txt +setuptools_hg.egg-info/dependency_links.txt +setuptools_hg.egg-info/entry_points.txt +setuptools_hg.egg-info/top_level.txt \ No newline at end of file Index: django-oauth-plus-2.2.3/setuptools_hg-0.4-py2.7.egg/EGG-INFO/dependency_links.txt =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ django-oauth-plus-2.2.3/setuptools_hg-0.4-py2.7.egg/EGG-INFO/dependency_links.txt 2014-01-15 06:45:12.246642151 +0900 @@ -0,0 +1 @@ + Index: django-oauth-plus-2.2.3/setuptools_hg-0.4-py2.7.egg/EGG-INFO/entry_points.txt =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ django-oauth-plus-2.2.3/setuptools_hg-0.4-py2.7.egg/EGG-INFO/entry_points.txt 2014-01-15 06:45:12.246642151 +0900 @@ -0,0 +1,3 @@ +[setuptools.file_finders] +hg = setuptools_hg:hg_file_finder + Index: django-oauth-plus-2.2.3/setuptools_hg-0.4-py2.7.egg/EGG-INFO/top_level.txt =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ django-oauth-plus-2.2.3/setuptools_hg-0.4-py2.7.egg/EGG-INFO/top_level.txt 2014-01-15 06:45:12.246642151 +0900 @@ -0,0 +1 @@ +setuptools_hg Index: django-oauth-plus-2.2.3/setuptools_hg-0.4-py2.7.egg/EGG-INFO/zip-safe =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ django-oauth-plus-2.2.3/setuptools_hg-0.4-py2.7.egg/EGG-INFO/zip-safe 2014-01-15 06:45:12.246642151 +0900 @@ -0,0 +1 @@ + Index: django-oauth-plus-2.2.3/setuptools_hg-0.4-py2.7.egg/setuptools_hg.py =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ django-oauth-plus-2.2.3/setuptools_hg-0.4-py2.7.egg/setuptools_hg.py 2014-01-15 06:45:12.246642151 +0900 @@ -0,0 +1,134 @@ +""" +A plugin for setuptools to find files under the Mercurial version control +system which uses the Python library by default and falls back to use the +command line programm hg(1). +""" +__version__ = '0.4' +__author__ = 'Jannis Leidel' +__all__ = ['hg_file_finder'] + +import os +import subprocess +import sys + +try: + from mercurial.__version__ import version + from mercurial import hg, ui, cmdutil +except: + hg = None + +try: + from mercurial.repo import RepoError +except: + try: + from mercurial.error import RepoError + except: + pass + +try: + from distutils import log +except ImportError: + log = None + +OLD_VERSIONS = ('1.0', '1.0.1', '1.0.2') + +PY3 = sys.version[0] == "3" + +if os.environ.get('HG_SETUPTOOLS_FORCE_CMD', False): + hg = None + + +def find_files_with_cmd(dirname="."): + """ + Use the hg command to recursively find versioned files in dirname. + """ + try: + mydir = os.path.abspath(dirname) + if not os.path.exists(os.path.join(mydir, '.hg')): + raise Exception('not a mercurial repo') + proc = subprocess.Popen(['hg', 'locate', '-I', mydir], + stdin=subprocess.PIPE, + stderr=subprocess.PIPE, + stdout=subprocess.PIPE, + cwd=dirname) + stdout, stderr = proc.communicate() + except: + # Let's behave a bit nicer and return nothing if something fails. + return [] + if not PY3: + output = stdout.splitlines() + else: + output = (x.decode('utf-8') for x in stdout.splitlines()) + return output + + +def find_files_with_lib(dirname): + """ + Use the Mercurial library to recursively find versioned files in dirname. + """ + try: + try: + repo = hg.repository(ui.ui(), path=dirname) + except RepoError: + return + # tuple of (modified, added, removed, deleted, unknown, ignored, clean) + modified, added, removed, deleted, unknown = repo.status()[:5] + + # exclude all files that hg knows about, but haven't been added, + # or have been deleted, removed, or have an unknown status + excluded = removed + deleted + unknown + + if version in OLD_VERSIONS: + from mercurial import util + node = None + for src, abs, rel, exact in cmdutil.walk(repo, [], {}, node=node, + badmatch=util.always, default='relglob'): + if src == 'b': + continue + if not node and abs not in repo.dirstate: + continue + if abs in excluded: + continue + yield abs + else: + rev = None + try: + match = cmdutil.match(repo, [], {}, default='relglob') + except: + # Probably mercurial 1.8+ + from mercurial import scmutil + match = scmutil.match(repo[None], [], {}, default='relglob') + + match.bad = lambda x, y: False + for abs in repo[rev].walk(match): + if not rev and abs not in repo.dirstate: + continue + if abs in excluded: + continue + yield abs + except Exception: + if log: + log.warn("Error in setuptools_hg: %s" % sys.exc_info()[1]) + # try calling hg command as a last resort + find_files_with_cmd(dirname) + + +def hg_file_finder(dirname="."): + """ + Find the files in ``dirname`` under Mercurial version control. + """ + if not dirname: + dirname = "." + if hg is None: + return find_files_with_cmd(dirname) + return find_files_with_lib(dirname) + + +if __name__ == "__main__": + from pprint import pprint + + if len(sys.argv) != 2: + print("USAGE: %s DIRNAME" % sys.argv[0]) + sys.exit(1) + + pprint(hg_file_finder(sys.argv[1])) debian/patches/series0000644000000000000000000000004212265324017012030 0ustar add_setuptools_hg append_egg-info debian/patches/append_egg-info0000644000000000000000000001023412265327757013602 0ustar Description: Append egg-info builten by python setup.py build Origin: upstream Last-Update: 2014-01-15 Index: django-oauth-plus-2.2.3/django_oauth_plus.egg-info/PKG-INFO =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ django-oauth-plus-2.2.3/django_oauth_plus.egg-info/PKG-INFO 2014-01-15 06:45:13.578094217 +0900 @@ -0,0 +1,17 @@ +Metadata-Version: 1.1 +Name: django-oauth-plus +Version: 2.2.3 +Summary: Support of OAuth 1.0a in Django using python-oauth2. +Home-page: http://code.welldev.org/django-oauth-plus/ +Author: David Larlet +Author-email: david@larlet.fr +License: UNKNOWN +Description: UNKNOWN +Platform: UNKNOWN +Classifier: Development Status :: 4 - Beta +Classifier: Environment :: Web Environment +Classifier: Intended Audience :: Developers +Classifier: License :: OSI Approved :: BSD License +Classifier: Operating System :: OS Independent +Classifier: Programming Language :: Python +Classifier: Framework :: Django Index: django-oauth-plus-2.2.3/django_oauth_plus.egg-info/SOURCES.txt =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ django-oauth-plus-2.2.3/django_oauth_plus.egg-info/SOURCES.txt 2014-01-15 06:45:13.578094217 +0900 @@ -0,0 +1,44 @@ +setup.py +django_oauth_plus.egg-info/PKG-INFO +django_oauth_plus.egg-info/SOURCES.txt +django_oauth_plus.egg-info/dependency_links.txt +django_oauth_plus.egg-info/not-zip-safe +django_oauth_plus.egg-info/requires.txt +django_oauth_plus.egg-info/top_level.txt +oauth_provider/__init__.py +oauth_provider/admin.py +oauth_provider/backends.py +oauth_provider/compat.py +oauth_provider/consts.py +oauth_provider/decorators.py +oauth_provider/forms.py +oauth_provider/managers.py +oauth_provider/models.py +oauth_provider/responses.py +oauth_provider/urls.py +oauth_provider/utils.py +oauth_provider/views.py +oauth_provider/migrations/0001_initial.py +oauth_provider/migrations/0002_auto__add_field_consumer_xauth_allowed.py +oauth_provider/migrations/0003_auto__add_field_nonce_timestamp.py +oauth_provider/migrations/0004_resource_to_scope.py +oauth_provider/migrations/0005_auto__chg_field_token_scope.py +oauth_provider/migrations/__init__.py +oauth_provider/runtests/__init__.py +oauth_provider/runtests/manage.py +oauth_provider/runtests/runtests.py +oauth_provider/runtests/settings.py +oauth_provider/runtests/urls.py +oauth_provider/runtests/test_app/__init__.py +oauth_provider/runtests/test_app/models.py +oauth_provider/store/__init__.py +oauth_provider/store/db.py +oauth_provider/tests/__init__.py +oauth_provider/tests/auth.py +oauth_provider/tests/compat.py +oauth_provider/tests/decorators.py +oauth_provider/tests/issues.py +oauth_provider/tests/models.py +oauth_provider/tests/protocol.py +oauth_provider/tests/tests.py +oauth_provider/tests/xauth.py \ No newline at end of file Index: django-oauth-plus-2.2.3/django_oauth_plus.egg-info/dependency_links.txt =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ django-oauth-plus-2.2.3/django_oauth_plus.egg-info/dependency_links.txt 2014-01-15 06:45:13.578094217 +0900 @@ -0,0 +1 @@ + Index: django-oauth-plus-2.2.3/django_oauth_plus.egg-info/not-zip-safe =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ django-oauth-plus-2.2.3/django_oauth_plus.egg-info/not-zip-safe 2014-01-15 06:45:13.578094217 +0900 @@ -0,0 +1 @@ + Index: django-oauth-plus-2.2.3/django_oauth_plus.egg-info/requires.txt =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ django-oauth-plus-2.2.3/django_oauth_plus.egg-info/requires.txt 2014-01-15 06:45:13.578094217 +0900 @@ -0,0 +1,3 @@ +Django>=1.3 +oauth2>=1.5.170 +South>=0.7.5 \ No newline at end of file Index: django-oauth-plus-2.2.3/django_oauth_plus.egg-info/top_level.txt =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ django-oauth-plus-2.2.3/django_oauth_plus.egg-info/top_level.txt 2014-01-15 06:45:13.578094217 +0900 @@ -0,0 +1 @@ +oauth_provider