Skip to content

Commit

Permalink
Only replace "client" subdir when copying sources to python client (#…
Browse files Browse the repository at this point in the history
…39181)

When the client is generated, only the "client" subdirectory should
be replaced rather than "airflow_client" parent so that README and
gitignores are not removed.

(cherry picked from commit 57995d0)
  • Loading branch information
potiuk authored and ephraimbuddy committed Jul 22, 2024
1 parent 71475fa commit 9aa6712
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2697,7 +2697,11 @@ def split_version_and_suffix(file_name: str, suffix: str) -> VersionedFile:
TARGET_API_YAML_PATH = PYTHON_CLIENT_DIR_PATH / "v1.yaml"
OPENAPI_GENERATOR_CLI_VER = "5.4.0"

GENERATED_CLIENT_DIRECTORIES_TO_COPY = ["airflow_client", "docs", "test"]
GENERATED_CLIENT_DIRECTORIES_TO_COPY: list[Path] = [
Path("airflow_client") / "client",
Path("docs"),
Path("test"),
]
FILES_TO_COPY_TO_CLIENT_REPO = [
".gitignore",
".openapi-generator-ignore",
Expand Down

0 comments on commit 9aa6712

Please sign in to comment.