From 6c4b59ac4eb8837970f9b2aa7d2bac3817c19beb Mon Sep 17 00:00:00 2001 From: lmatz Date: Wed, 20 May 2026 16:20:45 +0800 Subject: [PATCH 1/3] ci: add Python compatibility checks --- .github/workflows/python-compat.yml | 34 +++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/python-compat.yml diff --git a/.github/workflows/python-compat.yml b/.github/workflows/python-compat.yml new file mode 100644 index 0000000..a78a8f7 --- /dev/null +++ b/.github/workflows/python-compat.yml @@ -0,0 +1,34 @@ +name: Python Compatibility + +on: + pull_request: + push: + branches: + - main + +jobs: + compile-and-import: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: ['3.8', '3.11', '3.12', '3.13'] + + steps: + - uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + + - name: Compile Python sources + run: python -m compileall -q src + + - name: Import main module + run: python -c "import sys; sys.path.insert(0, 'src'); import main" From e3a5b5b001b15d4cded1b0c34d6a911fb607174e Mon Sep 17 00:00:00 2001 From: lmatz Date: Wed, 20 May 2026 16:24:29 +0800 Subject: [PATCH 2/3] build: align Python support policy to 3.10+ --- .github/workflows/python-compat.yml | 2 +- README.md | 2 ++ pyproject.toml | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-compat.yml b/.github/workflows/python-compat.yml index a78a8f7..50348e9 100644 --- a/.github/workflows/python-compat.yml +++ b/.github/workflows/python-compat.yml @@ -12,7 +12,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ['3.8', '3.11', '3.12', '3.13'] + python-version: ['3.10', '3.11', '3.12', '3.13'] steps: - uses: actions/checkout@v4 diff --git a/README.md b/README.md index 48ce40e..5f51dd4 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,8 @@ docker pull risingwavelabs/risingwave-mcp-server:0.1.0 ### Option 2: From Source +Requires Python 3.10 or newer. + ```bash git clone https://github.com/risingwavelabs/risingwave-mcp.git cd risingwave-mcp diff --git a/pyproject.toml b/pyproject.toml index 79d75fa..6e0129d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ authors = ["Your Name "] license = "MIT" [tool.poetry.dependencies] -python = "^3.8" +python = "^3.10" fastmcp = "^0.1.0" risingwave-py = "^0.1.0" From f900e4319784bb4d013c7508d90fd78dc5b594ec Mon Sep 17 00:00:00 2001 From: lmatz Date: Wed, 20 May 2026 16:24:44 +0800 Subject: [PATCH 3/3] Revert "build: align Python support policy to 3.10+" This reverts commit e3a5b5b001b15d4cded1b0c34d6a911fb607174e. --- .github/workflows/python-compat.yml | 2 +- README.md | 2 -- pyproject.toml | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/python-compat.yml b/.github/workflows/python-compat.yml index 50348e9..a78a8f7 100644 --- a/.github/workflows/python-compat.yml +++ b/.github/workflows/python-compat.yml @@ -12,7 +12,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ['3.10', '3.11', '3.12', '3.13'] + python-version: ['3.8', '3.11', '3.12', '3.13'] steps: - uses: actions/checkout@v4 diff --git a/README.md b/README.md index 5f51dd4..48ce40e 100644 --- a/README.md +++ b/README.md @@ -25,8 +25,6 @@ docker pull risingwavelabs/risingwave-mcp-server:0.1.0 ### Option 2: From Source -Requires Python 3.10 or newer. - ```bash git clone https://github.com/risingwavelabs/risingwave-mcp.git cd risingwave-mcp diff --git a/pyproject.toml b/pyproject.toml index 6e0129d..79d75fa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ authors = ["Your Name "] license = "MIT" [tool.poetry.dependencies] -python = "^3.10" +python = "^3.8" fastmcp = "^0.1.0" risingwave-py = "^0.1.0"