From 9fc9177742e8f1c1ee4f35e796d05575c0f58108 Mon Sep 17 00:00:00 2001 From: sneakypete81 Date: Sat, 6 Jul 2013 11:29:00 +0100 Subject: [PATCH] Store the openphoto-python version inside the package --- openphoto/__init__.py | 2 ++ setup.py | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/openphoto/__init__.py b/openphoto/__init__.py index b2523cf..07b07a1 100644 --- a/openphoto/__init__.py +++ b/openphoto/__init__.py @@ -4,6 +4,8 @@ import openphoto.api_photo import openphoto.api_tag import openphoto.api_album +__version__ = "0.3" + LATEST_API_VERSION = 2 class OpenPhoto(OpenPhotoHttp): diff --git a/setup.py b/setup.py index 309ed87..b978a24 100755 --- a/setup.py +++ b/setup.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +import openphoto requires = ['requests', 'requests_oauthlib'] @@ -15,7 +16,7 @@ except ImportError: 'requires': requires} setup(name='openphoto', - version='0.3', + version=openphoto.__version__, description='Python client library for Trovebox/Openphoto', author='Pete Burgers, James Walker', url='https://github.com/openphoto/openphoto-python',