-
Notifications
You must be signed in to change notification settings - Fork 343
/
pyproject.toml
291 lines (263 loc) · 10.4 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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
[build-system]
build-backend = "hatchling.build"
requires = [
"hatchling>=1.2.0"
]
[project]
name="elyra"
description="Elyra provides AI Centric extensions to JupyterLab"
maintainers = [
{name = "Elyra Maintainers"},
]
readme = "README.md"
requires-python = ">=3.8"
dependencies = [
"autopep8>=1.5.0",
"click>=8", # elyra-ai/elyra#2579
"colorama",
"deprecation",
"entrypoints>=0.3",
"jinja2>=3",
"jsonschema>=3.2.0",
"jupyter_core>=5.3.1",
"jupyter_client>=7.4.9",
"jupyter-events>=0.7.0",
"jupyter-packaging>=0.12.3",
"jupyter_server>=2.7.3",
"jupyterlab>=3.6.5,<4.0", # comment out to use local jupyterlab
"jupyterlab-lsp<=4.3.0", # comment out to use local jupyterlab, also less than 4.3.0 for Jupyterlab < 4 compatibility
"jupyterlab-git<=0.44.0", # Jupyterlab < 4 compatibility
"jupyterlab_pygments<0.3.0", # Jupyterlab < 4 compatibility
"jupyter-resource-usage>=0.5.1,<1",
"MarkupSafe>=2.1",
"minio>=7.0.0,!=7.2.1",
"nbclient>=0.5.1",
"nbconvert==7.1.0",
"nbdime~=3.2.1", # Cap from jupyterlab-git
"nbformat>=5.1.2",
"networkx>=2.5.1",
"papermill>=2.3.4",
"python-lsp-server[all]>=1.1.0",
"pyyaml>=5.3.1",
"requests>=2.31",
"rfc3986-validator>=0.1.1",
"tornado>=6.1.0",
"traitlets>=4.3.2",
"typing-extensions>=3.10",
"urllib3>=1.26.5",
"watchdog>=2.1.3",
"websocket-client",
"yaspin",
# see: https://stackoverflow.com/questions/76175487/sudden-importerror-cannot-import-name-appengine-from-requests-packages-urlli
"appengine-python-standard",
"pygithub",
"black>=22.8.0",
]
classifiers = [
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
dynamic = ['version']
[project.urls]
Documentation = "https://elyra.readthedocs.io/en/latest"
Homepage = "https://github.com/elyra-ai/elyra"
[project.optional-dependencies]
test = [
"elyra-examples-kfp-catalog",
"git-python",
"importlib-resources",
"pytest>=5.4.1",
"pytest-console-scripts",
"pytest_jupyter",
"pytest-tornasync",
"pytest_virtualenv",
"requests-mock",
"requests-unixsocket",
"kfp-tekton"
]
airflow = [
]
airflow-gitlab = [
"python-gitlab"
]
kfp = [
"kfp>=1.7.0,<2.0,!=1.7.2", # We cap the SDK to <2.0 due to possible breaking changes
"typing-extensions>=3.10,<5", # Cap from kfp
]
kfp-tekton = [
"kfp-tekton>=1.5.2" # requires kfp >= 1.8.19, which contains fix for Jupyterlab
]
kfp-examples = [
"elyra-examples-kfp-catalog"
]
# The following is a collection of "non-test" extra dependencies from above.
all = [
"kfp>=1.7.0,<2.0,!=1.7.2", # We cap the SDK to <2.0 due to possible breaking changes
"kfp-tekton>=1.5.2",
"elyra-examples-kfp-catalog",
"python-gitlab",
"typing-extensions>=3.10,<5", # Cap from kfp
]
# Console scripts
[project.scripts]
elyra-metadata = "elyra.metadata.metadata_app:MetadataApp.main"
elyra-pipeline = "elyra.cli.pipeline_app:pipeline"
jupyter-elyra = "elyra.elyra_app:launch_instance"
# Elyra entry points
[project.entry-points."metadata.schemaspaces"]
runtimes = "elyra.metadata.schemaspaces:Runtimes"
runtimes-images = "elyra.metadata.schemaspaces:RuntimeImages"
code-snippets = "elyra.metadata.schemaspaces:CodeSnippets"
component-catalogs = "elyra.metadata.schemaspaces:ComponentCatalogs"
metadata-tests = "elyra.tests.metadata.test_utils:MetadataTestSchemaspace"
[project.entry-points."metadata.schemas_providers"]
runtimes = "elyra.metadata.schemasproviders:RuntimesSchemas"
runtimes-images = "elyra.metadata.schemasproviders:RuntimeImagesSchemas"
code-snippets = "elyra.metadata.schemasproviders:CodeSnippetsSchemas"
component-catalogs = "elyra.metadata.schemasproviders:ComponentCatalogsSchemas"
airflow-provider-package-catalog-schema = "elyra.pipeline.airflow.provider_package_catalog_connector.airflow_provider_package_schema_provider:AirflowProviderPackageSchemasProvider"
airflow-package-catalog-schema = "elyra.pipeline.airflow.package_catalog_connector.airflow_package_schema_provider:AirflowPackageSchemasProvider"
metadata-tests = "elyra.tests.metadata.test_utils:MetadataTestSchemasProvider"
[project.entry-points."elyra.pipeline.processors"]
local = "elyra.pipeline.local.processor_local:LocalPipelineProcessor"
airflow = "elyra.pipeline.airflow.processor_airflow:AirflowPipelineProcessor"
kfp = "elyra.pipeline.kfp.processor_kfp:KfpPipelineProcessor"
[project.entry-points."elyra.component.catalog_types"]
url-catalog = "elyra.pipeline.catalog_connector:UrlComponentCatalogConnector"
local-file-catalog = "elyra.pipeline.catalog_connector:FilesystemComponentCatalogConnector"
local-directory-catalog = "elyra.pipeline.catalog_connector:DirectoryComponentCatalogConnector"
airflow-provider-package-catalog = "elyra.pipeline.airflow.provider_package_catalog_connector.airflow_provider_package_catalog_connector:AirflowProviderPackageCatalogConnector"
airflow-package-catalog = "elyra.pipeline.airflow.package_catalog_connector.airflow_package_catalog_connector:AirflowPackageCatalogConnector"
[project.entry-points."papermill.engine"]
ElyraEngine = "elyra.pipeline.elyra_engine:ElyraEngine"
# Include license file in base/root of repository
[license]
file = "LICENSE"
[tool.distutils.bdist_wheel]
universal = true
[tool.hatch.version]
path = "elyra/_version.py"
[tool.hatch.build]
include = [
"elyra/*",
]
ignore-vcs = true
# Include data files with dist
[tool.hatch.build.targets.wheel.shared-data]
"build/labextensions" = "share/jupyter/labextensions"
"etc/config/jupyter_notebook_config.d" = "etc/jupyter/jupyter_notebook_config.d"
"etc/config/jupyter_server_config.d" = "etc/jupyter/jupyter_server_config.d"
"etc/config/settings" = "etc/jupyter/labconfig"
"etc/config/metadata/runtime-images" = "share/jupyter/metadata/runtime-images"
"etc/config/metadata/component-catalogs" = "share/jupyter/metadata/component-catalogs"
"etc/config/components" = "share/jupyter/components"
"etc/config/components/kfp" = "share/jupyter/components/kfp/"
"etc/config/components/airflow" = "share/jupyter/components/airflow/"
# Specify which files to include and exclude in source distribution
[tool.hatch.build.targets.sdist]
include = [
"build/labextensions",
"elyra",
"etc/config/components/*.json",
"etc/config/components/kfp*/.yaml",
"etc/config/jupyter_notebook_config.d/*.json",
"etc/config/jupyter_server_config.d/*.json",
"etc/config/metadata/runtime-images/*.json",
"etc/config/metadata/component-registries/*.json",
"etc/config/settings/*.json",
]
exclude = [
"*.ipynb",
"*.py[cod]",
"__pycache__",
".git",
".gitignore",
".ipynb_checkpoints",
".DS_Store",
"*.sh",
"docs",
"build/release",
]
# Move flake8 configuration from setup.cfg. Use pflake8 instead of flake8.
# pflake8 is a flake8 wrapper compatible with pyproject.toml
[tool.flake8]
application-import-names = ["elyra", "test"]
application-package-names = ["elyra", "test"]
enable-extensions = "G"
max-line-length = 120
# References:
# https://flake8.readthedocs.io/en/latest/user/configuration.html
# https://flake8.readthedocs.io/en/latest/user/error-codes.html
ignore = [
# Import formatting
"E4",
# Comparing types instead of isinstance
"E721",
# Assigning lambda expression
"E731",
# Ambiguous variable names
"E741",
# File contains nothing but comments
"H104",
# Include name with TODOs as in # TODO(yourname)
"H101",
# Enable mocking
"H216",
# Multi line docstrings should start without a leading new line
"H404",
# Multi line docstrings should start with a one line summary followed by an empty line
"H405",
# Line break before binary operator
"W503",
# Allow breaks after binary operators
"W504"
]
import-order-style = "google"
# Configuration parameters for the black code formatting tool
[tool.black]
# max line length; same as 'max-line-length' in setup.cfg
line-length = 120
# Python versions that should be supported by the produced output
target-version = ['py38', 'py39', 'py310', 'py311']
# Migrate configurations from pytest.ini
[tool.pytest.ini_options]
markers = [
"script_launch_mode"
]
script_launch_mode = "subprocess"
filterwarnings = [
# We should get to a place where 'error' is NOT commented out. This will allow us to
# catch warnings when they occur and take action, either by adjusting the code or ignoring
# the warning.
# error
# These are produced by upstream (server and tornado) dependencies
"ignore:make_current is deprecated:DeprecationWarning",
"ignore:clear_current is deprecated:DeprecationWarning",
"ignore:There is no current event loop:DeprecationWarning",
# Papermill has included a parameter into a configurable's init and traitlets detects when
# no attributes match the argument (note single-quote required for raw-string interpretation)
'ignore:Passing unrecognized arguments to super\(PapermillNotebookClient\):DeprecationWarning',
# jupyter_core 5.x changes how it locates platform dirs and produces this warning
"ignore:Jupyter is migrating its paths to use standard platformdirs:DeprecationWarning",
# These are probably deprecated in the next KFP release
"ignore:`dsl.ContainerOp.image` will be removed in future releases:PendingDeprecationWarning",
"ignore:`dsl.ContainerOp.add_env_variable` will be removed in future releases:PendingDeprecationWarning",
# The bootstrapper currently looks for version instances of `LegacyVersion`
"ignore:Creating a LegacyVersion has been deprecated:DeprecationWarning",
# networkx will use pandas and numpy if available, otherwise, it produces these ImportWarning
"ignore:pandas not found, skipping conversion test:ImportWarning",
"ignore:numpy not found, skipping conversion test:ImportWarning",
# minio/api.py produces these warnings - tests show urllib3==1.26.x in use
# test_main_method_with_wildcard_outputs
'ignore:HTTPResponse.getheader\(\) is deprecated and will be removed in urllib3 v2.1.0.:DeprecationWarning',
'ignore:HTTPResponse.getheaders\(\) is deprecated and will be removed in urllib3 v2.1.0.:DeprecationWarning',
]