debian/0000775000000000000000000000000012326442206007171 5ustar debian/source/0000775000000000000000000000000012273265210010470 5ustar debian/source/format0000664000000000000000000000001412273265210011676 0ustar 3.0 (quilt) debian/python-requests-oauthlib-doc.docs0000664000000000000000000000002012273265210015574 0ustar docs/_build/htmldebian/copyright0000664000000000000000000000344512273265210011131 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: requests-oauthlib Upstream-Contact: Kenneth Reitz Source: https://github.com/requests/requests-oauthlib Files: * Copyright: 2013, Kenneth Reitz License: ISC Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. . THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. Files: /debian/* Copyright: 2013, Simon Fondrie-Teitler License: GPL-3+ This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . . On Debian systems, the full text of the GNU General Public License version 3 can be found in the file `/usr/share/common-licenses/GPL-3'. debian/changelog0000664000000000000000000000121112326442206011036 0ustar python-requests-oauthlib (0.4.0-1ubuntu1) utopic; urgency=medium * Cherrypick 12f3822a from upstream to fix body signature type requests. -- Dimitri John Ledkov Fri, 25 Apr 2014 12:18:22 +0100 python-requests-oauthlib (0.4.0-1) unstable; urgency=low * Upgrade to new upstream version * Simplified rules file * Update Standards-Version * Move to collab-maint -- Simon Fondrie-Teitler Sat, 01 Feb 2014 13:26:06 -0500 python-requests-oauthlib (0.3.3-1) unstable; urgency=low * Initial release. Closes: 721545 -- Simon Fondrie-Teitler Sun, 01 Sep 2013 15:54:52 -0500 debian/gbp.conf0000664000000000000000000000024112273265210010604 0ustar [DEFAULT] upstream-branch = master debian-branch = debian/unstable upstream-tag = v%(version)s compression = xz [git-buildpackage] export-dir = ../build-area/ debian/control0000664000000000000000000000460612326442216010603 0ustar Source: python-requests-oauthlib Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Simon Fondrie-Teitler Section: python Priority: optional Build-Depends: debhelper (>= 9), python-all (>= 2.6.6-3), python-setuptools (>= 0.6b3), python3-all, python3-setuptools, python-requests, python-oauthlib, python-sphinx, Homepage: https://github.com/requests/requests-oauthlib Standards-Version: 3.9.5 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/python-requests-oauthlib.git Vcs-Git: git://anonscm.debian.org/collab-maint/python-requests-oauthlib.git -b debian/unstable Package: python-requests-oauthlib Architecture: all Depends: ${misc:Depends}, ${python:Depends}, python-requests, python-oauthlib (>= 0.4.2) Description: module providing OAuthlib auth support for requests (Python 2) requests-oauthlib allows you to interact with OAuth 1 And OAuth 2 in greatly simplified ways through the requests library for Python. It will hide the quirks and hacks in OAuth 1, and will interface with all four of the grant types defined by the OAuth2 RFC. . This package provides the requests-oauthlib Python module for Python 2.x. Package: python3-requests-oauthlib Architecture: all Depends: ${misc:Depends}, ${python3:Depends}, python3-requests, python3-oauthlib (>= 0.4.2) Description: module providing OAuthlib auth support for requests (Python 3) requests-oauthlib allows you to interact with OAuth 1 And OAuth 2 in greatly simplified ways through the requests library for Python. It will hide the quirks and hacks in OAuth 1, and will interface with all four of the grant types defined by the OAuth2 RFC. . This package provides the requests-oauthlib Python module for Python 3.x. Package: python-requests-oauthlib-doc Architecture: all Section: doc Depends: ${sphinxdoc:Depends}, ${misc:Depends}, Description: module providing OAuthlib auth support for requests (Common Documentation) requests-oauthlib allows you to interact with OAuth 1 And OAuth 2 in greatly simplified ways through the requests library for Python. It will hide the quirks and hacks in OAuth 1, and will interface with all four of the grant types defined by the OAuth2 RFC. . This package provides the common documentation for the requests-oauthlib Python module. debian/python-requests-oauthlib-doc.doc-base0000664000000000000000000000050012273265210016324 0ustar Document: python-requests-oauthlib-doc Title: requests-oauthlib Manual Author: Kenneth Reitz Abstract: This manual describes how to use requests-oauthlib Section: Programming/Python Format: HTML Index: /usr/share/doc/python-requests-oauthlib-doc/html/index.html Files: /usr/share/doc/python-requests-oauthlib-doc/html/ debian/rules0000775000000000000000000000127012273265210010250 0ustar #!/usr/bin/make -f PYTHONS:=$(shell pyversions -vr) PYTHON3S:=$(shell py3versions -vr) %: dh $@ --buildsystem=python_distutils --with python2,python3,sphinxdoc override_dh_clean: dh_clean -O--buildsystem=python_distutils rm -rf build requests-oauthlib.egg-info rm -rf docs/_build/ override_dh_auto_build: dh_auto_build make -C docs html override_dh_auto_install: set -e && for pyvers in $(PYTHONS); do \ python$$pyvers setup.py install --install-layout=deb \ --root $(CURDIR)/debian/python-requests-oauthlib; \ done set -e && for pyvers in $(PYTHON3S); do \ python$$pyvers setup.py install --install-layout=deb \ --root $(CURDIR)/debian/python3-requests-oauthlib; \ done debian/watch0000664000000000000000000000025612273265210010224 0ustar version=3 opts=dversionmangle=s/\+dfsg\d+$// \ http://pypi.python.org/packages/source/r/requests-oauthlib/ requests-oauthlib-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz))) debian/patches/0000775000000000000000000000000012326442117010621 5ustar debian/patches/12f3822a1a0f3c265fc1d7c218a6fdb9fa8e0d3a.patch0000664000000000000000000000250212326442117017477 0ustar From dbad4836fed8d789e77469e2befb0c3a6ad263da Mon Sep 17 00:00:00 2001 From: Dimitri John Ledkov Date: Tue, 22 Apr 2014 03:42:19 +0100 Subject: [PATCH] When signature_type is body, set appropriate content-type header. Fixes requests/requests-oauthlib#115 --- requests_oauthlib/oauth1_auth.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) --- a/requests_oauthlib/oauth1_auth.py +++ b/requests_oauthlib/oauth1_auth.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- from __future__ import unicode_literals from oauthlib.common import extract_params -from oauthlib.oauth1 import (Client, SIGNATURE_HMAC, SIGNATURE_TYPE_AUTH_HEADER) +from oauthlib.oauth1 import (Client, SIGNATURE_HMAC, SIGNATURE_TYPE_AUTH_HEADER, SIGNATURE_TYPE_BODY) CONTENT_TYPE_FORM_URLENCODED = 'application/x-www-form-urlencoded' CONTENT_TYPE_MULTI_PART = 'multipart/form-data' @@ -50,7 +50,8 @@ # this point. content_type = r.headers.get('Content-Type', '') - if not content_type and extract_params(r.body): + if (not content_type and extract_params(r.body) + or self.client.signature_type == SIGNATURE_TYPE_BODY): content_type = CONTENT_TYPE_FORM_URLENCODED if not isinstance(content_type, unicode): content_type = content_type.decode('utf-8') debian/patches/series0000664000000000000000000000005712326442106012036 0ustar 12f3822a1a0f3c265fc1d7c218a6fdb9fa8e0d3a.patch debian/compat0000664000000000000000000000000212273265210010366 0ustar 9