From 3b7cbfdef2dc34881330832b652c2c7c2abd0da9 Mon Sep 17 00:00:00 2001 From: Ben Sigelman Date: Mon, 27 Oct 2014 16:30:01 -0700 Subject: [PATCH] detect file presence correctly --- CHANGES.txt | 3 +++ facebookads/api.py | 2 +- setup.py | 12 ++++++------ 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index e26543ca..6e5409c3 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,3 +1,6 @@ +0.2.2 +- Fixed install regression caused by 0.2.1 README change + 0.2.1 - Fixed setup.py accounting for wrong README diff --git a/facebookads/api.py b/facebookads/api.py index 6df6ff94..d084043f 100644 --- a/facebookads/api.py +++ b/facebookads/api.py @@ -132,7 +132,7 @@ class FacebookAdsApi(object): this sdk. """ - SDK_VERSION = '0.2.1' + SDK_VERSION = '0.2.2' API_VERSION = 'v2.1' diff --git a/setup.py b/setup.py index d3a0494c..ceb2c846 100644 --- a/setup.py +++ b/setup.py @@ -25,16 +25,16 @@ import os this_dir = os.path.dirname(__file__) -if os.path.isfile('README.rst'): - readme_filename = 'README.rst' -elif os.path.isfile('README.md'): - readme_filename = 'README.md' +if os.path.isfile(os.path.join(this_dir, 'README.rst')): + readme_basename = 'README.rst' +elif os.path.isfile(os.path.join(this_dir, 'README.md')): + readme_basename = 'README.md' -readme_filename = os.path.join(this_dir, readme_filename) +readme_filename = os.path.join(this_dir, readme_basename) requirements_filename = os.path.join(this_dir, 'requirements.txt') PACKAGE_NAME = 'facebookads' -PACKAGE_VERSION = '0.2.1' +PACKAGE_VERSION = '0.2.2' PACKAGE_AUTHOR = 'Facebook' PACKAGE_AUTHOR_EMAIL = '' PACKAGE_URL = 'https://github.com/facebook/facebook-python-ads-sdk'