Skip to content

chore(build): migrate to uv - #3653

Merged
apcha-oai merged 3 commits into
mainfrom
apcha/python-uv-migration
Aug 19, 2026
Merged

chore(build): migrate to uv#3653
apcha-oai merged 3 commits into
mainfrom
apcha/python-uv-migration

Conversation

@apcha-oai

@apcha-oai apcha-oai commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Summary

Rye is no longer maintained. Moving to its maintained successor, uv.

  • Keep the familiar scripts/* commands and both Pydantic compatibility lanes, while making uv.lock the source of truth.
  • Build releases with a small, hash-checked dependency set. Preserve the separate, upload-only PyPI Trusted Publishing job.
  • Give routine Python and GitHub Actions updates an eight-day cooldown. Keep Dependabot security updates exempt, with a narrow, reviewed uv exception process for urgent fixes.
  • Reduce the development graph from 88 packages to 79. The default runtime graph stays at 15 and all runtime extras stay at 37; existing patched networking dependencies are retained.

There is no SDK API or Python-support change. Pyright's installation path and unrelated dependency upgrades remain separate follow-ups.

@apcha-oai
apcha-oai requested a review from a team August 19, 2026 14:18
@apcha-oai apcha-oai changed the title chore: unify development and builds on uv chore(build): migrate to uv Aug 19, 2026
@apcha-oai
apcha-oai marked this pull request as ready for review August 19, 2026 14:30
@openai-sdks

openai-sdks Bot commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

OkTest Summary

Failed for Python SDK PR #3653.

View OkTest run #32264397417

SDK merge (750f989d3b70) · head (1dcee72de6da) · base (56807c041cb4) · OkTest (7e7850017529)

@jbeckwith-oai jbeckwith-oai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the complete Rye-to-uv migration across all 35 changed files. Verified the authoritative uv lock and release marker, Python 3.10-3.14 and isolated Pydantic v1/v2 compatibility, unchanged runtime extras/security floors, hashed build dependencies, protected upload-only PyPI Trusted Publishing, SHA-pinned Actions, Dependabot policy, package contents, contributor tooling, and regression coverage. All required checks pass. No actionable findings.

@apcha-oai
apcha-oai added this pull request to the merge queue Aug 19, 2026
Merged via the queue into main with commit b37e85d Aug 19, 2026
20 checks passed
@openai-sdks openai-sdks Bot mentioned this pull request Aug 19, 2026
pull Bot pushed a commit to moqimoqidea/openai-python that referenced this pull request Aug 19, 2026
# Summary

This is part of a series to reduce the SDK’s dependency surface where a
small, purpose-built alternative is sufficient.

- Replace the general-purpose JSON Schema dependency with explicit
checks for our small, checked-in Bedrock authentication fixture.
- Keep the shared schema as the contract, and fail if it changes beyond
what the manual checks cover.
- Remove four development packages (`jsonschema`,
`jsonschema-specifications`, `referencing`, and `rpds-py`), reducing the
development dependency graph from 79 to 75 distributions. Runtime
dependencies are unchanged.

## Stack

- openai#3653 (merged)
- openai#3654 👈 this PR
- openai#3655
- openai#3656
pull Bot pushed a commit to gitupdates/openai-python that referenced this pull request Aug 19, 2026
# Summary

This is part of a series to reduce the SDK’s dependency surface where a
small, purpose-built alternative is sufficient.

- Replace `hatch-fancy-pypi-readme` with a small repository-owned Hatch
metadata hook for our existing relative-link rewrite.
- Preserve the README published in package metadata, including when a
wheel is built from the source distribution.
- Reduce the isolated build dependency graph from seven to six
distributions across supported Python versions. Runtime and development
dependencies are unchanged.

## Stack

- openai#3653 (merged)
- openai#3654 (merged)
- openai#3655 👈 this PR
- openai#3656
pull Bot pushed a commit to gitupdates/openai-python that referenced this pull request Aug 19, 2026
# Summary

This is part of a series to reduce the SDK’s dependency surface where a
small, purpose-built alternative is sufficient.

- Replace `distro` with Python’s standard OS-release lookup for the
diagnostic platform header.
- Preserve mobile detection, recognize FreeBSD and OpenBSD directly, and
fall back to `Linux` if OS-release information is unavailable.
- Matching `distro`’s exact behavior is explicitly a non-goal. This
header only needs to be close enough for our analytics purposes; we
prefer removing the dependency over reproducing its full
distribution-detection and fallback behavior.
- Remove one runtime dependency: the default graph goes from 15 to 14
distributions, and the all-extras graph from 37 to 36. No remaining
dependency versions change.

## Stack

- openai#3653 (merged)
- openai#3654 (merged)
- openai#3655 (merged)
- openai#3656 👈 this PR
pull Bot pushed a commit to tooniez/openai-python that referenced this pull request Aug 19, 2026
Automated Release PR
---


##
[3.3.1](openai/openai-python@v3.3.0...v3.3.1)
(2026-08-19)


### Bug Fixes

* **deps:** update dependencies with published security fixes
([openai#3680](openai#3680))
([53aa4fc](openai@53aa4fc))


### Chores

* **build:** migrate to uv
([openai#3653](openai#3653))
([b37e85d](openai@b37e85d))
* **deps:** remove jsonschema and unused fixture-validation dependencies
([0dfdfdd](openai@0dfdfdd))
* lock the repository Pyright toolchain
([openai#3678](openai#3678))
([3079be2](openai@3079be2))
* run the mock server from locked local tooling
([openai#3679](openai#3679))
([370fcc6](openai@370fcc6))


### Refactors

* **deps:** use the standard library for platform detection
([d5b0065](openai@d5b0065))


### Build System

* replace the external README metadata hook
([e673ca8](openai@e673ca8))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: openai-sdks[bot] <284451331+openai-sdks[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.

2 participants