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 2020/07/09 15:55:51 UTC

[GitHub] [airflow] turbaszek commented on a change in pull request #9739: Tests are working for newly added backport providers

turbaszek commented on a change in pull request #9739:
URL: https://github.com/apache/airflow/pull/9739#discussion_r452322012



##########
File path: backport_packages/setup_backport_packages.py
##########
@@ -35,9 +36,20 @@
 
 from setuptools import Command, find_packages, setup as setuptools_setup
 
-from backport_packages.import_all_provider_classes import import_all_provider_classes
-from setup import PROVIDERS_REQUIREMENTS
-from tests.deprecated_classes import HOOKS, OPERATORS, SECRETS, SENSORS, TRANSFERS
+MY_DIR_PATH = os.path.dirname(__file__)
+SOURCE_DIR_PATH = os.path.abspath(os.path.join(MY_DIR_PATH, os.pardir))
+AIRFLOW_PATH = os.path.join(SOURCE_DIR_PATH, "airflow")
+PROVIDERS_PATH = os.path.join(AIRFLOW_PATH, "providers")
+
+sys.path.insert(0, SOURCE_DIR_PATH)
+
+# isort:skip
+from setup import PROVIDERS_REQUIREMENTS  # noqa
+
+# isort:skip
+import tests.deprecated_classes  # noqa
+# isort:skip
+from backport_packages.import_all_provider_classes import import_all_provider_classes  # noqa

Review comment:
       Would you mind adding a comment why such order? One day someone may wonder about that 




----------------------------------------------------------------
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:
users@infra.apache.org