Files
aci-sim/pyproject.toml
T
taodengandClaude Fable 5 1d29a2f289 feat: aci-sim query helper + onboarding fixes (v0.17.0)
Clean-room README test found a newcomer hits failures in the first 5 min —
all doc/script, not sim bugs. Fixes:
- scripts/run.sh: use ./.venv/bin/python (was bare `python` → ModuleNotFoundError:
  uvicorn unless the venv was activated; now matches sandbox-up.sh).
- NEW `aci-sim query CLASS [--dn/--host/--json]`: stdlib aaaLogin→cookie→query
  helper so newcomers don't hand-roll auth cookies (the old README smoke test
  `curl class/fabricNode.json` had no auth → returned an APIC error envelope).
- README: 60-second quickstart + embedded topology screenshot (docs/images/
  topology.png), port-mode leads with `aci-sim run`, smoke test uses `aci-sim
  query`, install notes git+https is package-only.

900 tests pass (+12 for aci-sim query).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-05 22:51:55 +10:00

69 lines
2.1 KiB
TOML

[project]
name = "aci-sim"
version = "0.17.0"
description = "Faithful REST simulator of a 2-site Cisco ACI fabric (per-site APIC + ND/NDO)"
readme = "README.md"
license = "MIT"
authors = [
{ name = "aci-sim contributors" },
]
requires-python = ">=3.11"
classifiers = [
# No "License :: OSI Approved :: MIT License" classifier: the SPDX
# `license = "MIT"` field above supersedes license classifiers (PEP 639)
# and modern setuptools rejects having both.
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: System :: Networking",
"Topic :: Software Development :: Testing",
"Typing :: Typed",
]
# Runtime dependencies are declared statically here (NOT `dynamic`) so that a
# plain `pip install aci-sim` / `pip install .` pulls them in. requirements.txt
# is kept as a dev convenience (it also lists the test-only extras below).
dependencies = [
"fastapi>=0.110",
"uvicorn[standard]>=0.29",
"pydantic>=2.6",
"pyyaml>=6.0",
]
[project.optional-dependencies]
# Test/dev-only — not needed to run the simulator. `pip install -e '.[dev]'`.
dev = [
"httpx>=0.27",
"pytest>=8.0",
"pytest-asyncio>=0.23",
]
[project.urls]
Homepage = "https://github.com/dtzp555-max/aci-sim"
Repository = "https://github.com/dtzp555-max/aci-sim"
Changelog = "https://github.com/dtzp555-max/aci-sim/blob/main/CHANGELOG.md"
[project.scripts]
aci-sim = "aci_sim.cli:main"
[tool.setuptools.packages.find]
# Auto-discover ALL subpackages (aci_sim.topology/build/rest_aci/ndo/
# mit/runtime/query/control/...) — a bare `packages = ["aci_sim"]` would
# ship only the top-level module and omit every subpackage.
include = ["aci_sim*"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B"]
ignore = ["E501"]