diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 384a5f7..acacdc5 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -22,13 +22,13 @@ jobs: with: python-version: "3.x" - - name: Install build dependencies + - name: Install hatch dependencies run: | python -m pip install --upgrade pip - pip install build + pip install hatch - name: Build package - run: python -m build + run: hatch build - name: Publish to PyPI uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/.python-version b/.python-version index fdcfcfd..7c7a975 100644 --- a/.python-version +++ b/.python-version @@ -1 +1 @@ -3.12 \ No newline at end of file +3.10 \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index a941b12..1ade63a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "excel-mcp-server" -version = "0.1.2" +version = "0.1.3" description = "Excel MCP Server for manipulating Excel files" readme = "README.md" requires-python = ">=3.10" diff --git a/src/excel_mcp/__main__.py b/src/excel_mcp/__main__.py index 61125cf..75d97fc 100644 --- a/src/excel_mcp/__main__.py +++ b/src/excel_mcp/__main__.py @@ -1,6 +1,5 @@ import asyncio import typer -from typing import Optional from .server import run_sse, run_stdio diff --git a/src/excel_mcp/server.py b/src/excel_mcp/server.py index fe9e3cc..86a16ec 100644 --- a/src/excel_mcp/server.py +++ b/src/excel_mcp/server.py @@ -1,5 +1,4 @@ import logging -import sys import os from typing import Any, List, Dict @@ -44,7 +43,6 @@ from excel_mcp.sheet import ( ROOT_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) LOG_FILE = os.path.join(ROOT_DIR, "excel-mcp.log") - # Initialize EXCEL_FILES_PATH variable without assigning a value EXCEL_FILES_PATH = None @@ -62,7 +60,7 @@ logger = logging.getLogger("excel-mcp") # Initialize FastMCP server mcp = FastMCP( "excel-mcp", - version="0.1.2", + version="0.1.3", description="Excel MCP Server for manipulating Excel files", dependencies=["openpyxl>=3.1.2"], env_vars={