Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Commit

Permalink
Fallback to a default description when rst file is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
xcompass committed Aug 13, 2015
1 parent 8542107 commit 3788422
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,17 @@ def package_data(pkg, roots):


def readme():
with open('README.rst') as f:
return f.read()
if os.path.exists('README.rst'):
with open('README.rst') as f:
return f.read()
else:
# fallback to a default description
return 'UBC Peer Instruction Tool'


setup(
name='ubcpi-xblock',
version='0.4.1',
version='0.4.2',
description='UBC Peer Instruction XBlock',
long_description=readme(),
license='Affero GNU General Public License v3 (GPLv3)',
Expand Down

0 comments on commit 3788422

Please sign in to comment.