-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
70 lines (60 loc) · 1.89 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
#!/usr/bin/env python
# -*- coding: utf8 -*-
""" Tuttle installation and packaging script """
import sys
from os.path import dirname, getsize, join
try:
from setuptools import setup, find_packages
except ImportError:
print("You need to install setuptools to build tuttle. Install it using"
" your package manager (usually python-setuptools) or via pip (pip"
" install setuptools).")
sys.exit(1)
def get_version():
version_path = join(dirname(__file__), 'tuttle', 'VERSION')
version_details = open(version_path).read(getsize(version_path))
return version_details.split("\n")[0]
version = get_version()
tuttle_description = {
'name': 'tuttle',
'version': version,
'author': 'Lexman',
'author_email': '[email protected]',
'description': 'Make for data',
'long_description': 'Reliably create data from different sources. Work as a team in an industrial environment... '
'A tool for continuous data processing',
'platforms': ['Linux', 'Windows'],
'url': 'http://tuttle.lexman.org/',
'license': 'MIT',
'install_requires': [
'jinja2',
'MarkupSafe',
'psycopg2-binary',
'six',
'boto3',
'chardet',
'psutil',
'pyodbc',
'pycurl',
],
'packages': [
'tuttle',
'tuttle.report',
'tuttle.processors',
'tuttle.addons',
],
'entry_points': {
'console_scripts': [
'tuttle=tuttle.cli_tuttle:tuttle_main',
'tuttle-extend-workflow=tuttle.cli_tuttle_extend_workflow:tuttle_extend_workflow_main',
],
},
'include_package_data': True,
'package_data': {
'tuttle': ['VERSION'],
'tuttle.report': ['*.html', 'html_report_assets/*'],
},
}
if __name__ == '__main__':
# NB: this script can be imported by windows packager
setup(**tuttle_description)