From c446d756ab9f63c9228154c2844ee816c304fcc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Roztoc=CC=8Cil?= Date: Sun, 4 Mar 2012 13:46:41 +0100 Subject: [PATCH] Fixed IOError in setup.py. --- README.md | 2 +- httpie/__init__.py | 2 +- setup.py | 10 ++++++++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 9c51f60d73..fc9523f80c 100644 --- a/README.md +++ b/README.md @@ -104,4 +104,4 @@ Most of the flags mirror the arguments you would use with `requests.request`. Se ### Changelog -* [0.1.5](https://github.com/jkbr/httpie/compare/0.1.4...0.1.5) (2012-03-04) +* [0.1.6](https://github.com/jkbr/httpie/compare/0.1.4...0.1.6) (2012-03-04) diff --git a/httpie/__init__.py b/httpie/__init__.py index 56f70955c0..1bf9b61bc3 100644 --- a/httpie/__init__.py +++ b/httpie/__init__.py @@ -3,5 +3,5 @@ """ __author__ = 'Jakub Roztocil' -__version__ = '0.1.5' +__version__ = '0.1.6' __licence__ = 'BSD' diff --git a/setup.py b/setup.py index 80f0a57c8f..75e232550d 100644 --- a/setup.py +++ b/setup.py @@ -14,10 +14,16 @@ 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 @@ 'Topic :: System :: Networking', 'Topic :: Terminals', 'Topic :: Text Processing', - ] + ], )