[
https://issues.apache.org/jira/browse/AIRFLOW-520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16660330#comment-16660330
]
ASF GitHub Bot commented on AIRFLOW-520:
----------------------------------------
kaxil closed pull request #4072: [AIRFLOW-520] Fix Version Info in Flask UI
URL: https://github.com/apache/incubator-airflow/pull/4072
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/airflow/www/views.py b/airflow/www/views.py
index f786baa0fe..e3a66a3840 100644
--- a/airflow/www/views.py
+++ b/airflow/www/views.py
@@ -37,7 +37,6 @@
import markdown
import nvd3
import pendulum
-import pkg_resources
import sqlalchemy as sqla
from flask import (
abort, jsonify, redirect, url_for, request, Markup, Response,
@@ -3052,7 +3051,7 @@ class VersionView(wwwutils.SuperUserMixin, BaseView):
def version(self):
# Look at the version from setup.py
try:
- airflow_version =
pkg_resources.require("apache-airflow")[0].version
+ airflow_version = airflow.__version__
except Exception as e:
airflow_version = None
logging.error(e)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> Show Airflow version on web page
> --------------------------------
>
> Key: AIRFLOW-520
> URL: https://issues.apache.org/jira/browse/AIRFLOW-520
> Project: Apache Airflow
> Issue Type: Improvement
> Reporter: Jakob Homan
> Assignee: Kaxil Naik
> Priority: Major
> Fix For: 1.10.1
>
>
> It would be nice if the currently running version were included somewhere on
> the web page.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)