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..3e06647293 100644 --- a/sdk/python/setup.py +++ b/sdk/python/setup.py @@ -20,26 +20,24 @@ # # 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 # # ============================================================================= 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" @@ -58,15 +56,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 +180,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',