From c940c26dd74e63f8f1a4d835db90dfbcaf2cedcf Mon Sep 17 00:00:00 2001 From: Caglar Demir Date: Thu, 30 Apr 2026 13:15:25 +0200 Subject: [PATCH 1/2] fix(python): bump __version__ to 0.3.0 The v0.3.0 release was tagged on April 24, 2026 but the Python package version string was not updated and still reads 0.1.0. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- python/copilot/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/copilot/__init__.py b/python/copilot/__init__.py index ad9e28803..3913fb154 100644 --- a/python/copilot/__init__.py +++ b/python/copilot/__init__.py @@ -36,7 +36,7 @@ ) from .tools import convert_mcp_call_tool_result, define_tool -__version__ = "0.1.0" +__version__ = "0.3.0" __all__ = [ "CommandContext", From 3cd44fb2fe6bccac59cf6263829f7cd632117e34 Mon Sep 17 00:00:00 2001 From: Caglar Demir Date: Thu, 30 Apr 2026 13:59:21 +0200 Subject: [PATCH 2/2] fix(python): bump pyproject.toml to 0.3.0 and derive __version__ from metadata - Update project.version in pyproject.toml from 0.1.0 to 0.3.0 so the built/distributed wheel reports the correct version. - Derive __version__ from importlib.metadata.version() so pyproject.toml is the single source of truth; falls back to '0.3.0' when the package is not installed (e.g. during development without an editable install). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- python/copilot/__init__.py | 9 +++++++-- python/pyproject.toml | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/python/copilot/__init__.py b/python/copilot/__init__.py index 3913fb154..0ce667cb3 100644 --- a/python/copilot/__init__.py +++ b/python/copilot/__init__.py @@ -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, @@ -36,8 +43,6 @@ ) from .tools import convert_mcp_call_tool_result, define_tool -__version__ = "0.3.0" - __all__ = [ "CommandContext", "CommandDefinition", diff --git a/python/pyproject.toml b/python/pyproject.toml index 6e805c250..8e7a0c212 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -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"