Skip to content

Commit

Permalink
requests-jwt is now a separate library, use it instead
Browse files Browse the repository at this point in the history
  • Loading branch information
tgs committed May 28, 2014
1 parent cabe6d4 commit d465255
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 197 deletions.
10 changes: 5 additions & 5 deletions badgekit/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"""
import requests
import posixpath
from . import jwt_auth
import requests_jwt
from distutils.version import StrictVersion
try:
from urlparse import urljoin
Expand Down Expand Up @@ -191,12 +191,12 @@ class BadgeKitAPI(object):
def __init__(self, baseurl, secret, key='master'):
self.baseurl = baseurl

auth = jwt_auth.JWTAuth(secret)
auth = requests_jwt.JWTAuth(secret)
auth.add_field('key', key)
auth.expire(30)
auth.add_field('path', jwt_auth.payload_path)
auth.add_field('method', jwt_auth.payload_method)
auth.add_field('body', jwt_auth.payload_body)
auth.add_field('path', requests_jwt.payload_path)
auth.add_field('method', requests_jwt.payload_method)
auth.add_field('body', requests_jwt.payload_body)
self.auth = auth

def ping(self):
Expand Down
117 changes: 0 additions & 117 deletions badgekit/jwt_auth.py

This file was deleted.

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ def read(*parts):
license="MIT",
packages=find_packages(),
install_requires=[
'PyJWT',
'requests',
'requests-jwt>=0.3',
'setuptools',
],
tests_require=[
Expand Down
3 changes: 0 additions & 3 deletions test/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
from . import api_test
all_modules.append(api_test)

from . import jwt_auth_test
all_modules.append(jwt_auth_test)


def suite():
suite = unittest.TestSuite()
Expand Down
71 changes: 0 additions & 71 deletions test/jwt_auth_test.py

This file was deleted.

0 comments on commit d465255

Please sign in to comment.