-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(sdk): make kfp v2 hermetic #7428
chore(sdk): make kfp v2 hermetic #7428
Conversation
Skipping CI for Draft Pull Request. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
Thanks!
generic_type = typ.__origin__ or getattr( | ||
typ, '__extra__', None | ||
) #In python <3.7 typing.List.__origin__ == None; Python 3.7 has working __origin__, but no __extra__ TODO: Remove the __extra__ once we move to Python 3.7 | ||
if generic_type in [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: We have dropped Python 3.6 support. So we should be able to clean this up.
Feel free to do it here or in a follow-up PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree.
I will do this in a second PR because of the complexity of the code here, that way if any bugs are introduced they belong to a different commit.
|
||
def load_yaml(stream): | ||
#!!! Yaml should only be loaded using this function. Otherwise the dict ordering may be broken in Python versions prior to 3.6 | ||
#See https://stackoverflow.com/questions/5121931/in-python-how-can-you-load-yaml-mappings-as-ordereddicts/21912744#21912744 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Should we also drop this if it's no longer applicable for Python 3.7?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, great catch. We can drop this whole file, actually.
Done.
4b993df
to
57728b8
Compare
/lgtm Thanks! |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: chensun The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest |
* move v1 files to v2 * format with yapf * remove unused imports * clean up * update copyright * move imports to module top level * apply some pylint changes * loosen pylintrc * remove v2_yaml_utils.py
Description of your changes:
The primary work completed by this PR is:
Other changes include:
Reviewer notes:
I recommend stepping through changes commit-by-commit for readability.
Checklist: