Initial upload: mockapi - OpenAPI Mock Server Generator

This commit is contained in:
2026-03-22 21:06:18 +00:00
parent 5d9d58253c
commit 67ca25ff32

69
pyproject.toml Normal file
View File

@@ -0,0 +1,69 @@
[build-system]
requires = ["setuptools>=68.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "mockapi"
version = "0.1.0"
description = "OpenAPI Mock Server Generator - Generate functional mock APIs from OpenAPI 3.x specs"
readme = "README.md"
requires-python = ">=3.10"
license = {text = "MIT"}
authors = [
{name = "MockAPI Team"}
]
keywords = ["openapi", "mock", "api", "server", "generator", "testing"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"click>=8.1.7",
"connexion>=3.0.0",
"openapi-spec-validator>=0.8.0",
"jsonschema>=4.20.0",
"faker>=20.1.0",
"uvicorn>=0.24.0",
"watchdog>=3.0.0",
"pyyaml>=6.0.1",
"starlette>=0.27.0",
]
[project.optional-dependencies]
dev = [
"pytest>=7.4.0",
"pytest-cov>=4.1.0",
"pytest-asyncio>=0.21.0",
"httpx>=0.25.0",
"ruff>=0.1.0",
"mypy>=1.7.0",
]
[project.scripts]
mockapi = "mockapi.cli.main:cli"
[tool.setuptools.packages.find]
where = ["src"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_functions = ["test_*"]
addopts = "-v"
[tool.coverage.run]
source = ["src/mockapi"]
branch = true
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise NotImplementedError",
"if __name__ == .__main__.:",
]