Commit Graph

14 Commits

Author SHA1 Message Date
Connor McCarthy cf0e0cf87c
feat(sdk): enable dependency-free runtime install of kfp (#9886)
* handle problematic imports

* separate runtime and compile-time symbols

* wrap kfp/__init__.py imports unavailable at runtime

* update component factory + tests

* add runtime tests

* add --no-deps flag to component factory

* update release notes

* clean up

* handle containerized python components

* update golden snapshots

* update component_factory unit tests

* respond to review feedback

* fix runtime test and compilation logic

* update tests
2023-08-24 18:31:16 +00:00
Connor McCarthy c8204d0285
chore(sdk): partition KFP SDK source code into runtime and non-runtime code (#9710) 2023-07-07 23:18:52 +00:00
hsteude a9ac0b95bc
fix(sdk): print docker error messages (#9595)
Without this commit, `kfp component build` doesn't print any error
messages that docker emits, e.g. if docker push fails.

Co-authored-by: Christian Geier <geier@lostpackets.de>
2023-06-13 00:47:02 +00:00
Jonny Browning b59b70875e
fix(sdk): allow user to choose platform for component container build. Fixes #8883 (#9212)
Co-authored-by: Jonny Browning <jonathan.browning@datatonic.com>
2023-04-25 19:41:45 +00:00
b4sus ed66ba327f
feat(sdk): using component's pip_index_urls for Dockerfile generation. Fixes #8816 (#8871)
* feat(sdk): using component's pip_index_urls for Dockerfile generation

* Update sdk/python/kfp/cli/component.py

Co-authored-by: Connor McCarthy <mccarthy.connor.james@gmail.com>

* feat(sdk): PR changes: removed additional space from index url options string; duplicate removal not necessary

* feat(sdk): feature mentioned in RELEASE.md

* deduplication back - more components in a file can specify same pypi url - we need it only once for docker image

* feature note moved to current development section

---------

Co-authored-by: Connor McCarthy <mccarthy.connor.james@gmail.com>
2023-03-01 09:32:56 -08:00
Jonny Browning (Datatonic) 5b75d75ad7
feat(sdk): add --build-image option to 'kfp components build' to allow users to skip docker build. Fixes #8382 for 2.0 (#8387)
* feat: added --build-image/--no-build-image flags to skip docker build

* fix: logic error for warnings/errors
2022-10-26 15:58:31 +00:00
Chen Sun 54922b32c6
fix(sdk): fix `kfp component build` only produces empty requirements.txt (#8372)
* fix CUJ2 always writes empty requirements.txt

* sort dependencies
2022-10-17 19:22:53 +00:00
Chen Sun 83e0f16af1
fix(sdk): Fix "No KFP components found in file" error. Fixes #8353 (#8359)
* Update component.py

* Update component.py

* Update component.py
2022-10-13 21:04:03 +00:00
JOCSTAA 764140153f
fix(sdk): Fix PyPi typo in cli/component docstring (#8361) 2022-10-13 20:28:03 +00:00
Connor McCarthy e47a784035
docs(sdk): clean up kfp v2 cli reference docs (#8115)
* use expanded "Command Line Interface" for title

* remove alpha feature stage in help text

* hide deprecated argument

* use compile as command name
2022-08-09 18:40:39 +00:00
Connor McCarthy 13736b85b6
chore(sdk): clean up kfp code style (#8027)
* remove unused imports

* use google as isort profile

* sort imports

* format with yapf

* clean end of file new line, trailing whitespace, double quoted strings
2022-07-15 00:06:34 +00:00
Connor McCarthy 18f0842ee0
fix(sdk): some cli fixes (#7668)
* use correct type when option is path

* fix options on create recurring-run

* make output logging more consistent

* show deprecation warning for dsl-compile on invocation

* fix unarchive experiment

* fix broken f-string

* convert camelcase methods to snake case
2022-05-05 12:47:18 -06:00
Connor McCarthy ec0081372a
feat(sdk): improve cli help text (#7618)
* add docstring parsing utils

* implement docstring parsing for help text

* implement smoke test of all cli commands

* clean up use of optional in docstring

* make command descriptions more consistent

* fix disable_type_check

* update release notes
2022-04-29 17:20:57 +00:00
Connor McCarthy e077d01cf9
feat(sdk): add noun aliasing to cli (#7569)
* allow both singular and plural versions of nouns

* use command table for client creation

* cleanup

* simplify docker mock

* add docker to test requirements; clean up existing requirements
2022-04-25 12:24:57 -06:00