uranusjr commented on issue #12851:
URL: https://github.com/apache/airflow/issues/12851#issuecomment-937415897


   If the deprecated extras are merged into the main dependency list, they can 
simply be removed since unrecognised extras are automatically ignored (with a 
warning). But there's not a good way to express that deprecation if the extra 
is renamed.
   
   One hack to this would be to introduce various empty 
`apache-airflow-deprecated-extra-foo` packages, and organise dependencies like 
this:
   
   ```python
   foo = ["dependency"]
   
   deprecated_foo = ["dependency", "apache-airflow-deprecated-extra-foo"]
   ```
   
   And detect the presence of `apache-airflow-deprecated-extra-foo` at runtime 
(with `importlib.metadata`) to show the deprecation.


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to