Skip to content

[2/n] Keep the package README hook in the repository - #3655

Merged
apcha-oai merged 2 commits into
mainfrom
apcha/python-local-readme-hook
Aug 19, 2026
Merged

[2/n] Keep the package README hook in the repository#3655
apcha-oai merged 2 commits into
mainfrom
apcha/python-local-readme-hook

Conversation

@apcha-oai

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

Copy link
Copy Markdown
Contributor

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

@apcha-oai
apcha-oai marked this pull request as ready for review August 19, 2026 14:46
@apcha-oai
apcha-oai requested a review from a team as a code owner August 19, 2026 14:46
@apcha-oai
apcha-oai force-pushed the apcha/python-remove-jsonschema branch from e82c9a2 to 645cd1c Compare August 19, 2026 14:53
@apcha-oai
apcha-oai force-pushed the apcha/python-local-readme-hook branch from 13a72d9 to 058b3e2 Compare August 19, 2026 14:53

@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 local Hatch metadata-hook migration. README content, UTF-8 handling, Markdown metadata, relative-link rewriting, and source-distribution to wheel builds remain compatible. The obsolete plugin is consistently removed from isolated build requirements, hashed constraints, and the lockfile without affecting runtime dependencies or publishing. All checks pass. No actionable findings.

Base automatically changed from apcha/python-remove-jsonschema to main August 19, 2026 15:13
@apcha-oai
apcha-oai force-pushed the apcha/python-local-readme-hook branch from 058b3e2 to a0dfc7d Compare August 19, 2026 15:14
@apcha-oai
apcha-oai enabled auto-merge August 19, 2026 15:14
@openai-sdks

openai-sdks Bot commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

OkTest Summary

Failed for Python SDK PR #3655.

View OkTest run #32268890116

SDK merge (ce4de54f59ec) · head (a0dfc7d5475f) · base (0dfdfdddfbeb) · OkTest (7e7850017529)

@apcha-oai
apcha-oai added this pull request to the merge queue 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
Merged via the queue into main with commit e673ca8 Aug 19, 2026
20 checks passed
@apcha-oai
apcha-oai deleted the apcha/python-local-readme-hook branch August 19, 2026 15:19
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
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