-
Notifications
You must be signed in to change notification settings - Fork 300
/
pyproject.toml
149 lines (137 loc) · 4.42 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
[build-system]
requires = ["setuptools", "setuptools_scm"]
build-backend = "setuptools.build_meta"
[project]
name = "flytekit"
dynamic = ["version"]
authors = [{ name = "Flyte Contributors", email = "[email protected]" }]
description = "Flyte SDK for Python"
license = { text = "Apache-2.0" }
readme = { file = "README.md", content-type = "text/markdown" }
requires-python = ">=3.9,<3.13"
dependencies = [
# Please maintain an alphabetical order in the following list
"adlfs>=2023.3.0",
"click>=6.6",
"cloudpickle>=2.0.0",
"croniter>=0.3.20",
"dataclasses-json>=0.5.2,<0.5.12", # TODO: remove upper-bound after fixing change in contract
"diskcache>=5.2.1",
"docker>=4.0.0",
"docstring-parser>=0.9.0",
"flyteidl>=1.14.1",
"fsspec>=2023.3.0",
"gcsfs>=2023.3.0",
"googleapis-common-protos>=1.57",
# Skipping those versions to account for the unwanted output coming from grpcio and grpcio-status.
# Issue being tracked in https://github.com/flyteorg/flyte/issues/6082.
"grpcio!=1.68.0,!=1.68.1",
"grpcio-status!=1.68.0,!=1.68.1",
"importlib-metadata",
"joblib",
"jsonlines",
"jsonpickle",
"keyring>=18.0.1",
"kubernetes>=12.0.1",
"markdown-it-py",
"marshmallow-enum",
"marshmallow-jsonschema>=0.12.0",
"mashumaro>=3.15",
"msgpack>=1.1.0",
"protobuf!=4.25.0",
"pygments",
"python-json-logger>=2.0.0",
"pytimeparse>=1.1.8",
"pyyaml!=6.0.0,!=5.4.0,!=5.4.1", # pyyaml is broken with cython 3: https://github.com/yaml/pyyaml/issues/601
"requests>=2.18.4",
"rich",
"rich_click",
"s3fs>=2023.3.0,!=2024.3.1",
"statsd>=3.0.0",
"typing_extensions",
"urllib3>=1.22",
]
classifiers = [
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
]
[project.urls]
Homepage = "https://github.com/flyteorg/flytekit"
[project.scripts]
pyflyte-execute = "flytekit.bin.entrypoint:execute_task_cmd"
pyflyte-fast-execute = "flytekit.bin.entrypoint:fast_execute_task_cmd"
pyflyte-map-execute = "flytekit.bin.entrypoint:map_execute_task_cmd"
pyflyte = "flytekit.clis.sdk_in_container.pyflyte:main"
flyte-cli = "flytekit.clis.flyte_cli.main:_flyte_cli"
[tool.setuptools_scm]
write_to = "flytekit/_version.py"
[tool.setuptools]
include-package-data = true
script-files = [
"flytekit_scripts/flytekit_build_image.sh",
"flytekit_scripts/flytekit_venv",
"flytekit/bin/entrypoint.py",
]
[tool.setuptools.packages.find]
include = ["flytekit*", "flytekit_scripts"]
exclude = ["boilerplate", "docs", "plugins", "tests*"]
[tool.pytest.ini_options]
norecursedirs = ["common", "workflows", "spark", "fsspec"]
log_cli = false
log_cli_level = 20
markers = [
"sandbox_test: fake integration tests", # unit tests that are really integration tests that run on a sandbox environment
"serial: tests to avoid using with pytest-xdist",
"hypothesis: tests that use they hypothesis library",
"lftransfers: integration tests which involve large file transfers"
]
[tool.coverage.report]
exclude_also = [
"def __repr__",
"pragma: no cover",
"if __name__ == .__main__.:",
"if (typing\\.)?TYPE_CHECKING:",
"@(typing\\.)?overload",
"@(abc\\.)?abstractmethod",
"raise NotImplementedError",
]
[tool.coverage.run]
branch = true
[tool.ruff]
line-length = 120
lint.select = ["E", "W", "F", "I", "B006"]
lint.ignore = [
# Whitespace before '{symbol}'
"E203",
# Too many leading # before block comment
"E266",
# Line too long ({width} > {limit})
"E501",
# Ambiguous variable name: {name}
"E741",
# Undefined name {name}
"F821",
# Do not compare types, use isinstance()
"E721",
# Do not assign a lambda expression, use a def
"E731",
]
extend-exclude = ["tests/", "**/tests/**"]
[tool.ruff.lint.extend-per-file-ignores]
"*/__init__.py" = [
# unused-import
"F401",
]
[tool.codespell]
ignore-words-list = "ot,te,raison,fo,lits"
skip = "./docs/build,./.git,*.txt"