Skip to content

Commit 50aba60

Browse files
committed
feat(pyproject): adding pyproject.toml to kfp-pipeline-spec, and updating some previous pyproject.tomls
1 parent 17bd076 commit 50aba60

File tree

6 files changed

+55
-67
lines changed

6 files changed

+55
-67
lines changed

api/v2alpha1/python/pyproject.toml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Copyright 2022 The Kubeflow Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
[build-system]
16+
requires = ["setuptools>=61.0", "wheel"]
17+
build-backend = "setuptools.build_meta"
18+
19+
[project]
20+
name = "kfp-pipeline-spec"
21+
version = "2.14.0"
22+
description = "Kubeflow Pipelines pipeline spec"
23+
authors = [
24+
{name = "google", email = "[email protected]"},
25+
]
26+
readme = "../../README.md"
27+
requires-python = ">=3.9.0"
28+
license = "Apache 2.0"
29+
dependencies = [
30+
# Typically we can't support multiple major versions of protobuf
31+
# The runtime protobuf package MUST be aligned with the protobuf
32+
# libraries used to generate the code (protoc, protoc-gen-go, etc.)
33+
# For example protobuf 5.x aligns with protoc 26.x-29.x but
34+
# 6.x aligns with 30.x+.
35+
# See for support tiers:
36+
# https://protobuf.dev/support/version-support/#python
37+
"protobuf==6.31.1,<7.0",
38+
]
39+
40+
[dependency-groups]
41+
dev = []
42+
43+
[project.urls]
44+
Github = "https://github.com/kubeflow/pipelines"
45+
46+
47+
[tool.setuptools]
48+
include-package-data = true
49+
50+
51+
[tool.setuptools.packages.find]
52+
include = ["kfp.*"]

api/v2alpha1/python/requirements.txt

Lines changed: 0 additions & 8 deletions
This file was deleted.

api/v2alpha1/python/setup.py

Lines changed: 1 addition & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,3 @@
1-
# Copyright 2022 The Kubeflow Authors
2-
#
3-
# Licensed under the Apache License, Version 2.0 (the "License");
4-
# you may not use this file except in compliance with the License.
5-
# You may obtain a copy of the License at
6-
#
7-
# http://www.apache.org/licenses/LICENSE-2.0
8-
#
9-
# Unless required by applicable law or agreed to in writing, software
10-
# distributed under the License is distributed on an "AS IS" BASIS,
11-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
# See the License for the specific language governing permissions and
13-
# limitations under the License.
14-
151
import setuptools
16-
import os
17-
from typing import List
18-
19-
NAME = 'kfp-pipeline-spec'
20-
VERSION = '2.14.0'
21-
22-
def get_requirements(requirements_file: str) -> List[str]:
23-
"""Read requirements from requirements.in."""
24-
25-
file_path = os.path.join(os.path.dirname(__file__), requirements_file)
26-
with open(file_path, 'r') as f:
27-
lines = f.readlines()
28-
lines = [line.strip() for line in lines]
29-
lines = [line for line in lines if not line.startswith('#') and line]
30-
return lines
312

32-
setuptools.setup(
33-
name=NAME,
34-
version=VERSION,
35-
description='Kubeflow Pipelines pipeline spec',
36-
author='google',
37-
author_email='[email protected]',
38-
url='https://github.com/kubeflow/pipelines',
39-
packages=setuptools.find_namespace_packages(include=['kfp.*']),
40-
python_requires='>=3.9.0',
41-
install_requires=get_requirements('requirements.txt'),
42-
include_package_data=True,
43-
license='Apache 2.0',
44-
)
3+
setuptools.setup()

backend/api/v1beta1/python_http_client/pyproject.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@ dependencies = [
4444
"urllib3 >= 1.15.1",
4545
]
4646

47-
[project.optional-dependencies]
48-
kubernetes = ["kfp-kubernetes<2"]
49-
all = ["docker", "kfp-kubernetes<2"]
5047

5148
[dependency-groups]
5249
dev = [

sdk/python/pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ description = "Kubeflow Pipelines SDK"
2323
authors = [
2424
{name = "The Kubeflow Authors"}
2525
]
26+
readme = "README.md"
2627
requires-python = ">=3.9.0"
28+
license = "Apache 2.0"
2729
classifiers = [
2830
'Intended Audience :: Developers',
2931
'Intended Audience :: Education',

sdk/python/setup.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,3 @@
1-
# Copyright 2018-2022 The Kubeflow Authors
2-
#
3-
# Licensed under the Apache License, Version 2.0 (the "License");
4-
# you may not use this file except in compliance with the License.
5-
# You may obtain a copy of the License at
6-
#
7-
# http://www.apache.org/licenses/LICENSE-2.0
8-
#
9-
# Unless required by applicable law or agreed to in writing, software
10-
# distributed under the License is distributed on an "AS IS" BASIS,
11-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
# See the License for the specific language governing permissions and
13-
# limitations under the License.
14-
151
import setuptools
162

173
setuptools.setup()

0 commit comments

Comments
 (0)