From c32d1b3082267d9d34ea127fd635cd34a3de879d Mon Sep 17 00:00:00 2001 From: Alexey Volkov Date: Tue, 27 Aug 2019 19:59:10 -0700 Subject: [PATCH] SDK - Compiler - Deprecated dsl-compile --package (#1941) * SDK - Compiler - Deprecated dsl-compile --package * Switched to the Deprecated library --- sdk/python/kfp/compiler/main.py | 6 ++++++ sdk/python/requirements.txt | 1 + sdk/python/setup.py | 3 ++- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/sdk/python/kfp/compiler/main.py b/sdk/python/kfp/compiler/main.py index 47f48362ec6..db20502ecf4 100644 --- a/sdk/python/kfp/compiler/main.py +++ b/sdk/python/kfp/compiler/main.py @@ -21,6 +21,7 @@ import subprocess import sys import tempfile +from deprecated.sphinx import deprecated def parse_arguments(): @@ -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) diff --git a/sdk/python/requirements.txt b/sdk/python/requirements.txt index dee38d3cae9..e1b7aee8659 100644 --- a/sdk/python/requirements.txt +++ b/sdk/python/requirements.txt @@ -14,3 +14,4 @@ argo-models == 2.2.1a jsonschema >= 3.0.1 tabulate == 0.8.3 click == 7.0 +Deprecated diff --git a/sdk/python/setup.py b/sdk/python/setup.py index f2cc3f65f95..f30003b68d3 100644 --- a/sdk/python/setup.py +++ b/sdk/python/setup.py @@ -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(