Skip to content

Commit 6b71b1a

Browse files
committed
Merge pull request #448 from tseaver/440-add_long_description_to_setup
Use README.rst as 'long_description' for 'setup()'.
2 parents 21e5f45 + 4437b70 commit 6b71b1a

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

setup.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
import sys
1+
import os
22

33

4-
try:
5-
from setuptools import setup, find_packages
6-
except ImportError:
7-
from distutils.core import setup, find_packages
4+
from setuptools import setup
5+
from setuptools import find_packages
86

7+
here = os.path.abspath(os.path.dirname(__file__))
98

10-
if sys.version_info <= (2, 5):
11-
raise Exception('Requires Python Version 2.6 or above... exiting.')
9+
10+
with open(os.path.join(here, 'README.rst')) as f:
11+
README = f.read()
1212

1313

1414
REQUIREMENTS = [
@@ -27,6 +27,7 @@
2727
description='API Client library for Google Cloud',
2828
author='JJ Geewax',
2929
author_email='jj@geewax.org',
30+
long_description=README,
3031
scripts=[],
3132
url='https://github.com/GoogleCloudPlatform/gcloud-python',
3233
packages=find_packages(),

0 commit comments

Comments
 (0)