diff --git a/CHANGELOG.md b/CHANGELOG.md index 8113664..61d5ff5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,7 +25,7 @@ Breaking changes are listed under **Breaking changes**, each with its migration. context in a new execution owner no longer suppresses that owner's retries, and stored retry scopes do not retain finished tasks. -## [0.4.0b2] - 2026-11-26 +## [0.4.0] - 2026-11-26 ### Breaking changes @@ -926,8 +926,8 @@ Core: Initial release. -[Unreleased]: https://github.com/LitePy/PythonWrap/compare/v0.4.0b2...HEAD -[0.4.0b2]: https://github.com/LitePy/PythonWrap/compare/v0.4.0b1...v0.4.0b2 +[Unreleased]: https://github.com/LitePy/PythonWrap/compare/v0.4.0...HEAD +[0.4.0]: https://github.com/LitePy/PythonWrap/compare/v0.4.0b2...v0.4.0 [0.4.0b1]: https://github.com/LitePy/PythonWrap/compare/v0.3.0...v0.4.0b1 [0.3.0]: https://github.com/LitePy/PythonWrap/compare/v0.2.1...v0.3.0 [0.2.1]: https://github.com/LitePy/PythonWrap/compare/v0.1.0...v0.2.1 diff --git a/docs/llms-full.txt b/docs/llms-full.txt index 9d92b50..e893c0b 100644 --- a/docs/llms-full.txt +++ b/docs/llms-full.txt @@ -4420,7 +4420,7 @@ Every public name: `python_wrap.__all__` first, then names public only in a subm - `python_wrap.WebhookAlerter`: `WebhookAlerter(url: str, *, format: str = 'json', on: Iterable[str | CircuitState] = ('open',), cooldown: float = 300.0, timeout: float = 5.0, sender: Sender | None = None, include_recovery: bool = True, context: Mapping[str, Any] | None = None)` Post a chat message when a circuit breaker reaches a chosen state. - `python_wrap.__version__` - Constant: '0.4.0b2' + Constant: '0.4.0' - `python_wrap.ainvalidate_tags`: `ainvalidate_tags(*names: str, client: Any = None) -> None` `invalidate_tags` for ``redis.asyncio`` clients (amemoize with AsyncRedisStore). - `python_wrap.amap_iter`: `amap_iter(fn: Callable[[T], Awaitable[R]], items: Iterable[T] | AsyncIterable[T], *, limit: int, ordered: bool = True, return_exceptions: bool = False) -> AsyncGenerator[Any, None]` @@ -4820,7 +4820,7 @@ Every public name: `python_wrap.__all__` first, then names public only in a subm - `python_wrap.decorators` Compatibility module: v0.1 imported everything from ``python_wrap.decorators``. - `python_wrap.decorators.__version__` - Constant: '0.4.0b2' + Constant: '0.4.0' - `python_wrap.devtools` Developer tools: deprecation warnings, mock data and decorator composition. - `python_wrap.django` diff --git a/scripts/smoke_wheel.py b/scripts/smoke_wheel.py index e404581..01e3435 100644 --- a/scripts/smoke_wheel.py +++ b/scripts/smoke_wheel.py @@ -5,7 +5,7 @@ Steps: build one wheel from the checkout (``uv build`` if available, else ``python -m build``), create an empty virtual environment, install only that wheel, then run a short script with ``python -I`` from a scratch directory so the source tree cannot stand in for anything the -wheel left out. The script checks the version is a PEP 440 beta, that there are no runtime +wheel left out. The script checks the version is a PEP 440 release (final or beta), that there are no runtime dependencies, that ``py.typed`` and the packaged data files ship, that the command line tools work and that a retry, timeout and LLM happy path runs. Standard library only. """ @@ -34,7 +34,7 @@ import python_wrap version = python_wrap.__version__ - assert re.fullmatch(r"\\d+\\.\\d+\\.\\d+b\\d+", version), f"not a PEP 440 beta: {version}" + assert re.fullmatch(r"\\d+\\.\\d+\\.\\d+(b\\d+)?", version), f"not a PEP 440 release: {version}" meta = md.metadata("python-wrap") assert meta["Version"] == version requires = [r for r in (md.requires("python-wrap") or []) if "extra ==" not in r] diff --git a/src/python_wrap/__init__.py b/src/python_wrap/__init__.py index 5df97e9..dcdc979 100644 --- a/src/python_wrap/__init__.py +++ b/src/python_wrap/__init__.py @@ -281,7 +281,7 @@ validate_args, ) -__version__ = "0.4.0b2" +__version__ = "0.4.0" # A library must never configure logging; this only silences "no handler" warnings. logging.getLogger("python_wrap").addHandler(logging.NullHandler())