Trim sdist from 80MB to 195KB, post-release 2026.02.25.1
Exclude docs-site/, artifacts/, orphaned planning docs, and Docker/CI files from sdist via hatch build config. Wheel was already correct (77KB). The previous sdist bundled node_modules (66MB of pagefind alone) because hatchling only reads root .gitignore and docs-site/.gitignore was invisible to it.
This commit is contained in:
parent
50fdfce73a
commit
28b12909ca
@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "mcesptool"
|
name = "mcesptool"
|
||||||
version = "2026.02.25"
|
version = "2026.02.25.1"
|
||||||
description = "FastMCP server for ESP32/ESP8266 development with esptool integration"
|
description = "FastMCP server for ESP32/ESP8266 development with esptool integration"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = ">=3.10"
|
requires-python = ">=3.10"
|
||||||
@ -78,6 +78,31 @@ Homepage = "https://git.supported.systems/MCP/mcesptool"
|
|||||||
Repository = "https://git.supported.systems/MCP/mcesptool"
|
Repository = "https://git.supported.systems/MCP/mcesptool"
|
||||||
Issues = "https://git.supported.systems/MCP/mcesptool/issues"
|
Issues = "https://git.supported.systems/MCP/mcesptool/issues"
|
||||||
|
|
||||||
|
[tool.hatch.build.targets.sdist]
|
||||||
|
exclude = [
|
||||||
|
"docs-site/",
|
||||||
|
"artifacts/",
|
||||||
|
".mcp.json",
|
||||||
|
"Dockerfile",
|
||||||
|
"docker-compose.yml",
|
||||||
|
"Makefile",
|
||||||
|
".env*",
|
||||||
|
"pytest.ini",
|
||||||
|
"API_DESIGN.md",
|
||||||
|
"BROADER_APPLICATIONS.md",
|
||||||
|
"FASTMCP_ESPTOOL_SERVER.md",
|
||||||
|
"IDF_MIDDLEWARE_INTEGRATION.md",
|
||||||
|
"IMPLEMENTATION_COMPLETE.md",
|
||||||
|
"IMPLEMENTATION_EXAMPLES.md",
|
||||||
|
"IMPLEMENTATION_ROADMAP.md",
|
||||||
|
"INTEGRATION_PATTERNS.md",
|
||||||
|
"MCP_LOGGER_INTEGRATION.md",
|
||||||
|
"MIDDLEWARE_ARCHITECTURE.md",
|
||||||
|
"MIDDLEWARE_DESIGN_PATTERNS.md",
|
||||||
|
"PRODUCTION_DEPLOYMENT.md",
|
||||||
|
"PROJECT_SETUP.md",
|
||||||
|
]
|
||||||
|
|
||||||
[tool.hatch.build.targets.wheel]
|
[tool.hatch.build.targets.wheel]
|
||||||
packages = ["src/mcesptool"]
|
packages = ["src/mcesptool"]
|
||||||
|
|
||||||
|
|||||||
@ -126,7 +126,7 @@ class ESPToolServer:
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
"server_name": "MCP ESPTool Server",
|
"server_name": "MCP ESPTool Server",
|
||||||
"version": "2026.02.25",
|
"version": "2026.02.25.1",
|
||||||
"uptime_seconds": round(uptime, 2),
|
"uptime_seconds": round(uptime, 2),
|
||||||
"configuration": self.config.to_dict(),
|
"configuration": self.config.to_dict(),
|
||||||
"components": list(self.components.keys()),
|
"components": list(self.components.keys()),
|
||||||
@ -404,7 +404,7 @@ class ESPToolServer:
|
|||||||
@click.command()
|
@click.command()
|
||||||
@click.option("--debug", "-d", is_flag=True, help="Enable debug logging")
|
@click.option("--debug", "-d", is_flag=True, help="Enable debug logging")
|
||||||
@click.option("--production", "-p", is_flag=True, help="Run in production mode")
|
@click.option("--production", "-p", is_flag=True, help="Run in production mode")
|
||||||
@click.version_option(version="2026.02.25")
|
@click.version_option(version="2026.02.25.1")
|
||||||
def main(debug: bool, production: bool) -> None:
|
def main(debug: bool, production: bool) -> None:
|
||||||
"""
|
"""
|
||||||
FastMCP ESP Development Server
|
FastMCP ESP Development Server
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user