From d866184d864871d5de60e9e0379a67000add0571 Mon Sep 17 00:00:00 2001 From: Lama Date: Tue, 8 Jul 2025 19:49:17 -0400 Subject: [PATCH] Add repo to pip package --- .gitignore | 5 +++++ MANIFEST.in | 6 ++++++ kicad_mcp/__init__.py | 8 ++++++++ pyproject.toml | 43 +++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 62 insertions(+) create mode 100644 MANIFEST.in create mode 100644 pyproject.toml diff --git a/.gitignore b/.gitignore index c38ce72..622f528 100644 --- a/.gitignore +++ b/.gitignore @@ -18,6 +18,11 @@ __pycache__/ dist/ build/ *.egg-info/ +*.egg +*.whl + +# PyPI +.pypirc # Unit test / coverage reports htmlcov/ diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..37e6bc4 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,6 @@ +include README.md +include LICENSE +include requirements.txt +include .env.example +recursive-include kicad_mcp *.py +recursive-include docs *.md diff --git a/kicad_mcp/__init__.py b/kicad_mcp/__init__.py index 8a17880..25fc06d 100644 --- a/kicad_mcp/__init__.py +++ b/kicad_mcp/__init__.py @@ -1,4 +1,12 @@ """ KiCad MCP Server - A Model Context Protocol server for KiCad. """ +from .server import * +from .config import * +from .context import * + __version__ = "0.1.0" +__author__ = "Lama Al Rajih" +__description__ = "Model Context Protocol server for KiCad on Mac, Windows, and Linux" + +__all__ = [] # TODO: need to finish this diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..97fb446 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,43 @@ +[build-system] +requires = ["setuptools>=61.0", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "kicad-mcp" +version = "0.1.0" +authors = [ + { name="Lama Al Rajih", email="your-email@example.com" }, +] +description = "Model Context Protocol server for KiCad on Mac, Windows, and Linux" +readme = "README.md" +requires-python = ">=3.10" +classifiers = [ + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", + "Development Status :: 4 - Beta", + "Intended Audience :: Developers", + "Topic :: Software Development :: Libraries :: Python Modules", + "Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)", +] +dependencies = [ + "mcp[cli]", + "pandas", +] +keywords = ["kicad", "mcp", "model-context-protocol", "eda", "pcb"] + +[project.urls] +"Homepage" = "https://github.com/lamaalrajih/kicad-mcp" +"Bug Tracker" = "https://github.com/lamaalrajih/kicad-mcp/issues" +"Documentation" = "https://github.com/lamaalrajih/kicad-mcp#readme" + +[project.scripts] +kicad-mcp = "kicad_mcp.main:main" + +[tool.setuptools.packages.find] +where = ["."] +include = ["kicad_mcp*"] +exclude = ["tests*", "docs*"]