From a1d255c4279cec5943868f0d5cb0a6c1e7c2f4b6 Mon Sep 17 00:00:00 2001 From: Tommy Li Date: Tue, 21 Feb 2023 09:06:32 -0800 Subject: [PATCH 1/2] update package dependencies --- sdk/python/kfp_tekton/__init__.py | 2 +- sdk/python/setup.py | 25 +++++++++++++------------ 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/sdk/python/kfp_tekton/__init__.py b/sdk/python/kfp_tekton/__init__.py index 00de8e733e..6f8d3d67da 100644 --- a/sdk/python/kfp_tekton/__init__.py +++ b/sdk/python/kfp_tekton/__init__.py @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -__version__ = '1.6.1' +__version__ = '1.6.2' from ._client import TektonClient # noqa F401 from .k8s_client_helper import env_from_secret # noqa F401 diff --git a/sdk/python/setup.py b/sdk/python/setup.py index 2e889aae7b..5f90284d6c 100644 --- a/sdk/python/setup.py +++ b/sdk/python/setup.py @@ -20,14 +20,14 @@ # # To create a distribution for PyPi run: # -# $ export KFP_TEKTON_VERSION=1.6.1-rc1 +# $ export KFP_TEKTON_VERSION=1.6.2-rc1 # $ python3 setup.py sdist # $ twine check dist/kfp-tekton-${KFP_TEKTON_VERSION/-rc/rc}.tar.gz # $ twine upload --repository pypi dist/kfp-tekton-${KFP_TEKTON_VERSION/-rc/rc}.tar.gz # # ... or: # -# $ make distribution KFP_TEKTON_VERSION=1.6.1-rc1 +# $ make distribution KFP_TEKTON_VERSION=1.6.2-rc1 # # ============================================================================= @@ -58,15 +58,16 @@ logger.setLevel(logging.INFO) -def get_requirements(requirements_file: str) -> List[str]: - """Read requirements from requirements.in.""" +# NOTICE, after any updates to the following, ./requirements.in should be updated +# accordingly. +REQUIRES = [ + "kfp>=1.8.10,<1.8.20", + "kfp-tekton-server-api>=1.5.0" +] - file_path = os.path.join(os.path.dirname(__file__), requirements_file) - with open(file_path, 'r') as f: - lines = f.readlines() - lines = [line.strip() for line in lines] - lines = [line for line in lines if not (line.startswith('#') or line.startswith('-')) and line] - return lines +TESTS_REQUIRE = [ + 'pytest', +] def find_version(*file_path_parts): @@ -181,8 +182,8 @@ def get_long_description() -> str: author="kubeflow.org", license=LICENSE, url=HOMEPAGE, - install_requires=get_requirements('requirements.in'), - tests_require=get_requirements('requirements-test.txt'), + install_requires=REQUIRES, + tests_require=TESTS_REQUIRE, packages=[ 'kfp_tekton', 'kfp_tekton.compiler', From 3248b3f6fabd13e34521ee6bf685792e50bf0c08 Mon Sep 17 00:00:00 2001 From: Tommy Li Date: Tue, 21 Feb 2023 09:25:17 -0800 Subject: [PATCH 2/2] fix lint --- sdk/python/setup.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/sdk/python/setup.py b/sdk/python/setup.py index 5f90284d6c..3e06647293 100644 --- a/sdk/python/setup.py +++ b/sdk/python/setup.py @@ -34,12 +34,10 @@ import logging import re import sys -import os from os import environ as env from os.path import abspath, dirname, join from setuptools import setup -from typing import List NAME = "kfp-tekton"