Skip to content

Commit

Permalink
Fixed the integration with 'Read the Docs' and added some useful prin…
Browse files Browse the repository at this point in the history
…t statements.
  • Loading branch information
FelixKJose authored and Felix Jose committed Aug 21, 2020
1 parent e9c9b80 commit 9e01aa2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion airflowdaggenerator/airflowdaggenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,14 @@ def main():
:raises ValueError: when the user provided input is invalid. For example, if the output dag file name provided is not a .py file or the input YAML config file doesn't contain any parameters or is invalid
:raises AssertionError: when there is validation error on the generated DAG files
"""
print(sys.argv)
runtime_args = __get_args__(sys.argv[1:])
print("Starting the Airflow DAG file Generation")
generate_dag(runtime_args.input_config_yaml_path,
runtime_args.input_config_yaml_file_name,
runtime_args.input_template_path,
runtime_args.input_template_file_name,
runtime_args.output_dag_path,
runtime_args.output_dag_file_name)
print("Successfully Generated the Airflow DAG Python file under '{0}'".format(runtime_args.output_dag_path))
validate_dag(runtime_args.output_dag_path)
print("Successfully Validated the generated Airflow DAG Python file")
4 changes: 4 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,7 @@
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
# html_static_path = ['_static']

# The document name of the “master” document, that is, the document that contains the root toctree directive to get it
# working with Read the Docs
master_doc = 'index'
1 change: 1 addition & 0 deletions tests/data/output/output.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Output from the tests will be saved to this folder!!!

0 comments on commit 9e01aa2

Please sign in to comment.