forked from bxparks/bigquery-schema-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
32 lines (30 loc) · 1.05 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
from setuptools import setup
# Convert README.md to README.rst because PyPI does not support Markdown.
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst', format='md')
except: # noqa: E722
# 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: # noqa: E722
# If all else fails, use some reasonable string.
long_description = 'BigQuery schema generator.'
setup(
name='bigquery-schema-generator',
version='1.0',
description='BigQuery schema generator from JSON or CSV data',
long_description=long_description,
url='https://github.com/bxparks/bigquery-schema-generator',
author='Brian T. Park',
author_email='[email protected]',
license='Apache 2.0',
packages=['bigquery_schema_generator'],
python_requires='~=3.6',
entry_points={
'console_scripts': [
'generate-schema = bigquery_schema_generator.generate_schema:main'
]
},
)