Commit Graph

8 Commits

Author SHA1 Message Date
Chen Sun 61f9c2c328
chore(sdk): allow serializing pipeline params with `typing` type hints (#5153)
* support serializing pipeline params with `typing` type hints

* back to relative import

* address different behaviors in py3.6 vs py3.7+
2021-02-19 14:56:45 -08:00
Alexey Volkov 691eefc599
fix(sdk): Components - Fixed python components that use \n. Fixes #4939 (#4993)
* SDK - Components - Fixed python components that use \n

The escape sequence was being replaced by the `echo` command.

Apparently, unlike in the `bash` shell, the `echo` command of the `sh` shell expands the escape sequences by default and does not support an option to turn it off. (For some reason the -n option works properly even though it should not).

Fixes https://github.com/kubeflow/pipelines/issues/4939

* Fixed the test data

* Fixed the deprecated container component builder

* Fixed the new compiler test case

* Added test
2021-01-14 18:21:51 -08:00
Alexey Volkov d629397654
feat(sdk): Components - Support annotations when creating components from python (#4996)
The component specification has always supported component annotations, but there was no way to specify them for the components generated from python. This PR fixes that.
2021-01-14 13:59:31 -08:00
Alexey Volkov 0c12397171
test(sdk): Components - Tests - Made python component tests use the same python executable to run the components (#4615) 2020-10-12 04:12:55 -07:00
Abhishek Vilas Munagekar 5613db02bc
feat(sdk): Python components - Parse component input/output descriptions from the function docstring (#4512)
* cleanup imports

* add description to inputs and outputs

* update requirements

* add test

* improve component description

* update tests

* review changes: fix lint and requirements

* upgrade docstring-parser
2020-09-19 23:22:29 -07:00
Alexey Volkov 3010e85bbe
SDK - Tests - Fixed the test_func_to_container_op_with_imported_func2 test case (#3837) 2020-05-29 12:05:34 -07:00
Alexey Volkov 92394f6542
SDK - Tests - Use relative imports (#3784)
This makes testing easier to run in local dev scenarios.
2020-05-19 00:09:36 -07:00
Alexey Volkov 1dcea49472
SDK - Moved the tests closer to the code (#3774)
This makes switching from code to tests easier
2020-05-18 01:37:35 -07:00