Skip to content

Commit c446d75

Browse files
committed
Fixed IOError in setup.py.
1 parent 7ca6191 commit c446d75

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,4 +104,4 @@ Most of the flags mirror the arguments you would use with `requests.request`. Se
104104

105105
### Changelog
106106

107-
* [0.1.5](https://github.com/jkbr/httpie/compare/0.1.4...0.1.5) (2012-03-04)
107+
* [0.1.6](https://github.com/jkbr/httpie/compare/0.1.4...0.1.6) (2012-03-04)

httpie/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
44
"""
55
__author__ = 'Jakub Roztocil'
6-
__version__ = '0.1.5'
6+
__version__ = '0.1.6'
77
__licence__ = 'BSD'

setup.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,16 @@
1414
requirements.append('argparse>=1.2.1')
1515

1616

17+
try:
18+
long_description = open('README.md').read()
19+
except IOError:
20+
long_description = ''
21+
22+
1723
setup(
1824
name='httpie',version=httpie.__version__,
1925
description=httpie.__doc__.strip(),
20-
long_description=open('README.md').read(),
26+
long_description=long_description,
2127
url='http://httpie.org/',
2228
download_url='https://github.com/jkbr/httpie',
2329
author=httpie.__author__,
@@ -48,5 +54,5 @@
4854
'Topic :: System :: Networking',
4955
'Topic :: Terminals',
5056
'Topic :: Text Processing',
51-
]
57+
],
5258
)

0 commit comments

Comments
 (0)