Skip to content

Commit afecc96

Browse files
author
GitHub
committed
chore: prepare release 0.16.0
1 parent 87b969c commit afecc96

6 files changed

+27
-31
lines changed

.changeset/remove_useless_pass_statements_from_generated_code.md

-5
This file was deleted.

.changeset/support_all_text_content_types_in_responses.md

-11
This file was deleted.

.changeset/switch_from_black_to_ruff_for_formatting.md

-7
This file was deleted.

.changeset/use_ruff_instead_of_isort_autoflake_at_runtime.md

-7
This file was deleted.

CHANGELOG.md

+26
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,32 @@ Programmatic usage of this project (e.g., importing it as a Python module) and t
1313

1414
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).
1515

16+
## 0.16.0 (2023-12-06)
17+
18+
### Breaking Changes
19+
20+
#### Switch from Black to Ruff for formatting
21+
22+
`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.
23+
24+
#### Use Ruff instead of isort + autoflake at runtime
25+
26+
`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.
27+
28+
### Features
29+
30+
#### Support all `text/*` content types in responses
31+
32+
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).
33+
34+
Thanks to @fdintino for the initial implementation, and thanks for the discussions from @kairntech, @rubenfiszel, and @antoneladestito.
35+
36+
Closes #797 and #821.
37+
38+
### Fixes
39+
40+
#### Remove useless `pass` statements from generated code
41+
1642
## 0.15.2 (2023-09-16)
1743

1844
### Features

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "openapi-python-client"
3-
version = "0.15.2"
3+
version = "0.16.0"
44
description = "Generate modern Python clients from OpenAPI"
55
repository = "https://github.com/triaxtec/openapi-python-client"
66
license = "MIT"

0 commit comments

Comments
 (0)