File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 44try :
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
1116setup (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' ,
You can’t perform that action at this time.
0 commit comments