kaxil commented on issue #14955:
URL: https://github.com/apache/airflow/issues/14955#issuecomment-806673423


   > For reasons I'm unfamiliar with, it looks like the ability to import via 
`from airflow.macros import x` was removed a few months ago (as per 
[5e8b537](https://github.com/apache/airflow/commit/5e8b537b85ce6aa355966df08df5c1846adb4cd6)).
 The documentation for anyone interested can be found here: 
https://github.com/apache/airflow/blob/2d1365444c206cbd6917a5b007222c16a05e9882/UPDATING.md#adding-operators-and-sensors-via-plugins-is-no-longer-supported
   
   I will take a look at it but we haven't removed ability to import macros -- 
it was ability to import operators and sensors. Those can be normal python 
modules. Plugin mechanism is not needed for it, hence it was removed. We want 
to keep plugin mechanism to add only UI related elements in future. So if you 
your python package or python module on syspath, you can import it directly via 
`from my_custom_module import my_class` instead of importing from plugin.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to