potiuk commented on PR #31379:
URL: https://github.com/apache/airflow/pull/31379#issuecomment-1552918229
Almost but not quite:
```
airflow_version = version("airflow")
```
Also we still need to support Python 3.7 (till the end of July) so we need
to do it even more complicated:
```
try:
from importlib.metadata import version
except ImportError:
from importlib_metadata import version
```
In Python 3.7 importlib.metadata does not have version - it only comes with
the `importlib_metadata` compatiblity package.
Am I right (@uranusjr @ashb ?)
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]