Skip to content

Commit 77ea9ff

Browse files
dbantyGitHub
and
GitHub
authored
chore: prepare release 0.16.0 (#871)
This PR was created by Knope. Merging it will create a new release ### 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 Co-authored-by: GitHub <[email protected]>
1 parent 3e0f835 commit 77ea9ff

7 files changed

+35
-42
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/support_applicationoctet_stream_request_bodies.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

+34
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,40 @@ 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-07)
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+
#### Support `application/octet-stream` request bodies
39+
40+
Endpoints that accept `application/octet-stream` request bodies are now supported using the same `File` type as octet-stream responses.
41+
42+
Thanks to @kgutwin for the implementation and @rtaycher for the discussion!
43+
44+
PR #899 closes #588
45+
46+
### Fixes
47+
48+
#### Remove useless `pass` statements from generated code
49+
1650
## 0.15.2 (2023-09-16)
1751

1852
### 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)