-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Move task_sdk to a standalone task-sdk distribution #47451
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
Conversation
|
This is still not fully complete - some tests are failing but it proposes how we can move |
providers/openlineage/tests/unit/openlineage/extractors/test_manager.py
Outdated
Show resolved
Hide resolved
3f94c4c to
05ff95e
Compare
|
Looks good, green and straightforward :) |
ashb
left a comment
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
4bd9c6e to
131a167
Compare
|
I moved the make_client stuff to |
This is the next stage of refactoring of airflow packages, after moving providers to standalone dstribution and separating devel-common as a common distribution. The `task_sdk` has been renamed to `task-sdk` - this way we will never import anything in task_sdk accidentally starting from content root. Some changes have been needed to make it works: * autouse fixture was added to pytest plugin to add `task-sdk/tests` to PYTHONPATH to make it root import * all tests were moved to `task_sdk` package inside the tests folder * all imports for tests are now `from task_sdk` * common tools for task_sdk has been moved to `devel-common/src/test_utils/task_sdk.py` in order to allow importing them before `task-sdk/tests` is added to pythonpath
amoghrajesh
left a comment
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.
Late here, but good work!
This is the next stage of refactoring of airflow packages, after moving providers to standalone dstribution and separating devel-common as a common distribution. The `task_sdk` has been renamed to `task-sdk` - this way we will never import anything in task_sdk accidentally starting from content root. Some changes have been needed to make it works: * autouse fixture was added to pytest plugin to add `task-sdk/tests` to PYTHONPATH to make it root import * all tests were moved to `task_sdk` package inside the tests folder * all imports for tests are now `from task_sdk` * common tools for task_sdk has been moved to `devel-common/src/test_utils/task_sdk.py` in order to allow importing them before `task-sdk/tests` is added to pythonpath
This is the next stage of refactoring of airflow packages, after moving providers to standalone dstribution and separating devel-common as a common distribution.
The
task_sdkhas been renamed totask-sdk- this way we will never import anything in task_sdk accidentally starting from content root. Some changes have been needed to make it works:task-sdk/teststo PYTHONPATH to make it root importtask_sdkpackage inside the tests folderfrom task_sdkdevel-common/src/test_utils/task_sdk.pyin order to allow importing them beforetask-sdk/testsis added to pythonpath^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named
{pr_number}.significant.rstor{issue_number}.significant.rst, in newsfragments.