-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Update dev instructions to use breeze command directly with short package ids to build docs #35080
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contribution Guide (https://github.com/apache/airflow/blob/main/CONTRIBUTING.rst)
|
| try: | ||
| subprocess.run([".breeze", "build-docs", "--clean-build"] + provider_filters, check=True) | ||
| except subprocess.CalledProcessError as e: | ||
| raise Exception(f"Failed to build provider docs with .breeze: {e}") | ||
|
|
||
| os.chdir(os.environ["AIRFLOW_SITE_DIRECTORY"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of using subprocess, can we call the functions that the breeze build-docs calls?
potiuk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually.. This might be a bit sad news for you @anudeep-pv but we do not need this script any more. And rather than converting it to python we should change the instructions to use breeze build-docs amazon apache.beam google .... - after I completed it in #35068
The only reason we had this script in the first place was that we already had list of providers during the release step in the form of amazon apache.beam google and we wanted to conver it to --package-filter apache-airlfow-providers-amazon --package-filter-providers-apache-beam --package-filter apache-airflow-providers-google
The #35068 and earlier steps made it possible to use the short form of provider ids directly so this script can be simply removed and breeze build-docs command can be used directly.
Thanks for the detailed comment. I've updated PR by removing the script and changing the command in dev documentation. |
|
Awesome work, congrats on your first merged pull request! You are invited to check our Issue Tracker for additional contributions. |
|
Thanks @anudeep-pv! Congrats on your first commit! |
Update dev instructions to use breeze command directly with short package ids to build docs
^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named
{pr_number}.significant.rstor{issue_number}.significant.rst, in newsfragments.