191 строка
5.4 KiB
Python
191 строка
5.4 KiB
Python
from setuptools import setup, find_packages, Command
|
|
from setuptools.command.test import test as TestCommand
|
|
|
|
import os
|
|
import sys
|
|
|
|
# Kept manually in sync with airflow.__version__
|
|
version = '1.7.0'
|
|
|
|
|
|
class Tox(TestCommand):
|
|
user_options = [('tox-args=', None, "Arguments to pass to tox")]
|
|
def initialize_options(self):
|
|
TestCommand.initialize_options(self)
|
|
self.tox_args = ''
|
|
def finalize_options(self):
|
|
TestCommand.finalize_options(self)
|
|
self.test_args = []
|
|
self.test_suite = True
|
|
def run_tests(self):
|
|
#import here, cause outside the eggs aren't loaded
|
|
import tox
|
|
errno = tox.cmdline(args=self.tox_args.split())
|
|
sys.exit(errno)
|
|
|
|
|
|
class CleanCommand(Command):
|
|
"""Custom clean command to tidy up the project root."""
|
|
user_options = []
|
|
def initialize_options(self):
|
|
pass
|
|
def finalize_options(self):
|
|
pass
|
|
def run(self):
|
|
os.system('rm -vrf ./build ./dist ./*.pyc ./*.tgz ./*.egg-info')
|
|
|
|
|
|
async = [
|
|
'greenlet>=0.4.9',
|
|
'eventlet>= 0.9.7',
|
|
'gevent>=0.13'
|
|
]
|
|
celery = [
|
|
'celery>=3.1.17',
|
|
'flower>=0.7.3'
|
|
]
|
|
crypto = ['cryptography>=0.9.3']
|
|
doc = [
|
|
'sphinx>=1.2.3',
|
|
'sphinx-argparse>=0.1.13',
|
|
'sphinx-rtd-theme>=0.1.6',
|
|
'Sphinx-PyPI-upload>=0.2.1'
|
|
]
|
|
docker = ['docker-py>=1.6.0']
|
|
druid = ['pydruid>=0.2.1']
|
|
gcp_api = [
|
|
'httplib2',
|
|
'google-api-python-client>=1.5.0, <1.6.0',
|
|
'oauth2client>=2.0.2, <2.1.0',
|
|
'PyOpenSSL',
|
|
]
|
|
hdfs = ['snakebite>=2.7.8']
|
|
webhdfs = ['hdfs[dataframe,avro,kerberos]>=2.0.4']
|
|
hive = [
|
|
'hive-thrift-py>=0.0.1',
|
|
'pyhive>=0.1.3',
|
|
'impyla>=0.13.3',
|
|
'unicodecsv>=0.14.1'
|
|
]
|
|
jdbc = ['jaydebeapi>=0.2.0']
|
|
mssql = ['pymssql>=2.1.1', 'unicodecsv>=0.14.1']
|
|
mysql = ['mysqlclient>=1.3.6']
|
|
rabbitmq = ['librabbitmq>=1.6.1']
|
|
oracle = ['cx_Oracle>=5.1.2']
|
|
postgres = ['psycopg2>=2.6']
|
|
s3 = [
|
|
'boto>=2.36.0',
|
|
'filechunkio>=1.6',
|
|
]
|
|
samba = ['pysmbclient>=0.1.3']
|
|
slack = ['slackclient>=1.0.0']
|
|
statsd = ['statsd>=3.0.1, <4.0']
|
|
vertica = ['vertica-python>=0.5.1']
|
|
ldap = ['ldap3>=0.9.9.1']
|
|
kerberos = ['pykerberos>=1.1.8',
|
|
'thrift_sasl>=0.2.0',
|
|
'snakebite[kerberos]>=2.7.8']
|
|
password = [
|
|
'bcrypt>=2.0.0',
|
|
'flask-bcrypt>=0.7.1',
|
|
]
|
|
github_enterprise = ['Flask-OAuthlib>=0.9.1']
|
|
qds = ['qds-sdk>=1.9.0']
|
|
cloudant = ['cloudant>=0.5.9,<2.0'] # major update coming soon, clamp to 0.x
|
|
|
|
|
|
all_dbs = postgres + mysql + hive + mssql + hdfs + vertica + cloudant
|
|
devel = ['lxml>=3.3.4', 'nose', 'nose-parameterized', 'mock']
|
|
devel_minreq = devel + mysql + doc + password + s3
|
|
devel_hadoop = devel_minreq + hive + hdfs + webhdfs + kerberos
|
|
devel_all = devel + all_dbs + doc + samba + s3 + slack + crypto + oracle + docker
|
|
|
|
setup(
|
|
name='airflow',
|
|
description='Programmatically author, schedule and monitor data pipelines',
|
|
license='Apache License 2.0',
|
|
version=version,
|
|
packages=find_packages(),
|
|
package_data={'': ['airflow/alembic.ini']},
|
|
include_package_data=True,
|
|
zip_safe=False,
|
|
scripts=['airflow/bin/airflow'],
|
|
install_requires=[
|
|
'alembic>=0.8.3, <0.9',
|
|
'babel>=1.3, <2.0',
|
|
'chartkick>=0.4.2, < 0.5',
|
|
'croniter>=0.3.8, <0.4',
|
|
'dill>=0.2.2, <0.3',
|
|
'python-daemon>=2.1.1, <2.2',
|
|
'flask>=0.10.1, <0.11',
|
|
'flask-admin>=1.4.0, <2.0.0',
|
|
'flask-cache>=0.13.1, <0.14',
|
|
'flask-login==0.2.11',
|
|
'future>=0.15.0, <0.16',
|
|
'funcsigs>=0.4, <1',
|
|
'gunicorn>=19.3.0, <19.4.0', # 19.4.? seemed to have issues
|
|
'jinja2>=2.7.3, <3.0',
|
|
'markdown>=2.5.2, <3.0',
|
|
'pandas>=0.15.2, <1.0.0',
|
|
'pygments>=2.0.1, <3.0',
|
|
'python-dateutil>=2.3, <3',
|
|
'requests>=2.5.1, <3',
|
|
'setproctitle>=1.1.8, <2',
|
|
'sqlalchemy>=0.9.8',
|
|
'thrift>=0.9.2, <0.10',
|
|
'Flask-WTF==0.12'
|
|
],
|
|
extras_require={
|
|
'all': devel_all,
|
|
'all_dbs': all_dbs,
|
|
'async': async,
|
|
'celery': celery,
|
|
'crypto': crypto,
|
|
'devel': devel_minreq,
|
|
'devel_hadoop': devel_hadoop,
|
|
'doc': doc,
|
|
'docker': docker,
|
|
'druid': druid,
|
|
'gcp_api': gcp_api,
|
|
'hdfs': hdfs,
|
|
'hive': hive,
|
|
'jdbc': jdbc,
|
|
'mssql': mssql,
|
|
'mysql': mysql,
|
|
'oracle': oracle,
|
|
'postgres': postgres,
|
|
'rabbitmq': rabbitmq,
|
|
's3': s3,
|
|
'samba': samba,
|
|
'slack': slack,
|
|
'statsd': statsd,
|
|
'vertica': vertica,
|
|
'ldap': ldap,
|
|
'webhdfs': webhdfs,
|
|
'kerberos': kerberos,
|
|
'password': password,
|
|
'github_enterprise': github_enterprise,
|
|
'qds': qds,
|
|
'cloudant': cloudant
|
|
},
|
|
classifiers={
|
|
'Development Status :: 5 - Production/Stable',
|
|
'Environment :: Console',
|
|
'Environment :: Web Environment',
|
|
'Intended Audience :: Developers',
|
|
'Intended Audience :: System Administrators',
|
|
'License :: OSI Approved :: Apache Software License',
|
|
'Programming Language :: Python :: 2.7',
|
|
'Programming Language :: Python :: 3.4',
|
|
'Topic :: System :: Monitoring',
|
|
},
|
|
author='Maxime Beauchemin',
|
|
author_email='maximebeauchemin@gmail.com',
|
|
url='https://github.com/airbnb/airflow',
|
|
download_url=(
|
|
'https://github.com/airbnb/airflow/tarball/' + version),
|
|
cmdclass={'test': Tox,
|
|
'extra_clean': CleanCommand,
|
|
},
|
|
)
|