You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/10/07 03:34:19 UTC
[GitHub] [airflow] uranusjr commented on issue #12851: Find a way to inform our users about deprecated extras
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-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org