-
Notifications
You must be signed in to change notification settings - Fork 40
/
setup.py
94 lines (88 loc) · 2.16 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# -*- coding: utf-8 -*-
from __future__ import division
from __future__ import print_function
from __future__ import absolute_import
import os
import io
from setuptools import setup, find_packages
# Helpers
def read(*paths):
"""Read a text file."""
basedir = os.path.dirname(__file__)
fullpath = os.path.join(basedir, *paths)
contents = io.open(fullpath, encoding='utf-8').read().strip()
return contents
# Prepare
PACKAGE = 'dataflows'
NAME = PACKAGE.replace('_', '-')
INSTALL_REQUIRES = [
'dataflows-tabulator>=1.54.0',
'datapackage>=1.15.4',
'tableschema>=1.21.0',
'kvfile>=1.1.1',
'click',
'jinja2',
'awesome-slugify',
'inquirer',
'tabulate',
'tableschema-sql>=2.0.1',
'xmljson',
'bitstring>=3',
'python-dateutil',
'openpyxl',
]
SPEEDUP_REQUIRES = [
'plyvel',
]
LINT_REQUIRES = [
'pylama',
'pylama_quotes',
'pyflakes<2.5',
]
TESTS_REQUIRE = [
'mock',
'pytest',
'pytest-cov',
'coverage',
'lxml',
]
README = read('README.md')
VERSION = read(PACKAGE, 'VERSION')
PACKAGES = find_packages(exclude=['examples', 'tests', '.tox'])
# Run
setup(
name=NAME,
version=VERSION,
packages=PACKAGES,
include_package_data=True,
install_requires=INSTALL_REQUIRES,
tests_require=TESTS_REQUIRE,
extras_require={
'develop': LINT_REQUIRES + TESTS_REQUIRE,
'speedup': SPEEDUP_REQUIRES,
},
zip_safe=False,
long_description=README,
long_description_content_type='text/markdown',
description='A nifty data processing framework, based on data packages',
author='Adam Kariv',
author_email='[email protected]',
url='https://github.com/datahq/dataflows',
license='MIT',
keywords=[
'data',
],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3.12',
'Topic :: Software Development :: Libraries :: Python Modules',
],
entry_points={
'console_scripts': [
'dataflows = dataflows.cli:cli',
]
}
)