Yegor Andreenko created AIRFLOW-5466: ----------------------------------------
Summary: Custom library setup.py fails airflow Key: AIRFLOW-5466 URL: https://issues.apache.org/jira/browse/AIRFLOW-5466 Project: Apache Airflow Issue Type: Bug Components: cli Affects Versions: 1.10.5, 1.10.4, 1.10.3 Reporter: Yegor Andreenko I have created custom library to manage dags description. It's common used functions like get configuration, slack_hook definition, etc. For that library I created `setup.py` file inside my project(seems legit). This project is supposed to be used like ``` <project>/ dags/ setup.py dags_1.py dags_N.py config/..... __init__.py test/ ``` And we usually deploy dags folder to airflow. Airflow will crash `initdb`, `scheduler`, `webserver` commands if it encounters `setup.py` file in `dags` folder with an error message: ``` usage: airflow [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: airflow --help [cmd1 cmd2 ...] or: airflow --help-commands or: airflow cmd --help error: invalid command 'webserver' ``` Expected behaviour: - airflow shouldn't fail on `setup.py` file - or have a more clear message what went wrong -- This message was sent by Atlassian Jira (v8.3.2#803003)