diff --git a/.changeset/change_default_ruff_hook_to_fix_only.md b/.changeset/change_default_ruff_hook_to_fix_only.md deleted file mode 100644 index 860f440c4..000000000 --- a/.changeset/change_default_ruff_hook_to_fix_only.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -default: patch ---- - -# Change default Ruff hook to `--fix-only` - -This should enable `openapi-python-client` to keep auto-fixing lints (like removing unused imports) but _not_ fail to -generate when unfixable lints are violated. - -Since it's now unlikely for breaking changes to affect our usage (and by popular request), the upper bound of `ruff` -has been lifted. Newer versions of `openapi-python-client` should no longer be required to support newer versions of `ruff`. diff --git a/.changeset/drop_support_for_python_39.md b/.changeset/drop_support_for_python_39.md deleted file mode 100644 index 88c84bc6d..000000000 --- a/.changeset/drop_support_for_python_39.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -default: major ---- - -# Drop support for Python 3.9 - -Both `openapi-python-client` itself and any generated clients no longer support Python 3.9. diff --git a/.changeset/generated_models_now_use_from_future_import_annotations.md b/.changeset/generated_models_now_use_from_future_import_annotations.md deleted file mode 100644 index 872fa97ba..000000000 --- a/.changeset/generated_models_now_use_from_future_import_annotations.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -default: major ---- - -# Generated models now use `from __future__ import annotations` - -This simplifies using forward references with the newer union syntax. diff --git a/.changeset/minimum_typer_version_is_now_016.md b/.changeset/minimum_typer_version_is_now_016.md deleted file mode 100644 index 013bed4f7..000000000 --- a/.changeset/minimum_typer_version_is_now_016.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -default: note ---- - -# Minimum Typer version is now 0.16 diff --git a/.changeset/upgrade_generated_clients_to_310_union_syntax.md b/.changeset/upgrade_generated_clients_to_310_union_syntax.md deleted file mode 100644 index 63961093f..000000000 --- a/.changeset/upgrade_generated_clients_to_310_union_syntax.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -default: minor ---- - -# Upgrade generated clients to 3.10 union syntax - -All generated types now use the `A | B` syntax instead of `Union[A, B]` or `Optional[A]`. diff --git a/CHANGELOG.md b/CHANGELOG.md index 10d21baf8..fe15ba487 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.27.0 (2025-10-28) + +### Breaking Changes + +#### Drop support for Python 3.9 + +Both `openapi-python-client` itself and any generated clients no longer support Python 3.9. + +#### Generated models now use `from __future__ import annotations` + +This simplifies using forward references with the newer union syntax. + +### Features + +#### Upgrade generated clients to 3.10 union syntax + +All generated types now use the `A | B` syntax instead of `Union[A, B]` or `Optional[A]`. + +### Fixes + +- Drop generated `requires-python` upper bounds for uv and PDM (#1329) + +#### Change default Ruff hook to `--fix-only` + +This should enable `openapi-python-client` to keep auto-fixing lints (like removing unused imports) but _not_ fail to +generate when unfixable lints are violated. + +Since it's now unlikely for breaking changes to affect our usage (and by popular request), the upper bound of `ruff` +has been lifted. Newer versions of `openapi-python-client` should no longer be required to support newer versions of `ruff`. + +### Notes + +- Minimum Typer version is now 0.16 + ## 0.26.2 (2025-10-06) ### Fixes diff --git a/pyproject.toml b/pyproject.toml index 93691b046..6944fcdad 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,7 +17,7 @@ dependencies = [ "ruff>=0.2", ] name = "openapi-python-client" -version = "0.26.2" +version = "0.27.0" description = "Generate modern Python clients from OpenAPI" keywords = [ "OpenAPI",