feat: Complete PyPI Query MCP Server Implementation (#3)
Merge pull request implementing complete PyPI query MCP server with comprehensive features and CI/CD pipeline.
This commit is contained in:
parent
b1a1a6866d
commit
030b3a2607
33 changed files with 3238 additions and 246 deletions
|
|
@ -8,10 +8,26 @@ from nox_actions.utils import THIS_ROOT
|
|||
|
||||
|
||||
def pytest(session: nox.Session) -> None:
|
||||
"""Run pytest with coverage reporting."""
|
||||
session.install(".")
|
||||
session.install("pytest", "pytest_cov", "pytest_mock")
|
||||
session.install("pytest", "pytest-cov", "pytest-mock", "pytest-asyncio")
|
||||
test_root = os.path.join(THIS_ROOT, "tests")
|
||||
session.run("pytest", f"--cov={PACKAGE_NAME}",
|
||||
"--cov-report=xml:coverage.xml",
|
||||
"--cov-report=term-missing",
|
||||
f"--rootdir={test_root}",
|
||||
env={"PYTHONPATH": THIS_ROOT.as_posix()})
|
||||
|
||||
|
||||
def mypy(session: nox.Session) -> None:
|
||||
"""Run mypy type checking."""
|
||||
session.install(".")
|
||||
session.install("mypy", "types-requests")
|
||||
session.run("mypy", PACKAGE_NAME, "--ignore-missing-imports")
|
||||
|
||||
|
||||
def safety(session: nox.Session) -> None:
|
||||
"""Run safety security checks."""
|
||||
session.install(".")
|
||||
session.install("safety")
|
||||
session.run("safety", "check", "--json")
|
||||
|
|
|
|||
|
|
@ -10,6 +10,13 @@ from nox_actions.utils import PACKAGE_NAME
|
|||
from nox_actions.utils import THIS_ROOT
|
||||
|
||||
|
||||
def build(session: nox.Session) -> None:
|
||||
"""Build Python package distributions."""
|
||||
session.install("build", "twine")
|
||||
session.run("python", "-m", "build")
|
||||
session.run("twine", "check", "dist/*")
|
||||
|
||||
|
||||
@nox.session(name="build-exe", reuse_venv=True)
|
||||
def build_exe(session: nox.Session) -> None:
|
||||
parser = argparse.ArgumentParser(prog="nox -s build-exe --release")
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
from pathlib import Path
|
||||
|
||||
|
||||
PACKAGE_NAME = ""
|
||||
PACKAGE_NAME = "pypi_query_mcp"
|
||||
THIS_ROOT = Path(__file__).parent.parent
|
||||
PROJECT_ROOT = THIS_ROOT.parent
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue