-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
135 lines (114 loc) · 3.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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "astro-provider-anyscale"
authors = [{ name = "Astronomer", email = "[email protected]" }]
license = { text = "Apache License 2.0" }
description = "An Apache Airflow provider package built by Astronomer to integrate with Anyscale."
classifiers = [
"Framework :: Apache Airflow",
"Framework :: Apache Airflow :: Provider",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dynamic = ["version"]
requires-python = ">=3.8, <3.13"
dependencies = [
"apache-airflow>=2.7",
"pyyaml",
"anyscale==0.24.44",
]
[project.urls]
Homepage = "https://astronomer.io"
Source = "https://github.com/astronomer/astro-provider-anyscale/"
[project.readme]
file = "README.md"
content-type = "text/markdown"
[project.entry-points.apache_airflow_provider]
provider_info = "anyscale_provider.__init__:get_provider_info"
[tool.hatch.version]
path = "anyscale_provider/__init__.py"
[tool.hatch.build.targets.sdist]
include = ["/anyscale_provider"]
[tool.hatch.build.targets.wheel]
packages = ["/anyscale_provider"]
docs = [
"sphinx",
"pydata-sphinx-theme",
"sphinx-autobuild",
"sphinx-autoapi",
]
######################################
# TESTING
######################################
[tool.hatch.envs.tests]
dependencies = [
"types-PyYAML",
"types-attrs",
"types-requests",
"types-python-dateutil",
"apache-airflow=={matrix:airflow}.0",
"pytest>=6.0",
"pytest-cov",
"pre-commit"
]
pre-install-commands = ["sh scripts/test/pre-install-airflow.sh {matrix:airflow} {matrix:python}"]
[[tool.hatch.envs.tests.matrix]]
python = ["3.8", "3.9", "3.10", "3.11", "3.12"]
airflow = ["2.7", "2.8", "2.9"]
[tool.hatch.envs.tests.overrides]
matrix.airflow.dependencies = [
{ value = "typing_extensions<4.6", if = ["2.6"] }
]
[tool.hatch.envs.tests.scripts]
freeze = "pip freeze"
test = 'sh scripts/test/unit_test.sh'
test-cov = 'sh scripts/test/unit_cov.sh'
test-integration = 'sh scripts/test/integration_test.sh'
static-check = "pre-commit run --all-files"
######################################
# DOCS
######################################
[tool.hatch.envs.docs]
dependencies = [
"aenum",
"pydantic>=1.10.0",
"pydata-sphinx-theme",
"sphinx",
"sphinx-autoapi",
"sphinx-autobuild",
]
[tool.hatch.envs.docs.scripts]
build = "sphinx-build -b html docs docs/_build"
serve = "sphinx-autobuild docs docs/_build"
######################################
# THIRD PARTY TOOLS
######################################
[tool.black]
line-length = 120
target-version = ['py38', 'py39', 'py310', 'py311']
[tool.isort]
profile = "black"
known_third_party = ["airflow"]
[tool.mypy]
strict = true
ignore_missing_imports = true
no_warn_unused_ignores = true
[tool.ruff]
line-length = 120
[tool.ruff.lint]
select = ["C901", "I", "F"]
ignore = ["F541"]
[tool.ruff.lint.mccabe]
max-complexity = 7
[tool.distutils.bdist_wheel]
universal = true