Skip to content

Release 0.23.0 #1181

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 24, 2024
Merged

Release 0.23.0 #1181

merged 1 commit into from
Dec 24, 2024

Conversation

knope-bot[bot]
Copy link
Contributor

@knope-bot knope-bot bot commented Dec 24, 2024

Important

Merging this pull request will create this release

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

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

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.

@knope-bot knope-bot bot force-pushed the knope/release branch 4 times, most recently from ac6a5f2 to 3616419 Compare December 24, 2024 22:21
@knope-bot knope-bot bot changed the title Release 0.22.1 Release 0.23.0 Dec 24, 2024
@knope-bot knope-bot bot force-pushed the knope/release branch 2 times, most recently from ba5c6a5 to 7225f0e Compare December 24, 2024 23:04
@dbanty dbanty added this pull request to the merge queue Dec 24, 2024
Merged via the queue into main with commit 99ae3a9 Dec 24, 2024
42 checks passed
@dbanty dbanty deleted the knope/release branch December 24, 2024 23:49
micha91 pushed a commit to micha91/openapi-python-client that referenced this pull request May 13, 2025
> [!IMPORTANT]
> Merging this pull request will create this release

## 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 openapi-generators#1105.

## Features

- Support httpx 0.28 (openapi-generators#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 (openapi-generators#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 openapi-generators#1084, thanks @astralblue!

### Fix compatibility with Pydantic 2.10+

openapi-generators#1176 by @Viicos

Set `defer_build` to models that we know will fail to build, and call
`model_rebuild`
in the `__init__.py` file.

Co-authored-by: knope-bot[bot] <152252888+knope-bot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sharp edge: --overwrite with --output-path Stale attrs dependency, attrs>=22.2 required
1 participant