65 lines
1.5 KiB
TOML
65 lines
1.5 KiB
TOML
[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 = "MIT"
|
|
authors = [
|
|
{name = "MockAPI Team"}
|
|
]
|
|
keywords = ["openapi", "mock", "api", "server", "generator", "testing"]
|
|
classifiers = [
|
|
"Development Status :: 3 - Alpha",
|
|
"Intended Audience :: Developers",
|
|
"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",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
dev = [
|
|
"pytest>=7.4.0",
|
|
"pytest-cov>=4.1.0",
|
|
"pytest-asyncio>=0.21.0",
|
|
"httpx>=0.25.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__.:",
|
|
] |