chore: update Python version to 3.10 and bump package version to 0.1.3 in pyproject.toml and server.py; modify GitHub Actions workflow to use hatch for building (#29)

This commit is contained in:
Haris
2025-05-20 09:35:30 +05:00
committed by GitHub
parent a8e4258aaf
commit 7f8c2be2f4
5 changed files with 6 additions and 9 deletions

View File

@ -22,13 +22,13 @@ jobs:
with: with:
python-version: "3.x" python-version: "3.x"
- name: Install build dependencies - name: Install hatch dependencies
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install build pip install hatch
- name: Build package - name: Build package
run: python -m build run: hatch build
- name: Publish to PyPI - name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1 uses: pypa/gh-action-pypi-publish@release/v1

View File

@ -1 +1 @@
3.12 3.10

View File

@ -1,6 +1,6 @@
[project] [project]
name = "excel-mcp-server" name = "excel-mcp-server"
version = "0.1.2" version = "0.1.3"
description = "Excel MCP Server for manipulating Excel files" description = "Excel MCP Server for manipulating Excel files"
readme = "README.md" readme = "README.md"
requires-python = ">=3.10" requires-python = ">=3.10"

View File

@ -1,6 +1,5 @@
import asyncio import asyncio
import typer import typer
from typing import Optional
from .server import run_sse, run_stdio from .server import run_sse, run_stdio

View File

@ -1,5 +1,4 @@
import logging import logging
import sys
import os import os
from typing import Any, List, Dict 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__)))) 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") LOG_FILE = os.path.join(ROOT_DIR, "excel-mcp.log")
# Initialize EXCEL_FILES_PATH variable without assigning a value # Initialize EXCEL_FILES_PATH variable without assigning a value
EXCEL_FILES_PATH = None EXCEL_FILES_PATH = None
@ -62,7 +60,7 @@ logger = logging.getLogger("excel-mcp")
# Initialize FastMCP server # Initialize FastMCP server
mcp = FastMCP( mcp = FastMCP(
"excel-mcp", "excel-mcp",
version="0.1.2", version="0.1.3",
description="Excel MCP Server for manipulating Excel files", description="Excel MCP Server for manipulating Excel files",
dependencies=["openpyxl>=3.1.2"], dependencies=["openpyxl>=3.1.2"],
env_vars={ env_vars={