forked from andrewgross/json2parquet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
38 lines (29 loc) · 1.01 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
33
34
35
36
37
38
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import re
from setuptools import setup, find_packages
with open('json2parquet/__init__.py', 'r') as fd:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
fd.read(), re.MULTILINE).group(1)
if not version:
raise RuntimeError('Cannot find version information')
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('CHANGELOG.rst') as changelog_file:
changelog = changelog_file.read()
setup(
name='json2parquet',
version=version,
description='A simple Parquet converter for JSON/python data',
long_description=readme + '\n\n' + changelog,
author='Andrew Gross',
author_email='[email protected]',
url='https://github.com/andrewgross/json2parquet',
install_requires=[
'pyarrow==0.8.0',
'pandas==0.20.3'
],
packages=[n for n in find_packages() if not n.startswith('tests')],
include_package_data=True,
)