Skip to content

Remove pydantic-harness deprecation shim#209

Draft
DouweM wants to merge 1 commit intomainfrom
launch/remove-deprecation-shim
Draft

Remove pydantic-harness deprecation shim#209
DouweM wants to merge 1 commit intomainfrom
launch/remove-deprecation-shim

Conversation

@DouweM
Copy link
Copy Markdown
Contributor

@DouweM DouweM commented Apr 13, 2026

Summary

Removes the pydantic-harness compatibility shim that was added in #208 to bridge the rename from pydantic-harness to pydantic-ai-harness.

Removed

  • legacy/pydantic-harness/ — the shim package (pyproject.toml, pydantic_harness/__init__.py, code_mode/__init__.py, README)
  • .github/workflows/release-shim.yml — the one-off publish workflow
  • legacy exclusions from ruff and pyright config in pyproject.toml

Timing

Draft until ready to merge. This PR should only land:

  1. After pydantic-harness==0.1.1 has been published to PyPI (so users have somewhere to land for the 0.1.x line)
  2. Before tagging pydantic-ai-harness v0.2.0 (since the shim pins pydantic-ai-harness<0.2 and there's no point keeping it around once the upper bound kicks in — the rejected resolution will force migration anyway)

Between those two moments, new users installing pydantic-harness still get the shim → the new package → a DeprecationWarning telling them to migrate. After merging this PR, new installs of pydantic-harness will continue to resolve to the published 0.1.1 shim on PyPI (unaffected by repo cleanup), but no further shim releases are possible.

Test plan

  • make lint passes
  • make typecheck passes
  • make test passes
  • pydantic-harness==0.1.1 is on PyPI before merge

🤖 Generated with Claude Code

The shim package and its release workflow served the 0.1.x transition
from pydantic-harness to pydantic-ai-harness. With this merged, the
next pydantic-ai-harness release is free to be 0.2.0 without needing
to maintain the shim.

MERGE ONLY AFTER:
- pydantic-harness==0.1.1 has been published to PyPI
- All users are expected to have migrated, or are willing to pin the
  old 0.1.x line

MERGE BEFORE:
- Tagging pydantic-ai-harness v0.2.0 (since the shim pins
  pydantic-ai-harness<0.2 and there's no point keeping it around once
  the upper bound kicks in)

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
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.

1 participant