From 37c3f098a38a69a8b591a19a5b7bd7d625044fc1 Mon Sep 17 00:00:00 2001 From: Henrik Blidh Date: Wed, 3 Feb 2016 14:06:39 +0100 Subject: [PATCH] Heroku deploy patch Fixes #7. --- bankid/__init__.py | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/bankid/__init__.py b/bankid/__init__.py index 1306b4e..2b09109 100644 --- a/bankid/__init__.py +++ b/bankid/__init__.py @@ -2,11 +2,15 @@ # -*- coding: utf-8 -*- """Release data for the PyBankID project.""" -from .client import BankIDClient -import bankid.exceptions as exceptions -from .testcert import create_bankid_test_server_cert_and_key +# A quick and dirty fix for installations on Heroku. +try: + from .client import BankIDClient + import bankid.exceptions as exceptions + from .testcert import create_bankid_test_server_cert_and_key -__all__ = ['BankIDClient', 'exceptions', 'create_bankid_test_server_cert_and_key', 'version'] + __all__ = ['BankIDClient', 'exceptions', 'create_bankid_test_server_cert_and_key', 'version'] +except ImportError: + pass # Name of the package for release purposes. This is the name which labels # the tarballs and RPMs made by distutils, so it's best to lowercase it. @@ -17,9 +21,9 @@ # version. _version_major = 0 _version_minor = 3 -_version_patch = 0 +_version_patch = 1 # _version_extra = 'dev4' -# _version_extra = 'a1' +#_version_extra = 'rc1' _version_extra = '' # Uncomment this for full releases # Construct full version string from these.