Fix OpenAPI template packaging, add static file tests

- Include ext/openapi/docs/*.html in package_data so OpenAPI docs
  themes (swagger_ui, redoc, rapidoc, elements) ship with the wheel.
  Fixes #583.
- Add tests for static file serving and index.html fallback. Fixes #563.
- Bump version to 3.4.1.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-22 21:44:02 -04:00
parent 4f02016ed6
commit 724b769c9e
3 changed files with 48 additions and 2 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ Issues = "https://github.com/kennethreitz/responder/issues"
version = {attr = "responder.__version__.__version__"}
[tool.setuptools.package-data]
responder = ["py.typed"]
responder = ["py.typed", "ext/openapi/docs/*.html"]
[tool.setuptools.packages.find]
exclude = ["tests"]