Skip to content

Commit 9309a1b

Browse files
authored
Merge pull request #7 from bxparks/develop
Fix setup.py so that 'pip3 install' doesn't need pypandoc and is more…
2 parents b802f09 + 6dae5fc commit 9309a1b

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

setup.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,17 @@
44
try:
55
import pypandoc
66
long_description = pypandoc.convert('README.md', 'rst', format='md')
7-
except (EnvironmentError, RuntimeError):
8-
with open('README.md', encoding="utf-8") as f:
9-
long_description = f.read()
7+
except:
8+
# If unable to convert, try inserting the raw README.md file.
9+
try:
10+
with open('README.md', encoding="utf-8") as f:
11+
long_description = f.read()
12+
except:
13+
# If all else fails, use some reasonable string.
14+
long_description = 'BigQuery schema generator.'
1015

1116
setup(name='bigquery-schema-generator',
12-
version='0.1.3',
17+
version='0.1.4',
1318
description='BigQuery schema generator',
1419
long_description=long_description,
1520
url='https://github.com/bxparks/bigquery-schema-generator',

0 commit comments

Comments
 (0)