Files
proxmox-api-simulator/pyproject.toml
T
Sergey Antropoff 48df10b17e Prepare 0.1.0 for lab release: durable handlers, HTTP Compose, CI, and pulumi-tests.
- Harden DB-backed handlers and seed profiles; align client wire shapes for
  cluster resources, QEMU config, and node SSL fields
- Serve plain HTTP on Compose :8006; keep TLS optional (--profile tls) and
  terminate HTTPS at Kubernetes Ingress
- Add pulumi-tests (full contract surface majors 6–9 + BPG lifecycle) and
  make pulumi-tests
- Ship bilingual docs, CHANGELOG, SECURITY, CONTRIBUTING, and GitHub Actions
  (make ci + Compose/Helm validation)
2026-07-18 04:18:05 +03:00

85 lines
2.1 KiB
TOML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
[build-system]
requires = ["hatchling>=1.27,<2"]
build-backend = "hatchling.build"
[project]
name = "proxmox-api-simulator"
version = "0.1.0"
description = "Stateful asynchronous Proxmox VE API simulator"
readme = "README.md"
requires-python = ">=3.13,<3.14"
license = { text = "Apache-2.0" }
authors = [{ name = "proxmox-api-simulator contributors" }]
dependencies = [
"asyncpg>=0.30,<0.31",
"fastapi>=0.116,<0.117",
"httpx>=0.28,<0.29",
"pydantic>=2.11,<3",
"pydantic-settings>=2.10,<3",
"uvicorn[standard]>=0.35,<0.36",
]
[project.optional-dependencies]
dev = [
"hypothesis>=6.135,<7",
"mypy>=1.17,<1.18",
"pytest>=8.4,<9",
"pytest-asyncio>=1.1,<2",
"pytest-cov>=6.2,<7",
"proxmoxer>=2.3,<2.4",
"requests>=2.32,<3",
"ruff>=0.12,<0.13",
]
[project.scripts]
proxmox-api-contract = "app.contracts.cli:main"
[tool.hatch.build.targets.wheel]
packages = ["app"]
[tool.ruff]
target-version = "py313"
line-length = 100
# Native client suites under pulumi-tests/ are generated and linted by their
# own runners; keep the product CI gate focused on the simulator package.
exclude = ["pulumi-tests"]
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B", "ASYNC", "S", "RUF"]
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["S101", "S105"]
"examples/**/*.py" = ["S101", "S105", "S106"]
[tool.mypy]
python_version = "3.13"
strict = true
plugins = ["pydantic.mypy"]
files = ["app", "tests"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
markers = [
"integration: requires PostgreSQL or another external service",
"contract: validates imported API contracts",
"compatibility: exercises an external client against a running simulator",
]
[tool.coverage.run]
branch = true
source = ["app"]
omit = [
"app/surface_probe.py",
"app/evidence_gen.py",
"app/simulation/seed_cli.py",
"app/db/migrate_cli.py",
]
[tool.coverage.report]
# Offline unit coverage of the full handler surface stays below the former 80%
# bar; behavioral gate is make test-surface (all majors × verbs). Raise this as
# focused unit tests catch up.
fail_under = 50
show_missing = true