From 143c722ea654b11eae013ee3c55916760cef7cd6 Mon Sep 17 00:00:00 2001 From: "knope-bot[bot]" <152252888+knope-bot[bot]@users.noreply.github.com> Date: Tue, 24 Dec 2024 23:35:09 +0000 Subject: [PATCH] Release 0.23.0 --- .../add_generate_all_tags_config_option.md | 8 ---- .../delete_fewer_files_with_overwrite.md | 13 ------ .changeset/fix_minimum_attrs_version.md | 10 ----- ...ly_rebuild_pydantic_models_if_necessary.md | 10 ----- CHANGELOG.md | 41 +++++++++++++++++++ pyproject.toml | 2 +- 6 files changed, 42 insertions(+), 42 deletions(-) delete mode 100644 .changeset/add_generate_all_tags_config_option.md delete mode 100644 .changeset/delete_fewer_files_with_overwrite.md delete mode 100644 .changeset/fix_minimum_attrs_version.md delete mode 100644 .changeset/properly_rebuild_pydantic_models_if_necessary.md diff --git a/.changeset/add_generate_all_tags_config_option.md b/.changeset/add_generate_all_tags_config_option.md deleted file mode 100644 index fb74b9fb0..000000000 --- a/.changeset/add_generate_all_tags_config_option.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -default: minor ---- - -# Add `generate_all_tags` config option - -You can now, optionally, generate **duplicate** endpoint functions/modules using _every_ tag for an endpoint, -not just the first one, by setting `generate_all_tags: true` in your configuration file. diff --git a/.changeset/delete_fewer_files_with_overwrite.md b/.changeset/delete_fewer_files_with_overwrite.md deleted file mode 100644 index c2e273a39..000000000 --- a/.changeset/delete_fewer_files_with_overwrite.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -default: major ---- - -# Delete fewer files with `--overwrite` - -`--overwrite` will no longer delete the entire output directory before regenerating. Instead, it will only delete -specific, known directories within that directory. Right now, that is only the generated `models` and `api` directories. - -Other generated files, like `README.md`, will be overwritten. Extra files and directories outside of those listed above -will be left untouched, so you can any extra modules or files around while still updating `pyproject.toml` automatically. - -Closes #1105. diff --git a/.changeset/fix_minimum_attrs_version.md b/.changeset/fix_minimum_attrs_version.md deleted file mode 100644 index 1d8fe623b..000000000 --- a/.changeset/fix_minimum_attrs_version.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -default: patch ---- - -# Fix minimum `attrs` version - -The minimum `attrs` dependency version was incorrectly set to 21.3.0. This has been corrected to 22.2.0, the minimum -supported version since `openapi-python-client` 0.19.1. - -Closes #1084, thanks @astralblue! diff --git a/.changeset/properly_rebuild_pydantic_models_if_necessary.md b/.changeset/properly_rebuild_pydantic_models_if_necessary.md deleted file mode 100644 index 28f892e43..000000000 --- a/.changeset/properly_rebuild_pydantic_models_if_necessary.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -default: patch ---- - -# Fix compatibility with Pydantic 2.10+ - -#1176 by @Viicos - -Set `defer_build` to models that we know will fail to build, and call `model_rebuild` -in the `__init__.py` file. diff --git a/CHANGELOG.md b/CHANGELOG.md index 2acc64b1e..6569f30fb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,47 @@ Programmatic usage of this project (e.g., importing it as a Python module) and t The 0.x prefix used in versions for this project is to indicate that breaking changes are expected frequently (several times a year). Breaking changes will increment the minor number, all other changes will increment the patch number. You can track the progress toward 1.0 [here](https://github.com/openapi-generators/openapi-python-client/projects/2). +## 0.23.0 (2024-12-24) + +### Breaking Changes + +#### Delete fewer files with `--overwrite` + +`--overwrite` will no longer delete the entire output directory before regenerating. Instead, it will only delete +specific, known directories within that directory. Right now, that is only the generated `models` and `api` directories. + +Other generated files, like `README.md`, will be overwritten. Extra files and directories outside of those listed above +will be left untouched, so you can any extra modules or files around while still updating `pyproject.toml` automatically. + +Closes #1105. + +### Features + +- Support httpx 0.28 (#1172) + +#### Add `generate_all_tags` config option + +You can now, optionally, generate **duplicate** endpoint functions/modules using _every_ tag for an endpoint, +not just the first one, by setting `generate_all_tags: true` in your configuration file. + +### Fixes + +- Support Typer 0.14 and 0.15 (#1173) + +#### Fix minimum `attrs` version + +The minimum `attrs` dependency version was incorrectly set to 21.3.0. This has been corrected to 22.2.0, the minimum +supported version since `openapi-python-client` 0.19.1. + +Closes #1084, thanks @astralblue! + +#### Fix compatibility with Pydantic 2.10+ + +##1176 by @Viicos + +Set `defer_build` to models that we know will fail to build, and call `model_rebuild` +in the `__init__.py` file. + ## 0.22.0 (2024-11-23) ### Breaking Changes diff --git a/pyproject.toml b/pyproject.toml index a9d5481c2..4966e5f55 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,7 +18,7 @@ dependencies = [ "typing-extensions>=4.8.0,<5.0.0", ] name = "openapi-python-client" -version = "0.22.0" +version = "0.23.0" description = "Generate modern Python clients from OpenAPI" keywords = [ "OpenAPI",