-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathsetup.py
51 lines (42 loc) · 1.46 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
"""Setup file."""
import os
from setuptools import setup, find_packages
from setuptools.command.install import install
from pip.req import parse_requirements
def read(fname):
"""Read file."""
return open(os.path.join(os.path.dirname(__file__), fname)).read()
# Dynamically get the IBIS version so that we don't have
# to update it in 3 places anymore
with open('ibis_version.sh', 'r') as fh:
lines = fh.readlines()
_, ibis_version = lines[1].split('=')
_, ibis_app_name = lines[2].split('=')
ibis_version = ibis_version.strip()
ibis_app_name = ibis_app_name.strip()
with open('requirements.pip') as f:
ibis_deps = f.read().splitlines()
# Info on creating a setup.py file:
# https://pythonhosted.org/an_example_pypi_project/setuptools.html
setup(
name=ibis_app_name,
version=ibis_version,
packages=find_packages(),
package_data={
# If any package contains *.txt or *.rst files, include them:
'': ['*.properties', '*.xml', '*.ksh', '*.mako',
'*.sh', '*.hql', '*.wld', '*txt', '*.feature'],
},
data_files=[('.', ['README.md', '__main__.py'])],
install_requires=ibis_deps,
include_package_data=True,
description="Ibis: Workflow and Ingestion Made Easy",
keywords="hadoop oozie workflows bigdata ingest",
# project home page, if any
url="fake_home_page",
entry_points={
'setuptools.installation': [
'eggsecutable = ibis.driver.main:main'
]
}
)