Skip to content

Commit d36a70d

Browse files
committed
feat(pyproject): adding pyporject.toml to kfp-server-api.
Signed-off-by: CollinHowland <[email protected]>
1 parent 78da7cc commit d36a70d

File tree

5 files changed

+70
-50
lines changed

5 files changed

+70
-50
lines changed
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
[build-system]
2+
requires = ["setuptools>=61.0", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "kfp-server-api"
7+
version = "2.14.6"
8+
description = "Kubeflow Pipelines API"
9+
authors = [
10+
{name = "google", email = "[email protected]"},
11+
]
12+
readme = "README.md"
13+
requires-python = ">=3.9.0"
14+
classifiers = [
15+
'Intended Audience :: Developers',
16+
'Intended Audience :: Education',
17+
'Intended Audience :: Science/Research',
18+
'License :: OSI Approved :: Apache Software License',
19+
'Programming Language :: Python :: 3',
20+
'Programming Language :: Python :: 3.9',
21+
'Programming Language :: Python :: 3.10',
22+
'Programming Language :: Python :: 3.11',
23+
'Programming Language :: Python :: 3.12',
24+
'Programming Language :: Python :: 3.13',
25+
'Topic :: Scientific/Engineering',
26+
'Topic :: Scientific/Engineering :: Artificial Intelligence',
27+
'Topic :: Software Development',
28+
'Topic :: Software Development :: Libraries',
29+
'Topic :: Software Development :: Libraries :: Python Modules',
30+
]
31+
license = "Apache 2.0"
32+
license-files = {globs = ["LICENSE"]}
33+
keywords = [
34+
"OpenAPI",
35+
"OpenAPI-Generator",
36+
"Kubeflow Pipelines API",
37+
]
38+
dependencies = [
39+
"certifi >= 14.05.14",
40+
"future; python_version<=2.7",
41+
"six >= 1.10",
42+
"python_dateutil >= 2.5.3",
43+
"setuptools >= 21.0.0",
44+
"urllib3 >= 1.15.1",
45+
]
46+
47+
[project.optional-dependencies]
48+
kubernetes = ["kfp-kubernetes<2"]
49+
all = ["docker", "kfp-kubernetes<2"]
50+
51+
[dependency-groups]
52+
dev = [
53+
"pytest~=4.6.7", # needed for python 2.7+3.4
54+
"pytest-cov>=2.8.1",
55+
"pytest-randomly==1.2.3", # needed for python 2.7+3.4
56+
]
57+
58+
[project.urls]
59+
Github = "https://github.com/kubeflow/pipelines"
60+
61+
62+
[tool.setuptools]
63+
include-package-data = true
64+
65+
[tool.setuptools.packages.find]
66+
exclude = ["*test*"]

backend/api/v1beta1/python_http_client/requirements.txt

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 2 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,4 @@
11
# coding: utf-8
2+
from setuptools import setup
23

3-
"""
4-
Kubeflow Pipelines API
5-
6-
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition.
7-
8-
9-
Generated by: https://openapi-generator.tech
10-
"""
11-
12-
13-
from setuptools import setup, find_packages # noqa: H301
14-
15-
NAME = "kfp-server-api"
16-
VERSION = "2.14.6"
17-
# To install the library, run the following
18-
#
19-
# python setup.py install
20-
#
21-
# prerequisite: setuptools
22-
# http://pypi.python.org/pypi/setuptools
23-
24-
REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"]
25-
26-
setup(
27-
name=NAME,
28-
version=VERSION,
29-
description="Kubeflow Pipelines API",
30-
author="google",
31-
author_email="[email protected]",
32-
url="https://github.com/kubeflow/pipelines",
33-
keywords=["OpenAPI", "OpenAPI-Generator", "Kubeflow Pipelines API"],
34-
install_requires=REQUIRES,
35-
packages=find_packages(exclude=["test", "tests"]),
36-
include_package_data=True,
37-
license="Apache 2.0",
38-
long_description="""\
39-
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501
40-
"""
41-
)
4+
setup()

backend/api/v1beta1/python_http_client/test-requirements.txt

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

backend/api/v1beta1/python_http_client/tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
envlist = py27, py3
33

44
[testenv]
5-
deps=-r{toxinidir}/requirements.txt
6-
-r{toxinidir}/test-requirements.txt
5+
deps=
6+
.[dev]
77

88
commands=
99
pytest --cov=kfp_server_api

0 commit comments

Comments
 (0)