diff --git a/packages/image-generation/pyproject.toml b/packages/image-generation/pyproject.toml index b941fcbe..f146397a 100644 --- a/packages/image-generation/pyproject.toml +++ b/packages/image-generation/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "celeste-image-generation" -version = "0.2.1" +version = "0.2.2" description = "Type-safe image generation for Celeste AI. Unified interface for OpenAI, Google, ByteDance, and more" authors = [{name = "Kamilbenkirane", email = "kamil@withceleste.ai"}] readme = "README.md" diff --git a/packages/text-generation/pyproject.toml b/packages/text-generation/pyproject.toml index 873fbf42..335dda8a 100644 --- a/packages/text-generation/pyproject.toml +++ b/packages/text-generation/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "celeste-text-generation" -version = "0.2.1" +version = "0.2.2" description = "Type-safe text generation for Celeste AI. Unified interface for OpenAI, Anthropic, Google, Mistral, Cohere, and more" authors = [{name = "Kamilbenkirane", email = "kamil@withceleste.ai"}] readme = "README.md" diff --git a/packages/text-generation/tests/integration_tests/conftest.py b/packages/text-generation/tests/integration_tests/conftest.py new file mode 100644 index 00000000..d06d892f --- /dev/null +++ b/packages/text-generation/tests/integration_tests/conftest.py @@ -0,0 +1,19 @@ +"""Pytest configuration and fixtures for integration tests.""" + +from collections.abc import AsyncGenerator + +import pytest_asyncio + +from celeste.http import close_all_http_clients + + +@pytest_asyncio.fixture(autouse=True) +async def cleanup_http_clients() -> AsyncGenerator[None, None]: + """Ensure HTTP clients are closed after each test. + + This fixture runs automatically after each test to ensure HTTP clients + are properly closed before pytest-asyncio closes the event loop. + This prevents "Event loop is closed" errors when using pytest-xdist. + """ + yield + await close_all_http_clients() diff --git a/pyproject.toml b/pyproject.toml index 080a4a4f..0d4fd7ff 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "celeste-ai" -version = "0.2.5" +version = "0.2.6" description = "Open source, type-safe primitives for multi-modal AI. All capabilities, all providers, one interface" authors = [{name = "Kamilbenkirane", email = "kamil@withceleste.ai"}] readme = "README.md" @@ -33,13 +33,13 @@ Repository = "https://github.com/withceleste/celeste-python" Issues = "https://github.com/withceleste/celeste-python/issues" [project.optional-dependencies] -text-generation = ["celeste-text-generation>=0.2.1"] -image-generation = ["celeste-image-generation>=0.2.1"] +text-generation = ["celeste-text-generation>=0.2.2"] +image-generation = ["celeste-image-generation>=0.2.2"] image-intelligence = ["celeste-image-intelligence>=0.2.1"] speech-generation = ["celeste-speech-generation>=0.2.3"] all = [ - "celeste-text-generation>=0.2.1", - "celeste-image-generation>=0.2.1", + "celeste-text-generation>=0.2.2", + "celeste-image-generation>=0.2.2", "celeste-image-intelligence>=0.2.1", "celeste-speech-generation>=0.2.3", ]