2015-11-25 03:48:46 +03:00
|
|
|
from setuptools import setup, find_packages, Command
|
2015-10-06 16:43:44 +03:00
|
|
|
from setuptools.command.test import test as TestCommand
|
|
|
|
|
2015-11-25 03:48:46 +03:00
|
|
|
import os
|
2015-08-07 02:38:55 +03:00
|
|
|
import sys
|
2014-10-12 19:44:06 +04:00
|
|
|
|
2015-01-23 08:31:57 +03:00
|
|
|
# Kept manually in sync with airflow.__version__
|
2016-01-15 13:37:14 +03:00
|
|
|
version = '1.6.2'
|
2014-10-12 19:44:06 +04:00
|
|
|
|
2015-11-25 03:48:46 +03:00
|
|
|
|
2015-10-06 16:43:44 +03:00
|
|
|
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)
|
|
|
|
|
2015-11-25 03:48:46 +03:00
|
|
|
|
|
|
|
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')
|
|
|
|
|
|
|
|
|
2015-11-11 18:53:53 +03:00
|
|
|
async = [
|
|
|
|
'greenlet>=0.4.9',
|
|
|
|
'eventlet>= 0.9.7',
|
|
|
|
'gevent>=0.13'
|
|
|
|
]
|
2015-09-28 05:41:23 +03:00
|
|
|
celery = [
|
2015-10-21 20:13:03 +03:00
|
|
|
'celery>=3.1.17',
|
2015-09-28 05:41:23 +03:00
|
|
|
'flower>=0.7.3'
|
|
|
|
]
|
|
|
|
crypto = ['cryptography>=0.9.3']
|
2015-03-31 02:42:59 +03:00
|
|
|
doc = [
|
|
|
|
'sphinx>=1.2.3',
|
|
|
|
'sphinx-argparse>=0.1.13',
|
|
|
|
'sphinx-rtd-theme>=0.1.6',
|
|
|
|
'Sphinx-PyPI-upload>=0.2.1'
|
|
|
|
]
|
2016-01-17 12:44:06 +03:00
|
|
|
docker = ['docker-py>=1.6.0']
|
2015-09-28 05:41:23 +03:00
|
|
|
druid = ['pydruid>=0.2.1']
|
|
|
|
hdfs = ['snakebite>=2.4.13']
|
2015-11-06 22:48:53 +03:00
|
|
|
webhdfs = ['hdfs[dataframe,avro,kerberos]>=2.0.4']
|
2015-03-31 08:00:30 +03:00
|
|
|
hive = [
|
|
|
|
'hive-thrift-py>=0.0.1',
|
|
|
|
'pyhive>=0.1.3',
|
|
|
|
'pyhs2>=0.6.0',
|
|
|
|
]
|
2015-09-28 05:41:23 +03:00
|
|
|
jdbc = ['jaydebeapi>=0.2.0']
|
|
|
|
mssql = ['pymssql>=2.1.1', 'unicodecsv>=0.13.0']
|
2015-10-20 14:45:40 +03:00
|
|
|
mysql = ['mysqlclient>=1.3.6']
|
2015-03-31 08:00:30 +03:00
|
|
|
optional = ['librabbitmq>=1.6.1']
|
2015-09-28 05:41:23 +03:00
|
|
|
oracle = ['cx_Oracle>=5.1.2']
|
|
|
|
postgres = ['psycopg2>=2.6']
|
2015-10-20 00:44:01 +03:00
|
|
|
s3 = [
|
|
|
|
'boto>=2.36.0',
|
|
|
|
'filechunkio>=1.6',
|
|
|
|
]
|
2015-09-28 05:41:23 +03:00
|
|
|
samba = ['pysmbclient>=0.1.3']
|
2015-08-02 04:49:40 +03:00
|
|
|
slack = ['slackclient>=0.15']
|
2015-09-28 05:41:23 +03:00
|
|
|
statsd = ['statsd>=3.0.1, <4.0']
|
2015-09-17 12:14:56 +03:00
|
|
|
vertica = ['vertica-python>=0.5.1']
|
2015-11-05 19:03:53 +03:00
|
|
|
ldap = ['ldap3>=0.9.9.1']
|
2016-03-06 00:18:31 +03:00
|
|
|
kerberos = ['pykerberos>=1.1.8','thrift_sasl>=0.2.0']
|
2015-11-30 20:47:36 +03:00
|
|
|
password = [
|
|
|
|
'bcrypt>=2.0.0',
|
|
|
|
'flask-bcrypt>=0.7.1',
|
|
|
|
]
|
2016-01-15 13:37:14 +03:00
|
|
|
github_enterprise = ['Flask-OAuthlib>=0.9.1']
|
2016-01-15 15:02:59 +03:00
|
|
|
qds = ['qds-sdk>=1.9.0']
|
2015-03-20 03:40:05 +03:00
|
|
|
|
2015-09-17 12:14:56 +03:00
|
|
|
all_dbs = postgres + mysql + hive + mssql + hdfs + vertica
|
2016-02-07 23:58:56 +03:00
|
|
|
devel = ['lxml>=3.3.4', 'nose', 'mock']
|
|
|
|
devel += all_dbs + doc + samba + s3 + slack + crypto + oracle + docker
|
2015-03-20 03:40:05 +03:00
|
|
|
|
2014-10-12 19:44:06 +04:00
|
|
|
setup(
|
2014-10-15 05:28:29 +04:00
|
|
|
name='airflow',
|
2015-01-22 21:51:43 +03:00
|
|
|
description='Programmatically author, schedule and monitor data pipelines',
|
2015-01-23 08:31:57 +03:00
|
|
|
version=version,
|
2015-01-15 21:03:10 +03:00
|
|
|
packages=find_packages(),
|
2015-08-19 06:39:46 +03:00
|
|
|
package_data={'': ['airflow/alembic.ini']},
|
2014-11-06 09:44:19 +03:00
|
|
|
include_package_data=True,
|
2015-01-17 01:53:33 +03:00
|
|
|
zip_safe=False,
|
2014-10-15 05:28:29 +04:00
|
|
|
scripts=['airflow/bin/airflow'],
|
2015-01-17 20:21:51 +03:00
|
|
|
install_requires=[
|
2015-11-14 21:55:28 +03:00
|
|
|
'alembic>=0.8.3, <0.9',
|
2016-01-15 13:37:14 +03:00
|
|
|
'babel>=1.3, <2.0',
|
2015-09-14 00:09:50 +03:00
|
|
|
'chartkick>=0.4.2, < 0.5',
|
2015-10-12 16:12:20 +03:00
|
|
|
'croniter>=0.3.8, <0.4',
|
2015-09-14 00:09:50 +03:00
|
|
|
'dill>=0.2.2, <0.3',
|
|
|
|
'flask>=0.10.1, <0.11',
|
2016-01-15 13:37:14 +03:00
|
|
|
'flask-admin>=1.4.0, <2.0.0',
|
2015-09-14 00:09:50 +03:00
|
|
|
'flask-cache>=0.13.1, <0.14',
|
2015-10-23 15:48:33 +03:00
|
|
|
'flask-login==0.2.11',
|
2015-09-14 00:09:50 +03:00
|
|
|
'future>=0.15.0, <0.16',
|
2016-01-15 13:37:14 +03:00
|
|
|
'gunicorn>=19.3.0, <19.4.0', # 19.4.? seemed to have issues
|
2015-09-14 00:09:50 +03:00
|
|
|
'jinja2>=2.7.3, <3.0',
|
|
|
|
'markdown>=2.5.2, <3.0',
|
2016-02-17 18:44:11 +03:00
|
|
|
'oauth2client>=1.5.2, <2.0.0',
|
2015-09-16 23:30:55 +03:00
|
|
|
'pandas>=0.15.2, <1.0.0',
|
2015-09-14 00:09:50 +03:00
|
|
|
'pygments>=2.0.1, <3.0',
|
|
|
|
'python-dateutil>=2.3, <3',
|
|
|
|
'requests>=2.5.1, <3',
|
|
|
|
'setproctitle>=1.1.8, <2',
|
2015-10-06 17:44:00 +03:00
|
|
|
'sqlalchemy>=0.9.8',
|
2015-09-14 00:09:50 +03:00
|
|
|
'thrift>=0.9.2, <0.10',
|
2015-11-10 21:55:09 +03:00
|
|
|
'Flask-WTF==0.12'
|
2015-01-17 20:21:51 +03:00
|
|
|
],
|
2015-03-20 03:40:05 +03:00
|
|
|
extras_require={
|
2015-03-31 08:00:30 +03:00
|
|
|
'all': devel + optional,
|
|
|
|
'all_dbs': all_dbs,
|
2015-11-11 18:53:53 +03:00
|
|
|
'async': async,
|
2015-09-28 05:41:23 +03:00
|
|
|
'celery': celery,
|
|
|
|
'crypto': crypto,
|
2015-03-31 08:00:30 +03:00
|
|
|
'devel': devel,
|
2015-08-03 00:48:26 +03:00
|
|
|
'doc': doc,
|
2016-01-17 12:44:06 +03:00
|
|
|
'docker': docker,
|
2015-08-03 00:48:26 +03:00
|
|
|
'druid': druid,
|
|
|
|
'hdfs': hdfs,
|
2015-03-31 08:00:30 +03:00
|
|
|
'hive': hive,
|
2015-08-03 00:48:26 +03:00
|
|
|
'jdbc': jdbc,
|
|
|
|
'mssql': mssql,
|
2015-03-31 08:00:30 +03:00
|
|
|
'mysql': mysql,
|
2015-09-28 05:41:23 +03:00
|
|
|
'oracle': oracle,
|
2015-03-31 08:00:30 +03:00
|
|
|
'postgres': postgres,
|
|
|
|
's3': s3,
|
|
|
|
'samba': samba,
|
2015-08-02 04:49:40 +03:00
|
|
|
'slack': slack,
|
2015-09-28 05:41:23 +03:00
|
|
|
'statsd': statsd,
|
2015-09-17 12:14:56 +03:00
|
|
|
'vertica': vertica,
|
2015-11-05 19:03:53 +03:00
|
|
|
'ldap': ldap,
|
2015-11-05 02:50:09 +03:00
|
|
|
'webhdfs': webhdfs,
|
2015-11-13 11:16:59 +03:00
|
|
|
'kerberos': kerberos,
|
2015-11-30 20:47:36 +03:00
|
|
|
'password': password,
|
2016-01-15 13:37:14 +03:00
|
|
|
'github_enterprise': github_enterprise,
|
2016-01-18 13:44:49 +03:00
|
|
|
'qds': qds
|
2015-03-31 08:00:30 +03:00
|
|
|
},
|
2014-10-12 19:44:06 +04:00
|
|
|
author='Maxime Beauchemin',
|
|
|
|
author_email='maximebeauchemin@gmail.com',
|
2015-06-05 19:47:55 +03:00
|
|
|
url='https://github.com/airbnb/airflow',
|
2015-01-22 21:51:43 +03:00
|
|
|
download_url=(
|
2015-06-05 19:47:55 +03:00
|
|
|
'https://github.com/airbnb/airflow/tarball/' + version),
|
2015-11-25 03:48:46 +03:00
|
|
|
cmdclass={'test': Tox,
|
|
|
|
'extra_clean': CleanCommand,
|
|
|
|
},
|
2014-10-12 19:44:06 +04:00
|
|
|
)
|