Skip to content

Commit

Permalink
Remove Python 3.5 support (2) (kubeflow#465)
Browse files Browse the repository at this point in the history
Updating a few SDK files remaining after kubeflow#463

Related kubeflow#463
  • Loading branch information
ckadner authored Feb 10, 2021
1 parent 624a1f8 commit 8170d59
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion api/v2alpha1/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def GenerateProto(source):
author_email="kubeflow-pipelines@google.com",
url="https://github.com/kubeflow/pipelines",
packages=setuptools.find_namespace_packages(include=['kfp.*']),
python_requires=">=3.5.3",
python_requires=">=3.6.1",
include_package_data=True,
license="Apache 2.0",
)
4 changes: 2 additions & 2 deletions sdk/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,16 +183,16 @@ def get_long_description() -> str:
'Intended Audience :: Science/Research',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
'Topic :: Software Development',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules',
],
python_requires='>=3.5.3',
python_requires='>=3.6.1',
include_package_data=True,
entry_points={
'console_scripts': [
Expand Down
4 changes: 2 additions & 2 deletions sdk/python/tests/compiler/testdata/basic_no_decorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def __init__(self, name, message="When flies fly behind flies,"
"""
super(GetFrequentWordOp, self).__init__(
name=name,
image='python:3.5-jessie',
image='python:3.6-jessie',
command=['sh', '-c'],
arguments=['python -c "from collections import Counter; '
'words = Counter(\'%s\'.split()); print(max(words, key=words.get))" '
Expand Down Expand Up @@ -65,7 +65,7 @@ class ExitHandlerOp(dsl.ContainerOp):
def __init__(self, name):
super(ExitHandlerOp, self).__init__(
name=name,
image='python:3.5-jessie',
image='python:3.6-jessie',
command=['sh', '-c'],
arguments=['echo exit!'])

Expand Down
4 changes: 2 additions & 2 deletions sdk/python/tests/compiler/testdata/basic_no_decorator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ spec:
command:
- sh
- -c
image: python:3.5-jessie
image: python:3.6-jessie
name: main
timeout: 0s
params:
Expand All @@ -73,7 +73,7 @@ spec:
command:
- sh
- -c
image: python:3.5-jessie
image: python:3.6-jessie
name: main
resources:
requests:
Expand Down
2 changes: 1 addition & 1 deletion sdk/python/tests/compiler/testdata/compose.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def __init__(self, name, message):
"""
super(GetFrequentWordOp, self).__init__(
name=name,
image='python:3.5-jessie',
image='python:3.6-jessie',
command=['sh', '-c'],
arguments=['python -c "import sys; from collections import Counter; '
'input_text = sys.argv[1]; '
Expand Down
2 changes: 1 addition & 1 deletion sdk/python/tests/compiler/testdata/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ spec:
command:
- sh
- -c
image: python:3.5-jessie
image: python:3.6-jessie
name: main
timeout: 0s
- name: save
Expand Down
2 changes: 1 addition & 1 deletion sdk/python/tests/compiler/testdata/imagepullsecrets.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def __init__(self, name, message):
"""
super(GetFrequentWordOp, self).__init__(
name=name,
image='python:3.5-jessie',
image='python:3.6-jessie',
command=['sh', '-c'],
arguments=['python -c "from collections import Counter; '
'text = \'%s\'; '
Expand Down
2 changes: 1 addition & 1 deletion sdk/python/tests/compiler/testdata/imagepullsecrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ spec:
command:
- sh
- -c
image: python:3.5-jessie
image: python:3.6-jessie
name: main
timeout: 0s
podTemplate:
Expand Down

0 comments on commit 8170d59

Please sign in to comment.