-
Notifications
You must be signed in to change notification settings - Fork 34
/
setup.py
executable file
·78 lines (72 loc) · 2.22 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#!/usr/bin/env python3
import sys
from setuptools import setup
SHELL_TOOLS = [
'data_tools/check-tsv',
'data_tools/csv-to-postgres',
'data_tools/header-sort',
'data_tools/json-diff',
'data_tools/postgres-to-csv',
'data_tools/set-intersect',
'data_tools/tokenize',
'data_tools/tsv-header'
]
C_TOOLS = [
'src/csv-to-tab/csv-to-tab',
'src/json-pluck/json-pluck',
'src/tab-to-csv/tab-to-csv',
'src/utf8-script/utf8-category',
'src/utf8-script/utf8-script'
]
def build():
pass
scripts = []
if sys.platform != 'win32':
build()
scripts = SHELL_TOOLS
setup(
name='data-tools',
version='0.1.0',
description='File format conversion tools',
url='https://github.com/clarkgrubb/data-tools',
author='Clark Grubb',
license='MIT',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.5'
],
keywords='file format conversion data tools json csv tsv',
packages=[
'data_tools'
],
scripts=scripts,
entry_points={
'console_scripts': [
'csv-to-json = data_tools.csv_to_json:main',
'convert-date = data_tools.convert_date:main',
'counting-sort = data_tools.counting_sort:main',
'csv-to-xlsx = data_tools.csv_to_xlsx:main',
'data-fill = data_tools.data_fill:main',
'date-seq = data_tools.data_seq:main',
'highlight = data_tools.highlight:main',
'html-table-to-csv = data_tools.html_table_to_csv:main',
'join-tsv = data_tools.join_tsv:main',
'normalize-utf8 = data_tools.normalize_utf8:main',
'reservoir-sample = data_tools.reservoir_sample:main',
'trim-tsv = data_tools.trim_tsv:main',
'tsv-to-json = data_tools.tsv_to_json:main',
'xlsx-to-csv = data_tools.xlsx_to_csv:main',
'yaml-to-json = data_tools.yaml_to_json:main'
]
},
install_requires=[
'beautifulsoup4>=4.5.3',
'html5lib>=0.999999999',
'openpyxl>=2.4.5',
'PyYAML>=3.12',
'xlrd==1.0.0',
],
python_requires='>=3.4'
)