forked from PrefectHQ/prefect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
170 lines (151 loc) · 5.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
import sys
import os
from setuptools import find_packages, setup
from setuptools.command.install import install
import versioneer
class VerifyVersionCommand(install):
"""Verify that the git tag matches our package version"""
description = "verify that the git tag matches our package version"
def run(self):
version = versioneer.get_version()
tag = os.getenv("CIRCLE_TAG")
if tag != version:
info = "Failed version verification: '{0}' does not match the version of this app: '{1}'".format(
tag, version
)
sys.exit(info)
## base requirements
install_requires = open("requirements.txt").read().strip().split("\n")
dev_requires = open("dev-requirements.txt").read().strip().split("\n")
test_requires = open("test-requirements.txt").read().strip().split("\n")
orchestration_extras = {
"aws": ["boto3 >= 1.9"],
"azure": [
"azure-storage-blob >= 12.1.0",
"azure-identity >= 1.7.0",
],
"bitbucket": ["atlassian-python-api >= 2.0.1"],
"gcp": [
"google-cloud-secret-manager >= 2.4.0",
"google-cloud-storage >= 1.13",
"google-cloud-aiplatform >= 1.4.0",
"google-auth >= 2.0",
],
"git": ["dulwich >= 0.19.7"],
"github": ["PyGithub >= 1.51"],
"gitlab": ["python-gitlab >= 2.5.0"],
"kubernetes": ["kubernetes >= 9.0.0a1.0"],
}
extras = {
"airtable": ["airtable-python-wrapper >= 0.11"],
"aws": orchestration_extras["aws"],
"azure": [
"azure-core >= 1.10.0",
"azure-storage-blob >= 12.1.0",
"azure-cosmos >= 3.1.1",
],
"azureml": ["azureml-sdk"],
"bitbucket": orchestration_extras["bitbucket"],
"dask_cloudprovider": ["dask_cloudprovider[aws] >= 0.2.0"],
"dev": dev_requires + test_requires,
"databricks": ["pydantic >= 1.9.0"],
"dropbox": ["dropbox ~= 9.0"],
"firebolt": ["firebolt-sdk >= 0.2.1"],
"ge": ["great_expectations >= 0.13.8", "mistune < 2.0"],
"gcp": [
"google-cloud-bigquery >= 1.6.0",
]
+ orchestration_extras["gcp"],
"git": orchestration_extras["git"],
"github": orchestration_extras["github"],
"gitlab": orchestration_extras["gitlab"],
"google": [
"google-cloud-bigquery >= 1.6.0",
]
+ orchestration_extras["gcp"],
"gsheets": ["gspread >= 3.6.0"],
"jira": ["jira >= 2.0.0"],
"jupyter": ["papermill >= 2.2.0", "nbconvert >= 6.0.7", "ipykernel >= 6.9.2"],
"kafka": ["confluent-kafka >= 1.7.0"],
"kubernetes": ["dask-kubernetes >= 0.8.0"] + orchestration_extras["kubernetes"],
"pandas": ["pandas >= 1.0.1"],
"postgres": ["psycopg2-binary >= 2.8.2"],
"prometheus": ["prometheus-client >= 0.9.0"],
"mysql": ["pymysql >= 0.9.3"],
"sql_server": ["pyodbc >= 4.0.30"],
"pushbullet": ["pushbullet.py >= 0.11.0"],
"redis": ["redis >= 3.2.1"],
"rss": ["feedparser >= 5.0.1"],
"snowflake": ["snowflake-connector-python >= 1.8.2"],
"spacy": ["spacy >= 2.0.0"],
"templates": ["jinja2 >= 2.0"],
"test": test_requires,
"vault": ["hvac >= 0.10"],
"viz": ["graphviz >= 0.8.3"],
"twitter": ["tweepy >= 3.5"],
"dremio": ["pyarrow >= 5.0.0"],
"exasol": ["pyexasol >= 0.16.1"],
"sodasql": ["soda-sql >= 2.0.0b25"],
"sodaspark": ["soda-spark >= 0.2.1"],
"sendgrid": ["sendgrid >= 6.7.0"],
"cubejs": ["PyJWT >= 2.3.0"],
"neo4j": ["py2neo >= 2021.2.3"],
"transform": ["transform >= 1.0.12"],
"sftp": ["paramiko >= 2.10.4"],
}
if sys.version_info < (3, 6):
extras["dev"].remove("black")
extras["all_extras"] = sum(extras.values(), [])
# Extras for docker image builds to include for orchestration
extras["all_orchestration_extras"] = sum(orchestration_extras.values(), [])
# CI extras to control dependencies for tests
extras["task_library_ci"] = sum(extras.values(), [])
extras["task_library_ci"] = [
r
for r in extras["task_library_ci"]
if not r.startswith("dask_cloudprovider") and not r.startswith("pyodbc")
]
extras["base_library_ci"] = (
extras["all_orchestration_extras"]
+ extras["dev"]
+ extras["pandas"]
+ extras["jira"]
)
cmdclass = {
"verify_version": VerifyVersionCommand,
}
cmdclass.update(versioneer.get_cmdclass())
setup(
name="prefect",
version=versioneer.get_version(),
cmdclass=cmdclass,
install_requires=install_requires,
extras_require=extras,
scripts=[],
packages=find_packages(where="src"),
package_dir={"": "src"},
package_data={"prefect": ["py.typed"]},
include_package_data=True,
entry_points={"console_scripts": ["prefect=prefect.cli:cli"]},
python_requires=">=3.7",
description="The Prefect Core automation and scheduling engine.",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
url="https://www.github.com/PrefectHQ/prefect",
license="Apache License 2.0",
author="Prefect Technologies, Inc.",
author_email="[email protected]",
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Software Development :: Libraries",
"Topic :: System :: Monitoring",
],
)