diff --git a/.travis.yml b/.travis.yml index 0e63505..df230e1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,8 @@ language: python python: - "2.7" + - "3.3" + - "3.4" # command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors install: pip install -r requirements-test.txt diff --git a/django_pesapal/tests.py b/django_pesapal/tests.py new file mode 100644 index 0000000..97a580c --- /dev/null +++ b/django_pesapal/tests.py @@ -0,0 +1,7 @@ + +from django.test import TestCase + + +class UserModelTestCase(TestCase): + + pass diff --git a/django_pesapal/urls.py b/django_pesapal/urls.py index 7d8a6c7..d5a2fd5 100644 --- a/django_pesapal/urls.py +++ b/django_pesapal/urls.py @@ -1,6 +1,10 @@ +# -*- coding: utf-8 -*- + +from __future__ import absolute_import + from django.conf.urls import patterns, url -import views +from . import views urlpatterns = patterns( '', diff --git a/requirements.txt b/requirements.txt index d1599b2..9a15f1b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ -Django>=1.7,<=1.7.8 -wheel==0.23.0 -oauth2==1.5.211 -requests==2.1 +Django>=1.7 +wheel==0.26.0 +oauth2==1.9.0 +requests[security]>=2.8.1 # Custom requirements git+https://github.com/dcramer/django-uuidfield.git@9bd27e9#egg=django-uuidfield diff --git a/sandbox/sandbox/settings.py b/sandbox/sandbox/settings.py index c251004..5ff5130 100644 --- a/sandbox/sandbox/settings.py +++ b/sandbox/sandbox/settings.py @@ -119,6 +119,10 @@ PESAPAL_OAUTH_CALLBACK_URL ='transaction_completed' PESAPAL_OAUTH_SIGNATURE_METHOD ='SignatureMethod_HMAC_SHA1' PESAPAL_TRANSACTION_DEFAULT_REDIRECT_URL = 'payment' +PESAPAL_DEMO = True +PESAPAL_OAUTH_CALLBACK_URL = 'transaction_completed' +PESAPAL_OAUTH_SIGNATURE_METHOD = 'SignatureMethod_HMAC_SHA1' +PESAPAL_TRANSACTION_DEFAULT_REDIRECT_URL = 'transaction_completed' PESAPAL_TRANSACTION_FAILED_REDIRECT_URL = '' PESAPAL_ITEM_DESCRIPTION = False PESAPAL_TRANSACTION_MODEL = 'testapp.Transaction' @@ -128,4 +132,4 @@ try: from local_config import * except ImportError: - pass \ No newline at end of file + pass diff --git a/setup.py b/setup.py index 1621941..454cbde 100644 --- a/setup.py +++ b/setup.py @@ -34,10 +34,10 @@ packages=find_packages(exclude=['sandbox*']), package_data={'django_pesapal': ['templates/django_pesapal/*.html']}, install_requires=[ - 'Django>=1.7,<=1.7.8', - 'oauth2==1.5.211', + 'Django>=1.7', + 'oauth2==1.9.0', 'django-uuidfield<=0.6.0', - 'requests==2.1', + 'requests[security]==2.8.1', ], dependency_links=[ "https://github.com/dcramer/django-uuidfield/archive/9bd27e9.zip#egg=django-uuidfield-0.6.0", @@ -55,7 +55,8 @@ 'Natural Language :: English', 'Programming Language :: Python', 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3.3', 'Topic :: Internet :: WWW/HTTP', 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', ], -) \ No newline at end of file +) diff --git a/tox.ini b/tox.ini index f9d0793..fa9abfa 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py27, py33 +envlist = py27, py33, py34 [testenv] setenv =