This repository has been archived by the owner on Apr 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpyproject.toml
186 lines (162 loc) · 5.31 KB
/
pyproject.toml
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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
[build-system]
requires = ["flit_core ~=3.2"]
build-backend = "flit_core.buildapi"
[project]
name = "apache-airflow-provider-transfers"
dynamic = ["version"]
description = """This project contains the Universal Transfer Operator which can transfer all the data
that could be read from the source Dataset into the destination Dataset.
From a DAG author standpoint, all transfers would be performed through the invocation of only the
Universal Transfer Operator."""
authors = [
{ name = "Astronomer", email = "[email protected]" },
]
readme = "README.md"
license = { file = "LICENSE" }
requires-python = ">=3.7"
dependencies = [
"apache-airflow>=2.0",
"attrs>=20.0",
"pandas>=1.3.4,<2.0.0", # Pinning it to <2.0.0 to avoid breaking changes
"pyarrow",
"python-frontmatter",
"smart-open",
"SQLAlchemy>=1.3.18",
"apache-airflow-providers-common-sql"
]
keywords = ["airflow", "provider", "astronomer", "sql", "decorator", "task flow", "elt", "etl", "dag"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: Apache Software License",
"Topic :: Database",
"Framework :: Apache Airflow",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
]
[project.optional-dependencies]
tests = [
"pytest>=6.0",
"pytest-split",
"pytest-dotenv",
"requests-mock",
"pytest-cov",
"pytest-describe",
"types-requests",
"mypy",
"sqlalchemy-stubs", # Change when sqlalchemy is upgraded https://docs.sqlalchemy.org/en/14/orm/extensions/mypy.html
]
google = [
"protobuf<=3.20", # Google bigquery client require protobuf <= 3.20.0. We can remove the limitation when this limitation is removed
"apache-airflow-providers-google>=6.4.0",
"sqlalchemy-bigquery>=1.3.0",
"smart-open[gcs]>=5.2.1"
]
snowflake = [
"apache-airflow-providers-snowflake",
"snowflake-sqlalchemy>=1.2.0",
"snowflake-connector-python[pandas]<3.0.0",
# pinning snowflake-connector-python[pandas]<3.0.0 due to a conflict in snowflake-connector-python/pyarrow/google
# packages and pandas-gbq/google packages which is forcing pandas-gbq of version 0.13.2 installed, which is not
# compatible with pandas 1.5.3
]
amazon = [
"apache-airflow-providers-amazon>=5.0.0",
"s3fs",
"smart-open[s3]>=5.2.1",
]
openlineage = ["openlineage-airflow>=0.17.0"]
fivetran = ["airflow-provider-fivetran>=1.1.3"]
all = [
"apache-airflow-providers-amazon",
"apache-airflow-providers-google>=6.4.0",
"apache-airflow-providers-snowflake",
"smart-open[all]>=5.2.1",
"snowflake-connector-python[pandas]<3.0.0",
# pinning snowflake-connector-python[pandas]<3.0.0 due to a conflict in snowflake-connector-python/pyarrow/google
# packages and pandas-gbq/google packages which is forcing pandas-gbq of version 0.13.2 installed, which is not
# compatible with pandas 1.5.3
"snowflake-sqlalchemy>=1.2.0",
"sqlalchemy-bigquery>=1.3.0",
"s3fs",
"protobuf<=3.20", # Google bigquery client require protobuf <= 3.20.0. We can remove the limitation when this limitation is removed
"openlineage-airflow>=0.17.0",
"airflow-provider-fivetran>=1.1.3",
"apache-airflow-providers-sftp"
]
doc = [
"myst-parser>=0.17",
"sphinx>=4.4.0",
"sphinx-autoapi>=2.0.0",
"sphinx-rtd-theme"
]
sftp = [
"apache-airflow-providers-sftp",
"smart-open[ssh]>=5.2.1",
]
[project.urls]
Home = "https://astronomer.io/"
Source = "https://github.com/astronomer/astro-sdk/universal_transfer_operator"
[project.entry-points.apache_airflow_provider]
provider_info = "universal_transfer_operator.__init__:get_provider_info"
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "--durations=30 --durations-min=1.0"
env_files = [".env"]
testpaths = ["tests"]
markers = [
"integration"
]
[tool.flit.module]
name = "universal_transfer_operator"
[tool.mypy]
color_output = true
#disallow_any_generics = true
#disallow_incomplete_defs = true
#disallow_untyped_defs = true
files = ["src/universal_transfer_operator"]
no_implicit_optional = true
pretty = true
strict_equality = true
show_error_codes = true
show_error_context = true
warn_redundant_casts = true
warn_return_any = true
warn_unused_configs = true
ignore_missing_imports = true
[tool.black]
line-length = 110
target-version = ['py37', 'py38', 'py39', 'py310']
[tool.ruff]
line-length = 120
# Enable Pyflakes `E` and `F` codes by default.
extend-select = [
"W", # pycodestyle warnings
"I", # isort
"C90", # Complexity
# "B", # flake8-bugbear
"C", # flake8-comprehensions
# "ANN", # flake8-comprehensions
"ISC", # flake8-implicit-str-concat
"T10", # flake8-debugger
"A", # flake8-builtins
"UP", # pyupgrade
]
extend-ignore = ["A002"]
# Exclude a variety of commonly ignored directories.
extend-exclude = [
"__pycache__",
"docs/source/conf.py",
]
target-version = "py37"
fix = true
[per-file-ignores]
"src/universal_transfer_operator/__init__.py" = ["F401"]
"src/universal_transfer_operator/integrations/hooks/fivetran.py" = ["C901"]
[mccabe]
max-complexity = 6
[isort]
combine-as-imports = true
known-first-party = ["universal_transfer_operator", "tests", "tests_integration"]