From 4437b707f97fc83c8a9e809e58d41ddf0066d385 Mon Sep 17 00:00:00 2001 From: Tres Seaver Date: Fri, 19 Dec 2014 10:45:09 -0500 Subject: [PATCH] Use README.rst as 'long_description' for 'setup()'. Fixes #440. --- setup.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/setup.py b/setup.py index 9527d1c4822d..5d273c26def4 100644 --- a/setup.py +++ b/setup.py @@ -1,14 +1,14 @@ -import sys +import os -try: - from setuptools import setup, find_packages -except ImportError: - from distutils.core import setup, find_packages +from setuptools import setup +from setuptools import find_packages +here = os.path.abspath(os.path.dirname(__file__)) -if sys.version_info <= (2, 5): - raise Exception('Requires Python Version 2.6 or above... exiting.') + +with open(os.path.join(here, 'README.rst')) as f: + README = f.read() REQUIREMENTS = [ @@ -27,6 +27,7 @@ description='API Client library for Google Cloud', author='JJ Geewax', author_email='jj@geewax.org', + long_description=README, scripts=[], url='https://github.com/GoogleCloudPlatform/gcloud-python', packages=find_packages(),