Skip to content

Commit

Permalink
SDK - Compiler - Deprecated dsl-compile --package (kubeflow#1941)
Browse files Browse the repository at this point in the history
* SDK - Compiler - Deprecated dsl-compile --package

* Switched to the Deprecated library
  • Loading branch information
Ark-kun authored and ajchili committed Aug 28, 2019
1 parent 100e888 commit c32d1b3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions sdk/python/kfp/compiler/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import subprocess
import sys
import tempfile
from deprecated.sphinx import deprecated


def parse_arguments():
Expand Down Expand Up @@ -84,6 +85,11 @@ def __exit__(self, *args):
dsl._pipeline._pipeline_decorator_handler = self.old_handler


@deprecated(version='0.1.28', reason='''\
The ability to compile pipeline from a python package is deprecated and will be removed in next release.
Please switch to compiling pipeline files or functions.
If you use this feature please create an issue in https://github.com/kubeflow/pipelines/issues .'''
)
def compile_package(package_path, namespace, function_name, output_path, type_check):
tmpdir = tempfile.mkdtemp()
sys.path.insert(0, tmpdir)
Expand Down
1 change: 1 addition & 0 deletions sdk/python/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ argo-models == 2.2.1a
jsonschema >= 3.0.1
tabulate == 0.8.3
click == 7.0
Deprecated
3 changes: 2 additions & 1 deletion sdk/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
'argo-models == 2.2.1a', #2.2.1a is equivalent to argo 2.2.1
'jsonschema >= 3.0.1',
'tabulate == 0.8.3',
'click == 7.0'
'click == 7.0',
'Deprecated',
]

setup(
Expand Down

0 comments on commit c32d1b3

Please sign in to comment.