From 61f2f508af950c51f3c7d7457f63c48f2d8f2d70 Mon Sep 17 00:00:00 2001 From: observerw Date: Fri, 9 Jan 2026 01:55:08 +0800 Subject: [PATCH 1/2] fix: restrict installation to POSIX systems only Add platform restrictions to prevent installation on Windows due to current implementation limitations. Windows support is planned for the next version. Changes: - Add OS classifiers for Linux and macOS in pyproject.toml - Add fake dependency that fails on Windows - Add warning callout in README about Windows not being supported --- README.md | 5 ++++- pyproject.toml | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5869e93..4566f26 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,9 @@ [![Python](https://img.shields.io/badge/Python-3.13+-blue.svg)](https://python.org) [![License](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE) +> **⚠️ Windows Temporary Not Supported** +> Due to implementation details, `lsp-cli` does not currently support Windows. Support for Windows will be added in the next version. + A powerful command-line interface for the [**Language Server Agent Protocol (LSAP)**](https://github.com/lsp-client/LSAP). `lsp-cli` provides a bridge between traditional [Language Server Protocol (LSP)](https://microsoft.github.io/language-server-protocol/) servers and high-level agentic workflows, offering structured data access and a robust background server management system. Built on top of [lsp-client](https://github.com/lsp-client/lsp-client) and [LSAP](https://github.com/lsp-client/LSAP), this tool is designed for developers and AI agents who need reliable, fast, and structured access to language intelligence. @@ -31,7 +34,7 @@ Built on top of [lsp-client](https://github.com/lsp-client/lsp-client) and [LSAP More supported languages coming very soon! ```bash -uv tool install lsp-cli +uv tool install --python 3.13 lsp-cli ``` ## Quick Start diff --git a/pyproject.toml b/pyproject.toml index 69c8332..64b0112 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,6 +10,8 @@ classifiers = [ "Programming Language :: Python", "Programming Language :: Python :: 3.13", "License :: OSI Approved :: MIT License", + "Operating System :: POSIX :: Linux", + "Operating System :: MacOS", ] dependencies = [ "anyio>=4.12.0", @@ -27,6 +29,7 @@ dependencies = [ "tenacity>=9.1.2", "lsp-client>=0.3.0", "lsap-sdk>=0.1.0", + "lsp-cli-requires-posix-system; platform_system == 'Windows'", ] [project.scripts] From 934475a84effb600c9dc7183820c93c87095ab0f Mon Sep 17 00:00:00 2001 From: observerw Date: Fri, 9 Jan 2026 20:42:15 +0800 Subject: [PATCH 2/2] fix: update CI to Python 3.13 and remove broken dependency --- .github/workflows/ci.yml | 2 +- .github/workflows/release-beta.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- pyproject.toml | 1 - 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0b2d65e..f3b3bda 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,7 +29,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.12"] + python-version: ["3.13"] os: [ubuntu-latest] steps: diff --git a/.github/workflows/release-beta.yml b/.github/workflows/release-beta.yml index 4d60977..f116800 100644 --- a/.github/workflows/release-beta.yml +++ b/.github/workflows/release-beta.yml @@ -29,7 +29,7 @@ jobs: - name: Install uv uses: astral-sh/setup-uv@v7 with: - python-version: "3.12" + python-version: "3.13" enable-cache: true - name: Check version @@ -69,7 +69,7 @@ jobs: - name: Install uv and set Python version uses: astral-sh/setup-uv@v7 with: - python-version: "3.12" + python-version: "3.13" enable-cache: true - name: Build sdist and wheel diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1977443..1a385d7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,7 +26,7 @@ jobs: - name: Install uv uses: astral-sh/setup-uv@v7 with: - python-version: "3.12" + python-version: "3.13" enable-cache: true - name: Check version @@ -69,7 +69,7 @@ jobs: - name: Install uv and set Python version uses: astral-sh/setup-uv@v7 with: - python-version: "3.12" + python-version: "3.13" enable-cache: true - name: Build sdist and wheel diff --git a/pyproject.toml b/pyproject.toml index 64b0112..f937385 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,7 +29,6 @@ dependencies = [ "tenacity>=9.1.2", "lsp-client>=0.3.0", "lsap-sdk>=0.1.0", - "lsp-cli-requires-posix-system; platform_system == 'Windows'", ] [project.scripts]