Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(sdk): update package dependency source #1166

Merged
merged 2 commits into from
Feb 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sdk/python/kfp_tekton/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
27 changes: 13 additions & 14 deletions sdk/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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):
Expand Down Expand Up @@ -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',
Expand Down