Skip to content

Commit

Permalink
Merge pull request #7 from bxparks/develop
Browse files Browse the repository at this point in the history
Fix setup.py so that 'pip3 install' doesn't need pypandoc and is more…
  • Loading branch information
bxparks authored Jan 23, 2018
2 parents b802f09 + 6dae5fc commit 9309a1b
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,17 @@
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst', format='md')
except (EnvironmentError, RuntimeError):
with open('README.md', encoding="utf-8") as f:
long_description = f.read()
except:
# If unable to convert, try inserting the raw README.md file.
try:
with open('README.md', encoding="utf-8") as f:
long_description = f.read()
except:
# If all else fails, use some reasonable string.
long_description = 'BigQuery schema generator.'

setup(name='bigquery-schema-generator',
version='0.1.3',
version='0.1.4',
description='BigQuery schema generator',
long_description=long_description,
url='https://github.com/bxparks/bigquery-schema-generator',
Expand Down

0 comments on commit 9309a1b

Please sign in to comment.