-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy pathsetup.py
55 lines (50 loc) · 1.84 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
from setuptools import find_packages, setup
# Extract version information from Omniduct _version.py
version_info = {}
with open('omniduct/_version.py') as version_file:
exec(version_file.read(), version_info)
# Extract long description from readme
with open('README.md') as readme:
long_description = ""
while True:
line = readme.readline()
if line.startswith('`omniduct`'):
long_description = line
break
long_description += readme.read()
setup(
# Package metadata
name="omniduct",
versioning='post',
version=version_info['__version__'],
author=version_info['__author__'],
author_email=version_info['__author_email__'],
url="https://github.com/airbnb/omniduct",
description=(
"A toolkit providing a uniform interface for connecting to and "
"extracting data from a wide variety of (potentially remote) data "
"stores (including HDFS, Hive, Presto, MySQL, etc)."
),
long_description=long_description,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
],
# Package details
packages=find_packages(),
include_package_data=True,
# Dependencies
setup_requires=['setupmeta'],
install_requires=version_info['__dependencies__'],
extras_require=version_info['__optional_dependencies__']
)