2016-06-16 00:39:12 +03:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
#
|
2018-04-14 10:13:23 +03:00
|
|
|
# Licensed to the Apache Software Foundation (ASF) under one
|
|
|
|
# or more contributor license agreements. See the NOTICE file
|
|
|
|
# distributed with this work for additional information
|
|
|
|
# regarding copyright ownership. The ASF licenses this file
|
|
|
|
# to you under the Apache License, Version 2.0 (the
|
|
|
|
# "License"); you may not use this file except in compliance
|
|
|
|
# with the License. You may obtain a copy of the License at
|
2018-04-25 13:23:59 +03:00
|
|
|
#
|
2018-04-14 10:13:23 +03:00
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
2018-04-25 13:23:59 +03:00
|
|
|
#
|
2018-04-14 10:13:23 +03:00
|
|
|
# Unless required by applicable law or agreed to in writing,
|
|
|
|
# software distributed under the License is distributed on an
|
|
|
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
|
|
# KIND, either express or implied. See the License for the
|
|
|
|
# specific language governing permissions and limitations
|
|
|
|
# under the License.
|
2019-06-09 18:35:22 +03:00
|
|
|
"""Setup for the Airflow library."""
|
2015-10-06 16:43:44 +03:00
|
|
|
|
2019-06-09 18:35:22 +03:00
|
|
|
import importlib
|
2019-01-13 11:02:34 +03:00
|
|
|
import io
|
2016-05-17 01:36:09 +03:00
|
|
|
import logging
|
2015-11-25 03:48:46 +03:00
|
|
|
import os
|
2018-07-22 10:23:57 +03:00
|
|
|
import subprocess
|
2019-06-09 18:35:22 +03:00
|
|
|
import sys
|
2019-07-17 23:42:43 +03:00
|
|
|
import unittest
|
2019-08-15 03:53:28 +03:00
|
|
|
from typing import List
|
2019-06-09 18:35:22 +03:00
|
|
|
|
|
|
|
from setuptools import setup, find_packages, Command
|
2014-10-12 19:44:06 +04:00
|
|
|
|
2016-05-17 01:36:09 +03:00
|
|
|
logger = logging.getLogger(__name__)
|
|
|
|
|
2015-01-23 08:31:57 +03:00
|
|
|
# Kept manually in sync with airflow.__version__
|
2019-07-17 23:42:43 +03:00
|
|
|
# noinspection PyUnresolvedReferences
|
2019-06-09 18:35:22 +03:00
|
|
|
spec = importlib.util.spec_from_file_location("airflow.version", os.path.join('airflow', 'version.py'))
|
2019-07-17 23:42:43 +03:00
|
|
|
# noinspection PyUnresolvedReferences
|
2019-06-09 18:35:22 +03:00
|
|
|
mod = importlib.util.module_from_spec(spec)
|
|
|
|
spec.loader.exec_module(mod)
|
|
|
|
version = mod.version
|
2014-10-12 19:44:06 +04:00
|
|
|
|
2018-03-06 01:46:07 +03:00
|
|
|
PY3 = sys.version_info[0] == 3
|
2015-11-25 03:48:46 +03:00
|
|
|
|
2019-04-13 16:03:02 +03:00
|
|
|
# noinspection PyUnboundLocalVariable
|
|
|
|
try:
|
|
|
|
with io.open('README.md', encoding='utf-8') as f:
|
|
|
|
long_description = f.read()
|
|
|
|
except FileNotFoundError:
|
|
|
|
long_description = ''
|
2019-01-13 11:02:34 +03:00
|
|
|
|
2018-05-08 21:12:52 +03:00
|
|
|
|
2019-07-17 23:42:43 +03:00
|
|
|
def airflow_test_suite():
|
|
|
|
"""Test suite for Airflow tests"""
|
|
|
|
test_loader = unittest.TestLoader()
|
|
|
|
test_suite = test_loader.discover('tests', pattern='test_*.py')
|
|
|
|
return test_suite
|
2015-10-06 16:43:44 +03:00
|
|
|
|
2015-11-25 03:48:46 +03:00
|
|
|
|
|
|
|
class CleanCommand(Command):
|
2019-06-09 08:41:56 +03:00
|
|
|
"""
|
|
|
|
Command to tidy up the project root.
|
|
|
|
Registered as cmdclass in setup() so it can be called with ``python setup.py extra_clean``.
|
|
|
|
"""
|
|
|
|
|
|
|
|
description = "Tidy up the project root"
|
2019-08-15 03:53:28 +03:00
|
|
|
user_options = [] # type: List[str]
|
2018-05-08 21:12:52 +03:00
|
|
|
|
2015-11-25 03:48:46 +03:00
|
|
|
def initialize_options(self):
|
2019-06-09 18:35:22 +03:00
|
|
|
"""Set default values for options."""
|
2018-05-08 21:12:52 +03:00
|
|
|
|
2015-11-25 03:48:46 +03:00
|
|
|
def finalize_options(self):
|
2019-06-09 18:35:22 +03:00
|
|
|
"""Set final values for options."""
|
2018-05-08 21:12:52 +03:00
|
|
|
|
2019-07-17 23:42:43 +03:00
|
|
|
# noinspection PyMethodMayBeStatic
|
2015-11-25 03:48:46 +03:00
|
|
|
def run(self):
|
2019-06-09 18:35:22 +03:00
|
|
|
"""Run command to remove temporary files and directories."""
|
2015-11-25 03:48:46 +03:00
|
|
|
os.system('rm -vrf ./build ./dist ./*.pyc ./*.tgz ./*.egg-info')
|
|
|
|
|
|
|
|
|
2018-07-22 10:23:57 +03:00
|
|
|
class CompileAssets(Command):
|
|
|
|
"""
|
2019-04-13 16:03:02 +03:00
|
|
|
Compile and build the frontend assets using npm and webpack.
|
2019-06-09 08:41:56 +03:00
|
|
|
Registered as cmdclass in setup() so it can be called with ``python setup.py compile_assets``.
|
2018-07-22 10:23:57 +03:00
|
|
|
"""
|
2019-06-09 08:41:56 +03:00
|
|
|
|
|
|
|
description = "Compile and build the frontend assets"
|
2019-08-15 03:53:28 +03:00
|
|
|
user_options = [] # type: List[str]
|
2018-07-22 10:23:57 +03:00
|
|
|
|
|
|
|
def initialize_options(self):
|
2019-06-09 18:35:22 +03:00
|
|
|
"""Set default values for options."""
|
2018-07-22 10:23:57 +03:00
|
|
|
|
|
|
|
def finalize_options(self):
|
2019-06-09 18:35:22 +03:00
|
|
|
"""Set final values for options."""
|
2018-07-22 10:23:57 +03:00
|
|
|
|
2019-07-17 23:42:43 +03:00
|
|
|
# noinspection PyMethodMayBeStatic
|
2018-07-22 10:23:57 +03:00
|
|
|
def run(self):
|
2019-06-09 18:35:22 +03:00
|
|
|
"""Run a command to compile and build assets."""
|
2019-01-14 17:33:45 +03:00
|
|
|
subprocess.call('./airflow/www/compile_assets.sh')
|
2018-07-22 10:23:57 +03:00
|
|
|
|
|
|
|
|
2019-06-09 18:35:22 +03:00
|
|
|
def git_version(version_: str) -> str:
|
2016-05-19 21:49:08 +03:00
|
|
|
"""
|
|
|
|
Return a version to identify the state of the underlying git repo. The version will
|
|
|
|
indicate whether the head of the current git-backed working directory is tied to a
|
|
|
|
release tag or not : it will indicate the former with a 'release:{version}' prefix
|
|
|
|
and the latter with a 'dev0' prefix. Following the prefix will be a sha of the current
|
2018-05-08 21:12:52 +03:00
|
|
|
branch head. Finally, a "dirty" suffix is appended to indicate that uncommitted
|
|
|
|
changes are present.
|
2019-06-09 18:35:22 +03:00
|
|
|
|
|
|
|
:param str version_: Semver version
|
|
|
|
:return: Found Airflow version in Git repo
|
|
|
|
:rtype: str
|
2016-05-19 21:49:08 +03:00
|
|
|
"""
|
2016-05-17 01:36:09 +03:00
|
|
|
try:
|
|
|
|
import git
|
2019-07-17 23:42:43 +03:00
|
|
|
try:
|
|
|
|
repo = git.Repo('.git')
|
|
|
|
except git.NoSuchPathError:
|
|
|
|
logger.warning('.git directory not found: Cannot compute the git version')
|
|
|
|
return ''
|
2016-05-17 01:36:09 +03:00
|
|
|
except ImportError:
|
2017-02-18 19:12:14 +03:00
|
|
|
logger.warning('gitpython not found: Cannot compute the git version.')
|
2016-05-17 01:36:09 +03:00
|
|
|
return ''
|
2016-05-19 21:49:08 +03:00
|
|
|
if repo:
|
|
|
|
sha = repo.head.commit.hexsha
|
|
|
|
if repo.is_dirty():
|
|
|
|
return '.dev0+{sha}.dirty'.format(sha=sha)
|
|
|
|
# commit is clean
|
2019-06-09 18:35:22 +03:00
|
|
|
return '.release:{version}+{sha}'.format(version=version_, sha=sha)
|
2016-05-19 21:49:08 +03:00
|
|
|
else:
|
|
|
|
return 'no_git_version'
|
2016-05-17 01:36:09 +03:00
|
|
|
|
|
|
|
|
2019-06-09 18:35:22 +03:00
|
|
|
def write_version(filename: str = os.path.join(*["airflow", "git_version"])):
|
|
|
|
"""
|
|
|
|
Write the Semver version + git hash to file, e.g. ".dev0+2f635dc265e78db6708f59f68e8009abb92c1e65".
|
|
|
|
|
|
|
|
:param str filename: Destination file to write
|
|
|
|
"""
|
2016-05-19 21:49:08 +03:00
|
|
|
text = "{}".format(git_version(version))
|
2019-06-09 18:35:22 +03:00
|
|
|
with open(filename, 'w') as file:
|
|
|
|
file.write(text)
|
2016-05-17 01:36:09 +03:00
|
|
|
|
2018-07-05 01:51:29 +03:00
|
|
|
|
|
|
|
async_packages = [
|
2015-11-11 18:53:53 +03:00
|
|
|
'greenlet>=0.4.9',
|
|
|
|
'eventlet>= 0.9.7',
|
|
|
|
'gevent>=0.13'
|
|
|
|
]
|
2018-05-14 10:09:25 +03:00
|
|
|
atlas = ['atlasclient>=0.1.2']
|
2019-02-08 13:23:32 +03:00
|
|
|
aws = [
|
|
|
|
'boto3>=1.7.0, <1.8.0',
|
|
|
|
]
|
|
|
|
azure = [
|
|
|
|
'azure-storage>=0.34.0',
|
2019-07-01 19:23:02 +03:00
|
|
|
'azure-mgmt-resource>=2.2.0',
|
|
|
|
'azure-mgmt-datalake-store>=0.5.0',
|
|
|
|
'azure-datalake-store>=0.0.45',
|
2019-02-08 13:23:32 +03:00
|
|
|
'azure-cosmos>=3.0.1',
|
2019-07-01 19:23:02 +03:00
|
|
|
'azure-mgmt-containerinstance>=1.5.0',
|
2018-05-15 20:30:54 +03:00
|
|
|
]
|
2018-05-18 04:01:41 +03:00
|
|
|
cassandra = ['cassandra-driver>=3.13.0']
|
2015-09-28 05:41:23 +03:00
|
|
|
celery = [
|
2019-04-17 05:25:50 +03:00
|
|
|
'celery~=4.3',
|
2019-03-02 00:05:01 +03:00
|
|
|
'flower>=0.7.3, <1.0',
|
|
|
|
'tornado>=4.2.0, <6.0', # Dep of flower. Pin to a version that works on Py3.5.2
|
2015-09-28 05:41:23 +03:00
|
|
|
]
|
2017-01-19 05:11:01 +03:00
|
|
|
cgroups = [
|
|
|
|
'cgroupspy>=0.1.4',
|
|
|
|
]
|
2019-04-06 00:49:25 +03:00
|
|
|
cloudant = ['cloudant>=2.0']
|
2019-03-04 16:31:01 +03:00
|
|
|
crypto = ['cryptography>=0.9.3']
|
2017-02-13 00:06:31 +03:00
|
|
|
dask = [
|
2018-04-18 19:45:46 +03:00
|
|
|
'distributed>=1.17.1, <2'
|
2018-05-08 21:12:52 +03:00
|
|
|
]
|
2019-01-14 13:10:04 +03:00
|
|
|
databricks = ['requests>=2.20.0, <3']
|
2016-11-14 10:19:03 +03:00
|
|
|
datadog = ['datadog>=0.14.0']
|
2015-03-31 02:42:59 +03:00
|
|
|
doc = [
|
|
|
|
'sphinx-argparse>=0.1.13',
|
2019-06-24 11:53:01 +03:00
|
|
|
'sphinx-autoapi==1.0.0',
|
2015-03-31 02:42:59 +03:00
|
|
|
'sphinx-rtd-theme>=0.1.6',
|
2019-08-14 12:39:40 +03:00
|
|
|
'sphinx>=2.1.2',
|
2018-11-26 12:58:33 +03:00
|
|
|
'sphinxcontrib-httpdomain>=1.7.0',
|
2015-03-31 02:42:59 +03:00
|
|
|
]
|
2018-11-15 01:06:03 +03:00
|
|
|
docker = ['docker~=3.0']
|
2018-03-14 11:20:16 +03:00
|
|
|
druid = ['pydruid>=0.4.1']
|
2018-04-13 12:09:50 +03:00
|
|
|
elasticsearch = [
|
|
|
|
'elasticsearch>=5.0.0,<6.0.0',
|
|
|
|
'elasticsearch-dsl>=5.0.0,<6.0.0'
|
|
|
|
]
|
2019-02-27 17:21:57 +03:00
|
|
|
gcp = [
|
2018-06-13 01:53:21 +03:00
|
|
|
'google-api-python-client>=1.6.0, <2.0.0dev',
|
|
|
|
'google-auth-httplib2>=0.0.1',
|
2019-04-06 00:36:50 +03:00
|
|
|
'google-auth>=1.0.0, <2.0.0dev',
|
2019-08-26 10:50:12 +03:00
|
|
|
'google-cloud-automl>=0.4.0',
|
2019-05-20 22:43:58 +03:00
|
|
|
'google-cloud-bigtable==0.33.0',
|
2019-04-06 00:36:50 +03:00
|
|
|
'google-cloud-container>=0.1.1',
|
2019-07-30 15:37:37 +03:00
|
|
|
'google-cloud-dlp>=0.11.0',
|
2019-04-06 00:36:50 +03:00
|
|
|
'google-cloud-language>=1.1.1',
|
2019-08-06 08:47:15 +03:00
|
|
|
'google-cloud-spanner>=1.9.0, <1.10.0',
|
2019-06-10 13:44:31 +03:00
|
|
|
'google-cloud-storage~=1.16',
|
2019-08-06 08:47:15 +03:00
|
|
|
'google-cloud-translate>=1.5.0',
|
2019-04-27 21:48:37 +03:00
|
|
|
'google-cloud-videointelligence>=1.7.0',
|
2019-02-22 17:56:53 +03:00
|
|
|
'google-cloud-vision>=0.35.2',
|
2019-08-07 08:41:27 +03:00
|
|
|
'google-cloud-tasks==1.1.0',
|
2019-04-01 22:42:52 +03:00
|
|
|
'google-cloud-texttospeech>=0.4.0',
|
|
|
|
'google-cloud-speech>=0.36.3',
|
2018-12-13 04:15:43 +03:00
|
|
|
'grpcio-gcp>=0.2.2',
|
2019-04-06 00:36:50 +03:00
|
|
|
'httplib2~=0.9.2',
|
|
|
|
'pandas-gbq',
|
2016-04-12 22:22:49 +03:00
|
|
|
'PyOpenSSL',
|
2016-03-05 00:07:04 +03:00
|
|
|
]
|
2019-03-13 04:54:47 +03:00
|
|
|
grpc = ['grpcio>=1.15.0']
|
2019-04-05 19:11:50 +03:00
|
|
|
flask_oauth = [
|
|
|
|
'Flask-OAuthlib>=0.9.1',
|
|
|
|
'oauthlib!=2.0.3,!=2.0.4,!=2.0.5,<3.0.0,>=1.1.2',
|
|
|
|
'requests-oauthlib==1.1.0'
|
|
|
|
]
|
2016-03-04 00:32:21 +03:00
|
|
|
hdfs = ['snakebite>=2.7.8']
|
2015-03-31 08:00:30 +03:00
|
|
|
hive = [
|
2018-04-25 13:23:59 +03:00
|
|
|
'hmsclient>=0.1.0',
|
2018-06-15 15:19:25 +03:00
|
|
|
'pyhive>=0.6.0',
|
2015-03-31 08:00:30 +03:00
|
|
|
]
|
2017-10-22 21:04:26 +03:00
|
|
|
jdbc = ['jaydebeapi>=1.1.1']
|
2019-02-12 19:43:48 +03:00
|
|
|
jenkins = ['python-jenkins>=1.0.0']
|
2018-05-08 21:12:52 +03:00
|
|
|
jira = ['JIRA>1.0.7']
|
2016-11-21 21:29:35 +03:00
|
|
|
kerberos = ['pykerberos>=1.1.13',
|
|
|
|
'requests_kerberos>=0.10.0',
|
2016-03-28 13:07:47 +03:00
|
|
|
'thrift_sasl>=0.2.0',
|
2018-03-06 01:46:07 +03:00
|
|
|
'snakebite[kerberos]>=2.7.8']
|
2018-05-08 21:12:52 +03:00
|
|
|
kubernetes = ['kubernetes>=3.0.0',
|
|
|
|
'cryptography>=2.0.0']
|
2018-11-09 16:58:34 +03:00
|
|
|
ldap = ['ldap3>=2.5.1']
|
2018-06-01 19:44:04 +03:00
|
|
|
mssql = ['pymssql>=2.1.1']
|
2019-01-19 19:37:03 +03:00
|
|
|
mysql = ['mysqlclient>=1.3.6,<1.4']
|
2018-05-08 21:12:52 +03:00
|
|
|
oracle = ['cx_Oracle>=5.1.2']
|
2019-05-10 00:01:16 +03:00
|
|
|
papermill = ['papermill[all]>=1.0.0',
|
|
|
|
'nteract-scrapbook[all]>=0.2.1']
|
2015-11-30 20:47:36 +03:00
|
|
|
password = [
|
|
|
|
'bcrypt>=2.0.0',
|
|
|
|
'flask-bcrypt>=0.7.1',
|
|
|
|
]
|
2019-02-13 12:42:37 +03:00
|
|
|
pinot = ['pinotdb==0.1.1']
|
2019-04-04 17:44:05 +03:00
|
|
|
postgres = ['psycopg2>=2.7.4,<2.8']
|
2018-12-06 11:20:07 +03:00
|
|
|
qds = ['qds-sdk>=1.10.4']
|
2018-05-08 21:12:52 +03:00
|
|
|
rabbitmq = ['librabbitmq>=1.6.1']
|
2019-03-04 21:04:14 +03:00
|
|
|
redis = ['redis~=3.2']
|
2018-05-08 21:12:52 +03:00
|
|
|
salesforce = ['simple-salesforce>=0.72']
|
|
|
|
samba = ['pysmbclient>=0.1.3']
|
2018-05-11 10:25:19 +03:00
|
|
|
segment = ['analytics-python>=1.2.9']
|
2019-04-03 16:38:25 +03:00
|
|
|
sendgrid = ['sendgrid>=5.2.0,<6']
|
2019-05-02 07:48:36 +03:00
|
|
|
slack = ['slackclient>=1.0.0,<2.0.0']
|
2019-04-14 23:18:52 +03:00
|
|
|
mongo = ['pymongo>=3.6.0', 'dnspython>=1.13.0,<2.0.0']
|
2018-04-04 22:10:00 +03:00
|
|
|
snowflake = ['snowflake-connector-python>=1.5.2',
|
|
|
|
'snowflake-sqlalchemy>=1.1.0']
|
2018-07-24 11:44:00 +03:00
|
|
|
ssh = ['paramiko>=2.1.1', 'pysftp>=0.2.9', 'sshtunnel>=0.1.4,<0.2']
|
2018-05-08 21:12:52 +03:00
|
|
|
statsd = ['statsd>=3.0.1, <4.0']
|
|
|
|
vertica = ['vertica-python>=0.5.1']
|
2019-07-03 06:12:52 +03:00
|
|
|
virtualenv = ['virtualenv']
|
2018-05-08 21:12:52 +03:00
|
|
|
webhdfs = ['hdfs[dataframe,avro,kerberos]>=2.0.4']
|
|
|
|
winrm = ['pywinrm==0.2.2']
|
2018-03-06 01:46:07 +03:00
|
|
|
zendesk = ['zdesk']
|
|
|
|
|
2019-07-17 23:42:43 +03:00
|
|
|
all_dbs = postgres + mysql + hive + mssql + hdfs + vertica + cloudant + druid + pinot + cassandra + mongo
|
2018-06-06 01:30:02 +03:00
|
|
|
|
2016-11-21 04:38:24 +03:00
|
|
|
devel = [
|
2019-03-15 20:46:53 +03:00
|
|
|
'beautifulsoup4~=4.7.1',
|
2018-09-27 15:10:03 +03:00
|
|
|
'click==6.7',
|
2019-04-13 16:03:02 +03:00
|
|
|
'flake8>=3.6.0',
|
2019-07-11 16:06:44 +03:00
|
|
|
'flake8-colors',
|
2016-11-23 21:18:46 +03:00
|
|
|
'freezegun',
|
2019-07-17 23:42:43 +03:00
|
|
|
'ipdb',
|
2016-11-21 04:38:24 +03:00
|
|
|
'jira',
|
2018-06-06 01:30:02 +03:00
|
|
|
'mongomock',
|
2019-01-11 22:35:08 +03:00
|
|
|
'moto==1.3.5',
|
2016-11-21 04:38:24 +03:00
|
|
|
'nose',
|
|
|
|
'nose-ignore-docstring==0.2',
|
2017-02-26 00:10:14 +03:00
|
|
|
'nose-timer',
|
2017-05-16 12:34:52 +03:00
|
|
|
'parameterized',
|
2017-08-18 22:34:03 +03:00
|
|
|
'paramiko',
|
2019-08-15 03:53:28 +03:00
|
|
|
'pre-commit',
|
2019-07-17 23:42:43 +03:00
|
|
|
'pylint~=2.3.1',
|
2018-03-10 17:12:07 +03:00
|
|
|
'pysftp',
|
2018-05-08 21:12:52 +03:00
|
|
|
'pywinrm',
|
|
|
|
'qds-sdk>=1.9.6',
|
|
|
|
'rednose',
|
2019-07-17 23:42:43 +03:00
|
|
|
'requests_mock',
|
2019-08-22 17:13:56 +03:00
|
|
|
'yamllint'
|
2016-11-21 04:38:24 +03:00
|
|
|
]
|
2018-07-06 23:10:15 +03:00
|
|
|
|
2019-04-14 22:04:58 +03:00
|
|
|
if PY3:
|
|
|
|
devel += ['mypy']
|
|
|
|
else:
|
2018-07-06 23:10:15 +03:00
|
|
|
devel += ['unittest2']
|
|
|
|
|
2019-02-08 13:23:32 +03:00
|
|
|
devel_minreq = devel + kubernetes + mysql + doc + password + cgroups
|
2016-03-21 21:04:32 +03:00
|
|
|
devel_hadoop = devel_minreq + hive + hdfs + webhdfs + kerberos
|
2019-02-08 13:23:32 +03:00
|
|
|
devel_all = (sendgrid + devel + all_dbs + doc + samba + slack + crypto + oracle +
|
2019-03-13 04:54:47 +03:00
|
|
|
docker + ssh + kubernetes + celery + redis + gcp + grpc +
|
2018-05-15 20:30:54 +03:00
|
|
|
datadog + zendesk + jdbc + ldap + kerberos + password + webhdfs + jenkins +
|
2019-02-08 13:23:32 +03:00
|
|
|
druid + pinot + segment + snowflake + elasticsearch +
|
2019-07-03 06:12:52 +03:00
|
|
|
atlas + azure + aws + salesforce + cgroups + papermill + virtualenv)
|
2016-03-21 21:04:32 +03:00
|
|
|
|
2018-03-07 03:23:16 +03:00
|
|
|
# Snakebite & Google Cloud Dataflow are not Python 3 compatible :'(
|
2018-03-06 01:46:07 +03:00
|
|
|
if PY3:
|
2018-03-07 03:23:16 +03:00
|
|
|
devel_ci = [package for package in devel_all if package not in
|
2018-04-28 22:24:15 +03:00
|
|
|
['snakebite>=2.7.8', 'snakebite[kerberos]>=2.7.8']]
|
2018-03-06 01:46:07 +03:00
|
|
|
else:
|
2018-07-06 23:10:15 +03:00
|
|
|
devel_ci = devel_all
|
2016-06-20 15:19:34 +03:00
|
|
|
|
2018-05-08 21:12:52 +03:00
|
|
|
|
2016-05-17 01:36:09 +03:00
|
|
|
def do_setup():
|
2019-06-09 18:35:22 +03:00
|
|
|
"""Perform the Airflow package setup."""
|
2016-05-17 01:36:09 +03:00
|
|
|
write_version()
|
|
|
|
setup(
|
2017-04-17 11:09:47 +03:00
|
|
|
name='apache-airflow',
|
2016-05-17 01:36:09 +03:00
|
|
|
description='Programmatically author, schedule and monitor data pipelines',
|
2019-01-13 11:02:34 +03:00
|
|
|
long_description=long_description,
|
|
|
|
long_description_content_type='text/markdown',
|
2016-05-17 01:36:09 +03:00
|
|
|
license='Apache License 2.0',
|
|
|
|
version=version,
|
2017-09-13 11:11:39 +03:00
|
|
|
packages=find_packages(exclude=['tests*']),
|
2016-05-17 01:36:09 +03:00
|
|
|
package_data={'': ['airflow/alembic.ini', "airflow/git_version"]},
|
|
|
|
include_package_data=True,
|
|
|
|
zip_safe=False,
|
|
|
|
scripts=['airflow/bin/airflow'],
|
|
|
|
install_requires=[
|
2019-06-17 10:56:37 +03:00
|
|
|
'alembic>=1.0, <2.0',
|
2019-08-14 00:34:33 +03:00
|
|
|
'argcomplete~=1.10',
|
2019-04-18 12:00:30 +03:00
|
|
|
'cached_property~=1.5',
|
2019-07-30 19:03:34 +03:00
|
|
|
'colorlog==4.0.2',
|
2017-06-15 03:59:02 +03:00
|
|
|
'croniter>=0.3.17, <0.4',
|
2016-05-17 01:36:09 +03:00
|
|
|
'dill>=0.2.2, <0.3',
|
2019-04-13 16:03:02 +03:00
|
|
|
'dumb-init>=1.2.2',
|
2019-07-12 18:22:12 +03:00
|
|
|
'flask>=1.1.0, <2.0',
|
2019-03-22 01:58:18 +03:00
|
|
|
'flask-appbuilder>=1.12.5, <2.0.0',
|
2018-01-15 23:12:03 +03:00
|
|
|
'flask-caching>=1.3.3, <1.4.0',
|
2018-10-04 10:20:24 +03:00
|
|
|
'flask-login>=0.3, <0.5',
|
2016-11-21 21:29:35 +03:00
|
|
|
'flask-swagger==0.2.13',
|
2018-05-06 12:25:10 +03:00
|
|
|
'flask-wtf>=0.14.2, <0.15',
|
2017-01-21 15:37:25 +03:00
|
|
|
'funcsigs==1.0.0',
|
2019-02-28 09:05:49 +03:00
|
|
|
'gunicorn>=19.5.0, <20.0',
|
2017-11-27 17:54:20 +03:00
|
|
|
'iso8601>=0.1.12',
|
2018-11-13 02:32:19 +03:00
|
|
|
'json-merge-patch==0.2',
|
2019-04-10 19:15:13 +03:00
|
|
|
'jinja2>=2.10.1, <2.11.0',
|
2019-05-29 12:50:07 +03:00
|
|
|
'lazy_object_proxy~=1.3',
|
2016-05-17 01:36:09 +03:00
|
|
|
'markdown>=2.5.2, <3.0',
|
2016-09-04 16:16:37 +03:00
|
|
|
'pandas>=0.17.1, <1.0.0',
|
2018-03-24 11:01:54 +03:00
|
|
|
'pendulum==1.4.4',
|
2018-07-21 15:42:29 +03:00
|
|
|
'psutil>=4.2.0, <6.0.0',
|
2016-05-17 01:36:09 +03:00
|
|
|
'pygments>=2.0.1, <3.0',
|
2016-06-20 15:19:34 +03:00
|
|
|
'python-daemon>=2.1.1, <2.2',
|
2016-05-17 01:36:09 +03:00
|
|
|
'python-dateutil>=2.3, <3',
|
2019-01-14 13:10:04 +03:00
|
|
|
'requests>=2.20.0, <3',
|
2016-05-17 01:36:09 +03:00
|
|
|
'setproctitle>=1.1.8, <2',
|
2019-04-16 20:16:29 +03:00
|
|
|
'sqlalchemy~=1.3',
|
2019-03-06 00:27:25 +03:00
|
|
|
'tabulate>=0.7.5, <0.9',
|
2019-01-31 09:59:49 +03:00
|
|
|
'tenacity==4.12.0',
|
2019-07-30 19:03:34 +03:00
|
|
|
'termcolor==1.1.0',
|
2019-01-15 22:40:49 +03:00
|
|
|
'text-unidecode==1.2',
|
2019-03-15 14:28:52 +03:00
|
|
|
'typing;python_version<"3.5"',
|
2017-09-11 14:14:47 +03:00
|
|
|
'thrift>=0.9.2',
|
2019-07-24 00:06:38 +03:00
|
|
|
'tzlocal>=1.4,<2.0.0',
|
2018-06-01 19:44:04 +03:00
|
|
|
'unicodecsv>=0.14.1',
|
2016-06-20 19:40:07 +03:00
|
|
|
'zope.deprecation>=4.0, <5.0',
|
2019-08-23 13:51:13 +03:00
|
|
|
'typing-extensions>=3.7.4;python_version<"3.8"',
|
2016-05-17 01:36:09 +03:00
|
|
|
],
|
2017-11-09 20:15:02 +03:00
|
|
|
setup_requires=[
|
|
|
|
'docutils>=0.14, <1.0',
|
2019-07-24 15:19:20 +03:00
|
|
|
'gitpython>=2.0.2',
|
2017-11-09 20:15:02 +03:00
|
|
|
],
|
2016-05-17 01:36:09 +03:00
|
|
|
extras_require={
|
|
|
|
'all': devel_all,
|
2018-03-06 01:46:07 +03:00
|
|
|
'devel_ci': devel_ci,
|
2016-05-17 01:36:09 +03:00
|
|
|
'all_dbs': all_dbs,
|
2018-05-14 10:09:25 +03:00
|
|
|
'atlas': atlas,
|
2018-07-05 01:51:29 +03:00
|
|
|
'async': async_packages,
|
2019-02-08 13:23:32 +03:00
|
|
|
'aws': aws,
|
|
|
|
'azure': azure,
|
2018-05-18 04:01:41 +03:00
|
|
|
'cassandra': cassandra,
|
2016-05-17 01:36:09 +03:00
|
|
|
'celery': celery,
|
2017-01-19 05:11:01 +03:00
|
|
|
'cgroups': cgroups,
|
2016-06-20 15:19:34 +03:00
|
|
|
'cloudant': cloudant,
|
2016-05-17 01:36:09 +03:00
|
|
|
'crypto': crypto,
|
2017-02-13 00:06:31 +03:00
|
|
|
'dask': dask,
|
2017-04-06 18:30:01 +03:00
|
|
|
'databricks': databricks,
|
2016-11-14 10:19:03 +03:00
|
|
|
'datadog': datadog,
|
2016-05-17 01:36:09 +03:00
|
|
|
'devel': devel_minreq,
|
|
|
|
'devel_hadoop': devel_hadoop,
|
|
|
|
'doc': doc,
|
|
|
|
'docker': docker,
|
2018-03-14 11:20:16 +03:00
|
|
|
'druid': druid,
|
2018-04-13 12:09:50 +03:00
|
|
|
'elasticsearch': elasticsearch,
|
2019-02-27 17:21:57 +03:00
|
|
|
'gcp': gcp,
|
|
|
|
'gcp_api': gcp, # TODO: remove this in Airflow 2.1
|
2019-04-05 19:11:50 +03:00
|
|
|
'github_enterprise': flask_oauth,
|
|
|
|
'google_auth': flask_oauth,
|
2019-03-13 04:54:47 +03:00
|
|
|
'grpc': grpc,
|
2016-05-17 01:36:09 +03:00
|
|
|
'hdfs': hdfs,
|
|
|
|
'hive': hive,
|
|
|
|
'jdbc': jdbc,
|
2018-05-08 21:12:52 +03:00
|
|
|
'jira': jira,
|
2016-06-20 15:19:34 +03:00
|
|
|
'kerberos': kerberos,
|
2018-05-08 21:12:52 +03:00
|
|
|
'kubernetes': kubernetes,
|
2016-06-20 15:19:34 +03:00
|
|
|
'ldap': ldap,
|
2018-06-06 01:30:02 +03:00
|
|
|
'mongo': mongo,
|
2016-05-17 01:36:09 +03:00
|
|
|
'mssql': mssql,
|
|
|
|
'mysql': mysql,
|
|
|
|
'oracle': oracle,
|
2019-05-10 00:01:16 +03:00
|
|
|
'papermill': papermill,
|
2016-06-20 15:19:34 +03:00
|
|
|
'password': password,
|
2018-04-30 09:41:43 +03:00
|
|
|
'pinot': pinot,
|
2016-05-17 01:36:09 +03:00
|
|
|
'postgres': postgres,
|
2016-06-20 15:19:34 +03:00
|
|
|
'qds': qds,
|
2016-05-17 01:36:09 +03:00
|
|
|
'rabbitmq': rabbitmq,
|
2018-05-08 21:12:52 +03:00
|
|
|
'redis': redis,
|
2016-11-18 22:10:32 +03:00
|
|
|
'salesforce': salesforce,
|
2016-05-17 01:36:09 +03:00
|
|
|
'samba': samba,
|
2018-05-08 21:12:52 +03:00
|
|
|
'sendgrid': sendgrid,
|
2018-05-11 10:25:19 +03:00
|
|
|
'segment': segment,
|
2016-05-17 01:36:09 +03:00
|
|
|
'slack': slack,
|
2018-05-08 21:12:52 +03:00
|
|
|
'snowflake': snowflake,
|
2017-07-20 23:07:30 +03:00
|
|
|
'ssh': ssh,
|
2016-05-17 01:36:09 +03:00
|
|
|
'statsd': statsd,
|
|
|
|
'vertica': vertica,
|
|
|
|
'webhdfs': webhdfs,
|
2019-07-03 06:12:52 +03:00
|
|
|
'winrm': winrm,
|
2016-05-17 01:36:09 +03:00
|
|
|
},
|
2016-05-20 03:36:56 +03:00
|
|
|
classifiers=[
|
2016-05-17 01:36:09 +03:00
|
|
|
'Development Status :: 5 - Production/Stable',
|
|
|
|
'Environment :: Console',
|
|
|
|
'Environment :: Web Environment',
|
|
|
|
'Intended Audience :: Developers',
|
|
|
|
'Intended Audience :: System Administrators',
|
|
|
|
'License :: OSI Approved :: Apache Software License',
|
2018-08-01 12:25:31 +03:00
|
|
|
'Programming Language :: Python :: 3.5',
|
2019-06-17 17:23:36 +03:00
|
|
|
'Programming Language :: Python :: 3.6',
|
|
|
|
'Programming Language :: Python :: 3.7',
|
2016-05-17 01:36:09 +03:00
|
|
|
'Topic :: System :: Monitoring',
|
2016-05-20 03:36:56 +03:00
|
|
|
],
|
2017-02-24 01:48:03 +03:00
|
|
|
author='Apache Software Foundation',
|
2019-01-05 17:05:25 +03:00
|
|
|
author_email='dev@airflow.apache.org',
|
|
|
|
url='http://airflow.apache.org/',
|
2016-05-17 01:36:09 +03:00
|
|
|
download_url=(
|
2019-01-05 17:05:25 +03:00
|
|
|
'https://dist.apache.org/repos/dist/release/airflow/' + version),
|
2016-06-29 23:39:15 +03:00
|
|
|
cmdclass={
|
|
|
|
'extra_clean': CleanCommand,
|
2018-07-22 10:23:57 +03:00
|
|
|
'compile_assets': CompileAssets
|
2016-06-29 23:39:15 +03:00
|
|
|
},
|
2019-07-17 23:42:43 +03:00
|
|
|
test_suite='setup.airflow_test_suite',
|
2019-06-17 17:23:36 +03:00
|
|
|
python_requires='~=3.5',
|
2016-05-17 01:36:09 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
do_setup()
|