Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions python/copilot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
JSON-RPC based SDK for programmatic control of GitHub Copilot CLI
"""

from importlib.metadata import version, PackageNotFoundError

try:
__version__ = version("github-copilot-sdk")
except PackageNotFoundError:
__version__ = "0.3.0"

from .client import (
CopilotClient,
ExternalServerConfig,
Expand Down Expand Up @@ -36,8 +43,6 @@
)
from .tools import convert_mcp_call_tool_result, define_tool

__version__ = "0.1.0"

__all__ = [
"CommandContext",
"CommandDefinition",
Expand Down
2 changes: 1 addition & 1 deletion python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "github-copilot-sdk"
version = "0.1.0"
version = "0.3.0"
description = "Python SDK for GitHub Copilot CLI"
readme = "README.md"
requires-python = ">=3.11"
Expand Down