From fa7211ecf3c2fcd7174507a92f354f864287ee49 Mon Sep 17 00:00:00 2001 From: "filip.chytil" Date: Wed, 28 Jan 2026 21:07:32 +0100 Subject: [PATCH 1/3] Add PyPI publish workflow --- .github/workflows/publish-pypi.yml | 32 ++++++++++++++++++++++++++++++ pyproject.toml | 22 +++++++++++++++++--- 2 files changed, 51 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/publish-pypi.yml diff --git a/.github/workflows/publish-pypi.yml b/.github/workflows/publish-pypi.yml new file mode 100644 index 0000000..aec9d07 --- /dev/null +++ b/.github/workflows/publish-pypi.yml @@ -0,0 +1,32 @@ +name: Publish to PyPI + +on: + push: + tags: + - "v*" + +permissions: + contents: read + +jobs: + publish: + name: Publish to PyPI + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up uv + uses: astral-sh/setup-uv@v7 + + - name: Set up Python + run: uv python install 3.12 + + - name: Build all packages + run: uv build --all-packages + + - name: Publish to PyPI + env: + UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }} + run: uv publish diff --git a/pyproject.toml b/pyproject.toml index 163b1d5..85a2903 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,6 +8,17 @@ license = "MIT" readme = "README.md" requires-python = "==3.12.*" +keywords = ["ai", "agents", "llm", "openai", "anthropic", "agentic", "framework"] + +classifiers = [ + "Development Status :: 3 - Alpha", + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "Programming Language :: Python :: 3.12", + "Topic :: Software Development :: Libraries :: Python Modules", + "Topic :: Scientific/Engineering :: Artificial Intelligence", +] + dependencies = [ "async-lru>=2.0.5", "jinja2>=3.1.6", @@ -19,9 +30,10 @@ dependencies = [ "typer>=0.19.2", ] -[build-system] -requires = ["hatchling"] -build-backend = "hatchling.build" +[project.urls] +Homepage = "https://github.com/filchy/tinygent" +Repository = "https://github.com/filchy/tinygent" +Issues = "https://github.com/filchy/tinygent/issues" [project.optional-dependencies] dev = [ @@ -55,6 +67,10 @@ tiny_tools = "tinygent.tools.register" tiny_memory = "tinygent.memory.register" tiny_crossencoders = "tinygent.cross_encoders.register" +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build" + [tool.uv] package = true From 0fe1df946aa1c74ffbf1fa4c6e544c34a14eee64 Mon Sep 17 00:00:00 2001 From: "filip.chytil" Date: Wed, 28 Jan 2026 21:15:33 +0100 Subject: [PATCH 2/3] Rename packages from tiny-* to tinygent-* to avoid PyPI conflicts --- packages/tiny_anthropic/pyproject.toml | 4 +-- packages/tiny_brave/pyproject.toml | 4 +-- packages/tiny_chat/pyproject.toml | 4 +-- packages/tiny_gemini/pyproject.toml | 4 +-- packages/tiny_graph/pyproject.toml | 4 +-- packages/tiny_mistralai/pyproject.toml | 4 +-- packages/tiny_openai/pyproject.toml | 4 +-- packages/tiny_voyageai/pyproject.toml | 4 +-- pyproject.toml | 34 +++++++++++++------------- 9 files changed, 33 insertions(+), 33 deletions(-) diff --git a/packages/tiny_anthropic/pyproject.toml b/packages/tiny_anthropic/pyproject.toml index af9fefb..685ed18 100644 --- a/packages/tiny_anthropic/pyproject.toml +++ b/packages/tiny_anthropic/pyproject.toml @@ -3,8 +3,8 @@ requires = ["hatchling"] build-backend = "hatchling.build" [project] -name = "tiny-anthropic" -version = "0.1.0" +name = "tinygent-anthropic" +version = "0.1.1" dependencies = [ "anthropic>=0.75.0", "tinygent", diff --git a/packages/tiny_brave/pyproject.toml b/packages/tiny_brave/pyproject.toml index 0fb138a..572d56c 100644 --- a/packages/tiny_brave/pyproject.toml +++ b/packages/tiny_brave/pyproject.toml @@ -3,8 +3,8 @@ requires = ["hatchling"] build-backend = "hatchling.build" [project] -name = "tiny-brave" -version = "0.1.0" +name = "tinygent-brave" +version = "0.1.1" dependencies = [ "httpx>=0.28.1", "pydantic>=2.11.7", diff --git a/packages/tiny_chat/pyproject.toml b/packages/tiny_chat/pyproject.toml index 9facf70..d04e779 100644 --- a/packages/tiny_chat/pyproject.toml +++ b/packages/tiny_chat/pyproject.toml @@ -3,8 +3,8 @@ requires = ["hatchling"] build-backend = "hatchling.build" [project] -name = "tiny-chat" -version = "0.1.0" +name = "tinygent-chat" +version = "0.1.1" dependencies = [ "fastapi>=0.120.2", "hatchling>=1.28.0", diff --git a/packages/tiny_gemini/pyproject.toml b/packages/tiny_gemini/pyproject.toml index 6cabf4d..c017c3d 100644 --- a/packages/tiny_gemini/pyproject.toml +++ b/packages/tiny_gemini/pyproject.toml @@ -3,8 +3,8 @@ requires = ["hatchling"] build-backend = "hatchling.build" [project] -name = "tiny-gemini" -version = "0.1.0" +name = "tinygent-gemini" +version = "0.1.1" dependencies = [ "google-genai>=1.49.0", "tinygent", diff --git a/packages/tiny_graph/pyproject.toml b/packages/tiny_graph/pyproject.toml index 8c8b650..c6b7e1b 100644 --- a/packages/tiny_graph/pyproject.toml +++ b/packages/tiny_graph/pyproject.toml @@ -3,8 +3,8 @@ requires = ["hatchling"] build-backend = "hatchling.build" [project] -name = "tiny-graph" -version = "0.1.0" +name = "tinygent-graph" +version = "0.1.1" dependencies = [ "neo4j>=6.0.3", "tinygent", diff --git a/packages/tiny_mistralai/pyproject.toml b/packages/tiny_mistralai/pyproject.toml index daf718e..06f4aa3 100644 --- a/packages/tiny_mistralai/pyproject.toml +++ b/packages/tiny_mistralai/pyproject.toml @@ -3,8 +3,8 @@ requires = ["hatchling"] build-backend = "hatchling.build" [project] -name = "tiny-mistralai" -version = "0.1.0" +name = "tinygent-mistralai" +version = "0.1.1" dependencies = [ "mistral-common>=1.8.5", "mistralai>=1.9.11", diff --git a/packages/tiny_openai/pyproject.toml b/packages/tiny_openai/pyproject.toml index b599452..3aef366 100644 --- a/packages/tiny_openai/pyproject.toml +++ b/packages/tiny_openai/pyproject.toml @@ -3,8 +3,8 @@ requires = ["hatchling"] build-backend = "hatchling.build" [project] -name = "tiny-openai" -version = "0.1.0" +name = "tinygent-openai" +version = "0.1.1" dependencies = [ "langchain-core>=0.3.74", "openai>=1.101.0", diff --git a/packages/tiny_voyageai/pyproject.toml b/packages/tiny_voyageai/pyproject.toml index abb970d..8c5b058 100644 --- a/packages/tiny_voyageai/pyproject.toml +++ b/packages/tiny_voyageai/pyproject.toml @@ -3,8 +3,8 @@ requires = ["hatchling"] build-backend = "hatchling.build" [project] -name = "tiny-voyageai" -version = "0.1.0" +name = "tinygent-voyageai" +version = "0.1.1" dependencies = [ "tinygent", "voyageai>=0.3.7", diff --git a/pyproject.toml b/pyproject.toml index 85a2903..888482d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "tinygent" -version = "0.1.0" +version = "0.1.1" description = "Tiny agentic framework for building AI agents which can do more than tiny just tasks." authors = [{ name = "Filip Chytil" }] @@ -45,14 +45,14 @@ docs = [ "mkdocs-material>=9.7.1", "mkdocstrings[python]>=1.0.2", ] -brave = ["tiny-brave"] -anthropic = ["tiny-anthropic"] -openai = ["tiny-openai"] -mistralai = ["tiny-mistralai"] -gemini = ["tiny-gemini"] -chat = ["tiny-chat"] -graph = ["tiny-graph"] -voyageai = ["tiny-voyageai"] +brave = ["tinygent-brave"] +anthropic = ["tinygent-anthropic"] +openai = ["tinygent-openai"] +mistralai = ["tinygent-mistralai"] +gemini = ["tinygent-gemini"] +chat = ["tinygent-chat"] +graph = ["tinygent-graph"] +voyageai = ["tinygent-voyageai"] [project.scripts] tiny = "tinygent.cli.main:run_cli" @@ -78,14 +78,14 @@ package = true members = ["packages/*", "."] [tool.uv.sources] -tiny-brave = { workspace = true } -tiny-anthropic = { workspace = true } -tiny-openai = { workspace = true } -tiny-mistralai = { workspace = true } -tiny-gemini = { workspace = true } -tiny-chat = { workspace = true } -tiny-graph = { workspace = true } -tiny-voyageai = { workspace = true } +tinygent-brave = { workspace = true } +tinygent-anthropic = { workspace = true } +tinygent-openai = { workspace = true } +tinygent-mistralai = { workspace = true } +tinygent-gemini = { workspace = true } +tinygent-chat = { workspace = true } +tinygent-graph = { workspace = true } +tinygent-voyageai = { workspace = true } [tool.hatch.build.targets.wheel] packages = ["tinygent"] From 281e8581965cbb32bb7117d4a649bbfcf1879c02 Mon Sep 17 00:00:00 2001 From: "filip.chytil" Date: Wed, 28 Jan 2026 21:21:44 +0100 Subject: [PATCH 3/3] Change PyPI publish trigger from tags to master branch --- .github/workflows/publish-pypi.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-pypi.yml b/.github/workflows/publish-pypi.yml index aec9d07..b0f6cf8 100644 --- a/.github/workflows/publish-pypi.yml +++ b/.github/workflows/publish-pypi.yml @@ -2,8 +2,8 @@ name: Publish to PyPI on: push: - tags: - - "v*" + branches: + - master permissions: contents: read