-
Notifications
You must be signed in to change notification settings - Fork 16.3k
Resurrect python openapi client generator #19155
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
zhongjiajie
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.
Add somethink NIT here
|
The PR is likely ready to be merged. No tests are needed as no important environment files, nor python files were modified by it. However, committers might decide that full test matrix is needed and add the 'full tests needed' label. Then you should rebase it to the latest main or amend the last commit of the PR, and push it with --force-with-lease. |
18ed558 to
99c13d7
Compare
|
I've removed the double-run of pre-commit. |
|
Instead of |
Given that we are deleting lots of folders before generating code & then running |
|
Hmm OK then |
On OSX, sed -i always requires the suffix argument, so it is normally passed as empty string when not desired. On other linux, for example Ubuntu, it should not be passed at all when it is empty. This gave errors about file not found when running the generator.
This new version is required to exclude readonly fields from being sent in the request. Fixes airflow/airflow-client-python#4 Fixes airflow/airflow-client-python#21
pre-commit would print failures, which were ok to ignore due to the "|| true", caused by hook adding licence headers. To new eyes, this was not clear if the generation was successful or not if just looking at console output. Added a more descriptive message to explain why ignoring this failure is ok. Finally add a success message at the end and enable bash exit-on-error mode to be absolutely sure the script ran to completion.
99c13d7 to
e1dfb5c
Compare
|
Awesome work, congrats on your first merged pull request! |
These changes enable the airflow-client-python to be generated and used successfully.
Fixes airflow/airflow-client-python#4
Fixes airflow/airflow-client-python#21
With these changes, I've tried generating the client and can now successfully call the post_dag_run from it, which was not possible before.
Generated airflow-client-python/airflow_client/test unit tests are passing.