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

Commit 3788422

Browse files
committed
Fallback to a default description when rst file is not available
1 parent 8542107 commit 3788422

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

setup.py

+7-3
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,17 @@ def package_data(pkg, roots):
2121

2222

2323
def readme():
24-
with open('README.rst') as f:
25-
return f.read()
24+
if os.path.exists('README.rst'):
25+
with open('README.rst') as f:
26+
return f.read()
27+
else:
28+
# fallback to a default description
29+
return 'UBC Peer Instruction Tool'
2630

2731

2832
setup(
2933
name='ubcpi-xblock',
30-
version='0.4.1',
34+
version='0.4.2',
3135
description='UBC Peer Instruction XBlock',
3236
long_description=readme(),
3337
license='Affero GNU General Public License v3 (GPLv3)',

0 commit comments

Comments
 (0)