Skip to content

Commit

Permalink
Fix pip install README cannot read exception
Browse files Browse the repository at this point in the history
Signed-off-by: Ein Verne <[email protected]>
  • Loading branch information
einverne committed Oct 17, 2017
1 parent 88a53e0 commit 9a69fad
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
include README.md
include LICENSE
10 changes: 6 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@


def long_desc():
with open('README.md') as f:
return f.read()

try:
with open('README.md') as f:
return f.read()
except IOError:
return ''

setup(
name="douban-dl",
version="0.0.2",
version="0.0.3",
description="douban downloader, include album, celebrity",
long_description=long_desc(),
url="https://github.com/einverne/douban-dl",
Expand Down

0 comments on commit 9a69fad

Please sign in to comment.