diff --git a/README.md b/README.md index 87dc5cd..0360998 100644 --- a/README.md +++ b/README.md @@ -108,8 +108,8 @@ Before the first release, configure PyPI Trusted Publishing for this repository Release example: ```bash -git tag 0.1.0 -git push origin 0.1.0 +git tag 0.1.1 +git push origin 0.1.1 ``` Tags like `v0.1.0`, `0.1`, or `0.1.0rc1` will not publish. diff --git a/pyproject.toml b/pyproject.toml index 07898bf..793f700 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "hermes-github-app-plugin" -version = "0.1.0" +version = "0.1.1" description = "Hermes plugin for per-agent GitHub App identity, gh/git wrappers, and GitHub App-aware tools." readme = "README.md" requires-python = ">=3.10" @@ -26,7 +26,7 @@ dev = [ ] [project.entry-points."hermes_agent.plugins"] -github-app = "hermes_github_app_plugin:register" +github-app = "hermes_github_app_plugin" [project.scripts] gh-app = "hermes_github_app_plugin.cli:gh_app_main" diff --git a/tests/test_plugin.py b/tests/test_plugin.py index 1474908..8a39fc3 100644 --- a/tests/test_plugin.py +++ b/tests/test_plugin.py @@ -2,6 +2,7 @@ from __future__ import annotations +from importlib.metadata import entry_points from pathlib import Path from typing import Any @@ -33,3 +34,12 @@ def test_register_adds_tools_cli_and_skill() -> None: assert "github_app_create_pr" in ctx.tools assert ctx.cli_commands == ["hermes-github-app"] assert ctx.skills[0][0] == "github-app-workflow" + + +def test_plugin_entry_point_loads_module_with_register() -> None: + matches = [ep for ep in entry_points(group="hermes_agent.plugins") if ep.name == "github-app"] + + assert len(matches) == 1 + loaded = matches[0].load() + assert loaded.__name__ == "hermes_github_app_plugin" + assert loaded.register is register