GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: Drop generated `requires-python` upper bounds for uv and PDM by johnthagen · Pull Request #1329 · openapi-generators/openapi-python-client

Conversation

@johnthagen

@johnthagen johnthagen commented Oct 6, 2025

Copy link
Copy Markdown
Collaborator

requires-python has a long and sorted history in the Python community

  • https://docs.astral.sh/uv/concepts/resolution/#universal-resolution

When evaluating requires-python ranges for dependencies, uv only considers lower bounds and ignores upper bounds entirely. For example, >=3.8, <4 is treated as >=3.8

Remove the upper bound on generated clients to avoid pushing users into this without need.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@johnthagen
Drop requires-python upper bounds for uv and PDM
7c95382
@johnthagen johnthagen self-assigned this Oct 6, 2025
@johnthagen johnthagen added the ✨ enhancement New feature or improvement label Oct 6, 2025
@johnthagen johnthagen changed the title Drop requires-python upper bounds for uv and PDM Drop generated requires-python upper bounds for uv and PDM Oct 6, 2025
@johnthagen
johnthagen requested a review from dbanty October 6, 2025 19:49
@johnthagen
johnthagen marked this pull request as ready for review October 6, 2025 19:51
@johnthagen johnthagen mentioned this pull request Oct 6, 2025
fix: ambigious tilde specifier requires-python with--meta=uv #1321
Merged
@johnthagen johnthagen removed the ✨ enhancement New feature or improvement label Oct 6, 2025
dbanty
dbanty approved these changes Oct 6, 2025
View reviewed changes
@dbanty dbanty changed the title Drop generated requires-python upper bounds for uv and PDM fix: Drop generated requires-python upper bounds for uv and PDM Oct 6, 2025
@dbanty

dbanty commented Oct 6, 2025

Copy link
Copy Markdown
Collaborator

Thanks!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dbanty
dbanty added this pull request to the merge queue Oct 6, 2025
Merged via the queue into main with commit df0ab16 Oct 6, 2025
@dbanty
dbanty deleted the drop-upper-bounds branch October 6, 2025 21:40
@knope-bot knope-bot Bot mentioned this pull request Oct 6, 2025
Release 0.27.0 #1330
Merged
github-merge-queue Bot pushed a commit that referenced this pull request Oct 28, 2025
@knope-bot
Release 0.27.0 (#1330)
0d79568
> [!IMPORTANT]
> Merging this pull request will create this release

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

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

Reviewers

@dbanty dbanty dbanty approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@johnthagen johnthagen

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@johnthagen @dbanty
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.