You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ka...@apache.org on 2025/06/10 19:31:34 UTC
(airflow) branch v3-0-test updated: Fix the version for generated client (#50859)
This is an automated email from the ASF dual-hosted git repository.
kaxilnaik pushed a commit to branch v3-0-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/v3-0-test by this push:
new 9a8a50386fc Fix the version for generated client (#50859)
9a8a50386fc is described below
commit 9a8a50386fca28961e73c81c702342a913fac8d6
Author: Kaxil Naik <ka...@apache.org>
AuthorDate: Wed May 21 01:06:31 2025 +0530
Fix the version for generated client (#50859)
The command that was generated before:
```
docker run --rm -u 501:20 -v /Users/kaxilnaik/Documents/GitHub/astronomer/airflow/clients/python/v2.yaml:/spec.yaml -v /Users/kaxilnaik/Documents/GitHub/astronomer/airflow/clients/python/tmp:/output openapitools/openapi-generator-cli:v7.13.0 generate --input-spec /spec.yaml --generator-name python --git-user-id None --output /output --package-name airflow_client.client --git-repo-id airflow-client-python --additional-properties 'packageVersion="3.0.0"'
```
which caused things like `__version__ = ""2.10.0""` ( [here](https://github.com/apache/airflow-client-python/blob/4bd5b2544e30b05bd8cd03502dc99bd6784a20d6/airflow_client/client/__init__.py) ) or
`__version__ = ""3.0.0""` in [here](https://github.com/apache/airflow-client-python/blob/38367b1158b777c87f51fe4d6283273031a4fb60/airflow_client/client/__init__.py#L17)
While this does not cause error the user-agent and things are weird:
```py
self.user_agent = 'OpenAPI-Generator/"3.0.0"/python'
```
vs
```py
self.user_agent = 'OpenAPI-Generator/3.0.0/python'
```
(cherry picked from commit e1f4290de84966b087166b42999ae54383d8c1c1)
---
dev/breeze/src/airflow_breeze/commands/release_management_commands.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dev/breeze/src/airflow_breeze/commands/release_management_commands.py b/dev/breeze/src/airflow_breeze/commands/release_management_commands.py
index c54d76467ac..50307e73b42 100644
--- a/dev/breeze/src/airflow_breeze/commands/release_management_commands.py
+++ b/dev/breeze/src/airflow_breeze/commands/release_management_commands.py
@@ -3135,7 +3135,7 @@ def _generate_python_client_sources(python_client_version: str) -> None:
"--git-repo-id",
"airflow-client-python",
"--additional-properties",
- f'packageVersion="{python_client_version}"',
+ f"packageVersion={python_client_version}",
],
capture_output=True,
text=True,