diff --git a/.github/workflows/release-shim.yml b/.github/workflows/release-shim.yml deleted file mode 100644 index f69dce3..0000000 --- a/.github/workflows/release-shim.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: Release pydantic-harness shim - -on: - push: - tags: - - 'pydantic-harness-v*' - -permissions: - contents: read - -jobs: - release: - runs-on: ubuntu-latest - environment: release - permissions: - contents: read - id-token: write - steps: - - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - with: - persist-credentials: false - - - uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8.0.0 - with: - python-version: '3.14' - enable-cache: false - - - run: uv build - working-directory: legacy/pydantic-harness - - - uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0 - with: - packages-dir: legacy/pydantic-harness/dist diff --git a/legacy/pydantic-harness/README.md b/legacy/pydantic-harness/README.md deleted file mode 100644 index 1867d53..0000000 --- a/legacy/pydantic-harness/README.md +++ /dev/null @@ -1,25 +0,0 @@ -# pydantic-harness (deprecated) - -This package has been renamed to **[pydantic-ai-harness](https://github.com/pydantic/pydantic-ai-harness)** to align with the Pydantic AI family naming convention (`pydantic-ai`, `pydantic-ai-slim`, `pydantic-ai-harness`). - -## Migration - -```bash -uv remove pydantic-harness -uv add pydantic-ai-harness -``` - -Update your imports: - -```diff -- from pydantic_harness import CodeMode -+ from pydantic_ai_harness import CodeMode -``` - -## About this shim - -This `pydantic-harness==0.1.1` release is a compatibility shim that depends on `pydantic-ai-harness>=0.1.1,<0.2` and re-exports its public API. Existing code keeps working, but importing `pydantic_harness` emits a `DeprecationWarning`. - -When `pydantic-ai-harness==0.2.0` ships, this shim will stop resolving — `pip install pydantic-harness` will fail and users will be forced to migrate. - -This is the final release of the `pydantic-harness` package name. diff --git a/legacy/pydantic-harness/pydantic_harness/__init__.py b/legacy/pydantic-harness/pydantic_harness/__init__.py deleted file mode 100644 index 6a76670..0000000 --- a/legacy/pydantic-harness/pydantic_harness/__init__.py +++ /dev/null @@ -1,28 +0,0 @@ -"""Deprecated: pydantic-harness has been renamed to pydantic-ai-harness.""" - -import warnings -from typing import TYPE_CHECKING - -warnings.warn( - 'pydantic-harness has been renamed to pydantic-ai-harness. ' - 'Please update your dependencies and imports:\n' - ' uv remove pydantic-harness\n' - ' uv add pydantic-ai-harness\n' - 'Then change `from pydantic_harness import ...` to `from pydantic_ai_harness import ...`. ' - 'This shim re-exports from pydantic-ai-harness 0.1.x and will stop resolving with 0.2.0.', - DeprecationWarning, - stacklevel=2, -) - -if TYPE_CHECKING: - from pydantic_ai_harness import CodeMode - -__all__ = ['CodeMode'] - - -def __getattr__(name: str) -> object: - if name == 'CodeMode': - from pydantic_ai_harness import CodeMode - - return CodeMode - raise AttributeError(f'module {__name__!r} has no attribute {name!r}') diff --git a/legacy/pydantic-harness/pydantic_harness/code_mode/__init__.py b/legacy/pydantic-harness/pydantic_harness/code_mode/__init__.py deleted file mode 100644 index a7d613b..0000000 --- a/legacy/pydantic-harness/pydantic_harness/code_mode/__init__.py +++ /dev/null @@ -1,5 +0,0 @@ -"""Deprecated submodule: re-exports from pydantic_ai_harness.code_mode.""" - -from pydantic_ai_harness.code_mode import CodeMode, CodeModeToolset - -__all__ = ['CodeMode', 'CodeModeToolset'] diff --git a/legacy/pydantic-harness/pydantic_harness/py.typed b/legacy/pydantic-harness/pydantic_harness/py.typed deleted file mode 100644 index e69de29..0000000 diff --git a/legacy/pydantic-harness/pyproject.toml b/legacy/pydantic-harness/pyproject.toml deleted file mode 100644 index 7a44b0a..0000000 --- a/legacy/pydantic-harness/pyproject.toml +++ /dev/null @@ -1,40 +0,0 @@ -[build-system] -requires = ['hatchling'] -build-backend = 'hatchling.build' - -[project] -name = 'pydantic-harness' -version = '0.1.1' -description = 'Deprecated: renamed to pydantic-ai-harness' -readme = 'README.md' -requires-python = '>=3.10' -license = 'MIT' -authors = [ - { name = 'Douwe Maan', email = 'douwe@pydantic.dev' }, - { name = 'David SF', email = 'david.sanchez@pydantic.dev' }, - { name = 'Aditya Vardhan', email = 'aditya@pydantic.dev' }, -] -classifiers = [ - 'Development Status :: 7 - Inactive', - 'Intended Audience :: Developers', - 'License :: OSI Approved :: MIT License', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.10', - 'Programming Language :: Python :: 3.11', - 'Programming Language :: Python :: 3.12', - 'Programming Language :: Python :: 3.13', - 'Programming Language :: Python :: 3.14', - 'Topic :: Software Development :: Libraries', - 'Typing :: Typed', -] -dependencies = [ - 'pydantic-ai-harness>=0.1.1,<0.2', -] - -[project.urls] -Homepage = 'https://github.com/pydantic/pydantic-ai-harness' -Source = 'https://github.com/pydantic/pydantic-ai-harness' -Issues = 'https://github.com/pydantic/pydantic-ai-harness/issues' - -[tool.hatch.build.targets.wheel] -packages = ['pydantic_harness'] diff --git a/pyproject.toml b/pyproject.toml index ad011b5..5b6addd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -79,7 +79,7 @@ packages = ['pydantic_ai_harness'] [tool.ruff] line-length = 120 target-version = 'py310' -exclude = ['template', 'legacy'] +exclude = ['template'] [tool.ruff.lint] extend-select = ['Q', 'RUF100', 'C90', 'UP', 'I', 'D', 'TID251'] @@ -102,7 +102,7 @@ quote-style = 'single' [tool.pyright] pythonVersion = '3.10' typeCheckingMode = 'strict' -exclude = ['template', '.venv', 'legacy'] +exclude = ['template', '.venv'] executionEnvironments = [ { root = 'tests', reportPrivateUsage = false }, ]