Skip to content
Open
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ language: python

python:
- "2.7"
- "3.4"
- "3.5"

before_install:
- "pip install --upgrade pip wheel"
Expand Down
2 changes: 2 additions & 0 deletions rest_framework_httpsignature/authentication.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import unicode_literals

from rest_framework import authentication
from rest_framework import exceptions
from httpsig import HeaderSigner
Expand Down
4 changes: 3 additions & 1 deletion rest_framework_httpsignature/tests.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import unicode_literals

from django.test import SimpleTestCase, TestCase, RequestFactory
from django.contrib.auth import get_user_model
from rest_framework_httpsignature.authentication import SignatureAuthentication
Expand Down Expand Up @@ -137,7 +139,7 @@ def test_build_signature(self):
signature_string = self.auth.build_signature(
self.KEYID, SECRET, req)
signature = re.match(
'.*signature="(.+)",?.*', signature_string).group(1)
r'.*signature="(.*?)",?.*', signature_string).group(1)
self.assertEqual(expected_signature, signature)


Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
'Framework :: Django',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe also add these?

'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: Implementation :: CPython',

'License :: OSI Approved :: MIT License',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Security',
Expand Down
2 changes: 0 additions & 2 deletions test_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,4 @@
'rest_framework_httpsignature',
)

ROOT_URLCONF = 'rest_framework_httpsignature.tests'

SECRET_KEY = 'MY PRIVATE SECRET'