From 0b3c38a99121c4aaa41a664c1138e06194f9a847 Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Thu, 29 Jan 2026 13:53:32 +0000 Subject: [PATCH] Initial upload: API Mock CLI v0.1.0 --- pyproject.toml | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..1af8944 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,64 @@ +[build-system] +requires = ["setuptools>=61.0"] +build-backend = "setuptools.build_meta" + +[project] +name = "api-mock-cli" +version = "0.1.0" +description = "A CLI tool that converts example API responses into shareable local mock servers" +readme = "README.md" +requires-python = ">=3.9" +license = {text = "MIT"} +authors = [ + {name = "API Mock CLI Team"} +] +keywords = ["cli", "mock", "api", "testing", "fastapi"] +classifiers = [ + "Development Status :: 4 - Beta", + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", +] +dependencies = [ + "fastapi==0.104.1", + "click==8.1.7", + "uvicorn==0.24.0", + "pydantic==2.5.2", + "pyngrok==7.5.0", + "jinja2==3.1.2", + "pyyaml==6.0.1", + "python-json-logger==2.0.7", + "requests==2.31.0", + "httpx==0.25.2", +] + +[project.optional-dependencies] +dev = [ + "pytest>=7.4.0", + "pytest-cov>=4.1.0", + "pytest-asyncio>=0.21.0", + "httpx>=0.25.2", +] + +[project.scripts] +api-mock = "src.cli.main:main" + +[tool.setuptools.packages.find] +where = ["."] + +[tool.pytest.ini_options] +testpaths = ["tests"] +python_files = ["test_*.py"] +python_functions = ["test_*"] +asyncio_mode = "auto" + +[tool.coverage.run] +source = ["src"] +omit = ["tests/*"] + +[tool.coverage.report] +exclude_lines = ["pragma: no cover", "def __repr__", "raise AssertionError", "raise NotImplementedError"]