Fixed IOError in setup.py.

This commit is contained in:
Jakub Roztočil
2012-03-04 13:46:41 +01:00
parent 7ca6191902
commit c446d756ab
3 changed files with 10 additions and 4 deletions

View File

@ -14,10 +14,16 @@ if sys.version_info < (2, 7):
requirements.append('argparse>=1.2.1')
try:
long_description = open('README.md').read()
except IOError:
long_description = ''
setup(
name='httpie',version=httpie.__version__,
description=httpie.__doc__.strip(),
long_description=open('README.md').read(),
long_description=long_description,
url='http://httpie.org/',
download_url='https://github.com/jkbr/httpie',
author=httpie.__author__,
@ -48,5 +54,5 @@ setup(
'Topic :: System :: Networking',
'Topic :: Terminals',
'Topic :: Text Processing',
]
],
)