From 274842ce5836994aa6389d1e460bd7156f2a64eb Mon Sep 17 00:00:00 2001 From: GitHub Date: Thu, 7 Dec 2023 00:52:27 +0000 Subject: [PATCH] chore: prepare release 0.16.0 --- ...ess_pass_statements_from_generated_code.md | 5 --- ...ort_all_text_content_types_in_responses.md | 11 ------ ..._applicationoctet_stream_request_bodies.md | 11 ------ ...witch_from_black_to_ruff_for_formatting.md | 7 ---- ...f_instead_of_isort_autoflake_at_runtime.md | 7 ---- CHANGELOG.md | 34 +++++++++++++++++++ pyproject.toml | 2 +- 7 files changed, 35 insertions(+), 42 deletions(-) delete mode 100644 .changeset/remove_useless_pass_statements_from_generated_code.md delete mode 100644 .changeset/support_all_text_content_types_in_responses.md delete mode 100644 .changeset/support_applicationoctet_stream_request_bodies.md delete mode 100644 .changeset/switch_from_black_to_ruff_for_formatting.md delete mode 100644 .changeset/use_ruff_instead_of_isort_autoflake_at_runtime.md diff --git a/.changeset/remove_useless_pass_statements_from_generated_code.md b/.changeset/remove_useless_pass_statements_from_generated_code.md deleted file mode 100644 index 27b90e613..000000000 --- a/.changeset/remove_useless_pass_statements_from_generated_code.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -default: patch ---- - -#### Remove useless `pass` statements from generated code diff --git a/.changeset/support_all_text_content_types_in_responses.md b/.changeset/support_all_text_content_types_in_responses.md deleted file mode 100644 index 36c06a97f..000000000 --- a/.changeset/support_all_text_content_types_in_responses.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -default: minor ---- - -# Support all `text/*` content types in responses - -Within an API response, any content type which starts with `text/` will now be treated the same as `text/html` already was—they will return the `response.text` attribute from the [httpx Response](https://www.python-httpx.org/api/#response). - -Thanks to @fdintino for the initial implementation, and thanks for the discussions from @kairntech, @rubenfiszel, and @antoneladestito. - -Closes #797 and #821. diff --git a/.changeset/support_applicationoctet_stream_request_bodies.md b/.changeset/support_applicationoctet_stream_request_bodies.md deleted file mode 100644 index 8fd9df8f7..000000000 --- a/.changeset/support_applicationoctet_stream_request_bodies.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -default: minor ---- - -# Support `application/octet-stream` request bodies - -Endpoints that accept `application/octet-stream` request bodies are now supported using the same `File` type as octet-stream responses. - -Thanks to @kgutwin for the implementation and @rtaycher for the discussion! - -PR #899 closes #588 diff --git a/.changeset/switch_from_black_to_ruff_for_formatting.md b/.changeset/switch_from_black_to_ruff_for_formatting.md deleted file mode 100644 index b21ea0e8a..000000000 --- a/.changeset/switch_from_black_to_ruff_for_formatting.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -default: major ---- - -# Switch from Black to Ruff for formatting - -`black` is no longer a runtime dependency, so if you have them set in custom `post_hooks` in a config file, you'll need to make sure they're being installed manually. [`ruff`](https://docs.astral.sh/ruff) is now installed and used by default instead. diff --git a/.changeset/use_ruff_instead_of_isort_autoflake_at_runtime.md b/.changeset/use_ruff_instead_of_isort_autoflake_at_runtime.md deleted file mode 100644 index 56006f10d..000000000 --- a/.changeset/use_ruff_instead_of_isort_autoflake_at_runtime.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -default: major ---- - -#### Use Ruff instead of isort + autoflake at runtime - -`isort` and `autoflake` are no longer runtime dependencies, so if you have them set in custom `post_hooks` in a config file, you'll need to make sure they're being installed manually. [`ruff`](https://docs.astral.sh/ruff) is now installed and used by default instead. diff --git a/CHANGELOG.md b/CHANGELOG.md index ca0059cb3..e4c8ad523 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,40 @@ 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.16.0 (2023-12-07) + +### Breaking Changes + +#### Switch from Black to Ruff for formatting + +`black` is no longer a runtime dependency, so if you have them set in custom `post_hooks` in a config file, you'll need to make sure they're being installed manually. [`ruff`](https://docs.astral.sh/ruff) is now installed and used by default instead. + +#### Use Ruff instead of isort + autoflake at runtime + +`isort` and `autoflake` are no longer runtime dependencies, so if you have them set in custom `post_hooks` in a config file, you'll need to make sure they're being installed manually. [`ruff`](https://docs.astral.sh/ruff) is now installed and used by default instead. + +### Features + +#### Support all `text/*` content types in responses + +Within an API response, any content type which starts with `text/` will now be treated the same as `text/html` already was—they will return the `response.text` attribute from the [httpx Response](https://www.python-httpx.org/api/#response). + +Thanks to @fdintino for the initial implementation, and thanks for the discussions from @kairntech, @rubenfiszel, and @antoneladestito. + +Closes #797 and #821. + +#### Support `application/octet-stream` request bodies + +Endpoints that accept `application/octet-stream` request bodies are now supported using the same `File` type as octet-stream responses. + +Thanks to @kgutwin for the implementation and @rtaycher for the discussion! + +PR #899 closes #588 + +### Fixes + +#### Remove useless `pass` statements from generated code + ## 0.15.2 (2023-09-16) ### Features diff --git a/pyproject.toml b/pyproject.toml index 0bfcd1d29..498a235b9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "openapi-python-client" -version = "0.15.2" +version = "0.16.0" description = "Generate modern Python clients from OpenAPI" repository = "https://github.com/triaxtec/openapi-python-client" license = "MIT"