-
Notifications
You must be signed in to change notification settings - Fork 16.3k
Add legacy namespace packages to airflow.providers #47064
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
Add legacy namespace packages to airflow.providers #47064
Conversation
|
Generated contents of the .whl distributions: Both |
723fb82 to
bdcae41
Compare
b901d04 to
cf1beb4
Compare
jscheffl
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.
Aaaah, cool. Finally after re-structuring the syntax highlighting in VSCode works again!
Indeed looks like :) |
It seem that vscode cannot recognise cross-provider imports when providers have implicit namespaces for "airflow.providers" and "airflow.providers.nnnn" (for "common" etc.). And what seem to halp is to add legacy namespace `__init__.py` files for those packages. This has no impact on generated packages - because generated packages have "tool.flit.module" set to the right sub-package and flit will not use the __init__.py files when packages are generated.
cf1beb4 to
a847bc5
Compare
|
Random failure. Merging :) |
It seem that vscode cannot recognise cross-provider imports when providers have implicit namespaces for "airflow.providers" and "airflow.providers.nnnn" (for "common" etc.). And what seem to halp is to add legacy namespace `__init__.py` files for those packages. This has no impact on generated packages - because generated packages have "tool.flit.module" set to the right sub-package and flit will not use the __init__.py files when packages are generated.
It seem that vscode cannot recognise cross-provider imports when providers have implicit namespaces for "airflow.providers" and "airflow.providers.nnnn" (for "common" etc.). And what seem to halp is to add legacy namespace `__init__.py` files for those packages. This has no impact on generated packages - because generated packages have "tool.flit.module" set to the right sub-package and flit will not use the __init__.py files when packages are generated.
It seem that vscode cannot recognise cross-provider imports when providers have implicit namespaces for "airflow.providers" and "airflow.providers.nnnn" (for "common" etc.). And what seem to halp is to add legacy namespace
__init__.pyfiles for those packages.This has no impact on generated packages - because generated packages have "tool.flit.module" set to the right sub-package and flit will not use the init.py files when packages are generated.
^ 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.