Skip to content

chore: remove stainless tooling, consolidate on uv - #110

Merged
hewliyang merged 2 commits into
mainfrom
hly/chore/cleanup
Sep 8, 2026
Merged

hewliyang merged 2 commits into
mainfrom
hly/chore/cleanup

Conversation

@hewliyang

@hewliyang hewliyang commented Sep 8, 2026 •

Copy link
Copy Markdown
Member

Summary

We no longer use Stainless. This PR removes its tooling and consolidates the dev workflow on uv.

Tooling

  • Remove Rye, Nox, Brewfile, .devcontainer/, .stats.yml, requirements*.lock, and the Stainless artifact upload script.
  • Move dev dependencies from [tool.rye] to [dependency-groups] (PEP 735). Re-lock uv.lock for Python >=3.9 (it was stale at >=3.8).
  • scripts/bootstrap, format, lint, test and bin/publish-pypi now use uv. The Pydantic v1 pass runs with uv run --isolated --with "pydantic<2".
  • CI, e2e, and publish workflows use astral-sh/setup-uv (pinned to the v7.6 digest). Stainless-specific runner switches, branch filters, and the tarball upload job are gone.

Releases

  • Releases are manual now. Remove release-please-config.json, .release-please-manifest.json, release-doctor.yml, and bin/check-release-environment.
  • CONTRIBUTING.md documents the manual release steps. publish-pypi.yml still fires on GitHub release publish, and the reducto alias shim still chains off it.

Stainless mentions

  • Remove the # File generated from our OpenAPI spec by Stainless header from all source and test files.
  • Rename request headers X-Stainless-* to X-Reducto-* (Lang, Package-Version, OS, Arch, Runtime, Runtime-Version, Async, Retry-Count, Read-Timeout, Raw-Response). The API does not read these headers, so this is safe.
  • Rename the retry idempotency key prefix and the internal override-cast header.
  • Update README.md and SECURITY.md. Historical CHANGELOG.md entries are left as they are.

Verification

  • ./scripts/lint: ruff, pyright, mypy clean
  • ./scripts/test: 455 passed (Pydantic v2), 452 passed (Pydantic v1)
  • uv build and uv lock --check OK

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

- Remove Rye, Nox, Brewfile, devcontainer, and requirements*.lock
- Move dev dependencies to [dependency-groups] and re-lock with uv
- Point scripts/*, bin/publish-pypi, and CI workflows at uv
- Remove release-please config and release-doctor workflow; releases are manual
- Remove Stainless generated-file headers and rename X-Stainless-* headers to X-Reducto-*
- Update CONTRIBUTING.md, SECURITY.md, README.md
@hewliyang hewliyang changed the title chore: remove Stainless tooling, consolidate on uv chore: remove stainless tooling, consolidate on uv Sep 8, 2026
@hewliyang
hewliyang requested a review from kirthi20 September 8, 2026 21:38
@hewliyang
hewliyang merged commit 949a250 into main Sep 8, 2026
7 checks passed
@hewliyang hewliyang mentioned this pull request Sep 8, 2026
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