forked from opendatahub-io/pipelines-components
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
198 lines (182 loc) · 7.43 KB
/
pyproject.toml
File metadata and controls
198 lines (182 loc) · 7.43 KB
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
187
188
189
190
191
192
193
194
195
196
197
198
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "kfp-components"
version = "1.11.0"
description = "A collection of reusable components and pipelines for Kubeflow Pipelines"
authors = [{ name = "Kubeflow Community" }]
license = "Apache-2.0"
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"kfp>=2.16.1",
"kfp-kubernetes>=2.16.1",
]
[project.optional-dependencies]
lint = [
# We keep these pinned to avoid new lint failures due to updates
"ruff==0.15.2",
"yamllint==1.38.0",
]
test = [
"docker",
"docstring-parser",
"jinja2",
"packaging",
"pip",
"pyyaml",
"pytest",
"pytest-cov",
"pytest-timeout",
"semver",
"setuptools",
# Component-specific SDK deps required for python_func() tests.
# KFP SubprocessRunner cannot auto-install these because it does not
# support Input[Dataset] artifacts (see: https://github.com/kubeflow/pipelines/issues/13061).
# Once KFP fixes this, these can be removed and tests can use
# SubprocessRunner(use_venv=True) instead.
"sdg-hub>=0.7.0,<1.0",
# Required for pipeline validation (validate_examples, validate_base_images)
"kfp-kubernetes",
]
# Dependencies for AutoGluon pipeline integration tests (RHOAI + S3 + KFP)
test_automl = [
"kfp-components[test]",
"boto3",
"kubernetes",
"python-dotenv",
]
# Local development (extends test with additional tools)
dev = ["kfp-components[lint]", "kfp-components[test]"]
[project.urls]
Homepage = "https://www.kubeflow.org/docs/components/pipelines/"
Documentation = "https://github.com/kubeflow/pipelines-components/tree/main/docs"
Repository = "https://github.com/kubeflow/pipelines-components"
Issues = "https://github.com/kubeflow/pipelines-components/issues"
[tool.setuptools]
packages = [
"kfp_components",
"kfp_components.utils",
"kfp_components.components",
"kfp_components.components.data_processing",
"kfp_components.components.data_processing.automl",
"kfp_components.components.data_processing.automl.tabular_data_loader",
"kfp_components.components.data_processing.automl.timeseries_data_loader",
"kfp_components.components.data_processing.autorag",
"kfp_components.components.data_processing.autorag.documents_discovery",
"kfp_components.components.data_processing.autorag.documents_indexing",
"kfp_components.components.data_processing.autorag.test_data_loader",
"kfp_components.components.data_processing.autorag.text_extraction",
"kfp_components.components.data_processing.dataset_download",
"kfp_components.components.data_processing.yoda_data_processor",
"kfp_components.components.data_processing.sdg",
"kfp_components.components.deployment",
"kfp_components.components.deployment.autorag",
"kfp_components.components.deployment.autorag.build_responses_request_bodies",
"kfp_components.components.deployment.kubeflow_model_registry",
"kfp_components.components.evaluation",
"kfp_components.components.evaluation.lm_eval",
"kfp_components.components.training",
"kfp_components.components.training.automl",
"kfp_components.components.training.automl.autogluon_leaderboard_evaluation",
"kfp_components.components.training.automl.autogluon_models_training",
"kfp_components.components.training.automl.autogluon_timeseries_leaderboard_evaluation",
"kfp_components.components.training.automl.autogluon_timeseries_models_full_refit",
"kfp_components.components.training.automl.autogluon_timeseries_models_selection",
"kfp_components.components.training.automl.shared",
"kfp_components.components.training.autorag",
"kfp_components.components.training.autorag.leaderboard_evaluation",
"kfp_components.components.training.autorag.rag_templates_optimization",
"kfp_components.components.training.autorag.search_space_preparation",
"kfp_components.components.training.finetuning",
"kfp_components.components.training.finetuning.lora",
"kfp_components.components.training.finetuning.osft",
"kfp_components.components.training.finetuning.sft",
"kfp_components.components.training.finetuning.shared",
"kfp_components.pipelines",
"kfp_components.pipelines.data_processing",
"kfp_components.pipelines.data_processing.autorag",
"kfp_components.pipelines.data_processing.autorag.documents_indexing_pipeline",
"kfp_components.pipelines.data_processing.sdg",
"kfp_components.pipelines.deployment",
"kfp_components.pipelines.evaluation",
"kfp_components.pipelines.training",
"kfp_components.pipelines.training.automl",
"kfp_components.pipelines.training.automl.autogluon_tabular_training_pipeline",
"kfp_components.pipelines.training.automl.autogluon_timeseries_training_pipeline",
"kfp_components.pipelines.training.autorag",
"kfp_components.pipelines.training.autorag.documents_rag_optimization_pipeline",
"kfp_components.pipelines.training.finetuning",
"kfp_components.pipelines.training.finetuning.lora",
"kfp_components.pipelines.training.finetuning.lora_minimal",
"kfp_components.pipelines.training.finetuning.osft",
"kfp_components.pipelines.training.finetuning.osft_minimal",
"kfp_components.pipelines.training.finetuning.sft",
"kfp_components.pipelines.training.finetuning.sft_minimal",
]
[tool.setuptools.package-dir]
"kfp_components" = "."
"kfp_components.utils" = "utils"
"kfp_components.components" = "components"
"kfp_components.pipelines" = "pipelines"
[tool.setuptools.package-data]
"*" = ["*.yaml", "*.yml", "*.json"]
"kfp_components.components.training.automl.autogluon_models_training" = ["notebook_templates/*.ipynb"]
"kfp_components.components.training.automl.autogluon_timeseries_models_full_refit" = ["notebook_templates/*.ipynb"]
"kfp_components.components.training.automl.shared" = ["*.html"]
"kfp_components.components.training.autorag.rag_templates_optimization" = ["notebook_templates/*.ipynb"]
[tool.ruff]
line-length = 120
target-version = "py311"
exclude = [
".git",
".venv",
"build",
"dist",
"__pycache__",
"node_modules",
"**/_generated/",
"**/test_data/**", # Test fixtures may have intentional styles (quote types, etc.)
]
[tool.ruff.lint]
# Enable pycodestyle (E, W), pyflakes (F), isort (I), pydocstyle (D)
select = ["E", "W", "F", "I", "D"]
ignore = [
"D100", # Missing docstring in public module
"D104", # Missing docstring in public package
"D415", # First line should end with punctuation (not needed for simple module names)
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.isort]
known-first-party = ["kubeflow"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
docstring-code-format = true
[project.scripts]
# Format is: script-name = "module.path:function_name"
my-script = "scripts.generate_readme.cli:main"
# Pytest configuration for KEP-913 repository structure
# Currently tests are in scripts/ only. When component/pipeline tests are added,
# this configuration will need to be updated to handle tests in components/*/tests/
[tool.pytest.ini_options]
testpaths = ["scripts"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
markers = [
"integration: marks test as integration/functional/e2e (requires RHOAI cluster and .env config).",
]
# Don't search these directories
norecursedirs = [
".git",
".venv",
"build",
"dist",
"__pycache__",
"components",
"pipelines",
]