fix(python): ship mirror inline type metadata

This commit is contained in:
ZacharyZhang-NY committed 2026-07-19 16:00:45 -04:00
1 parent 54a5778ec4
commit 08340725ec
4 files changed
+13

No files matched your search

+1
View File
@@ -49,6 +49,7 @@ This repository publishes the open-source server, console, integration catalog,
- Propagate unexpected errors to the CLI or request boundary.
- Keep technical claims executable through tests or generated validation.
- Keep the mirrored Python package, distribution, and CLI version in `sdks/python/elydora/_version.py`; Setuptools metadata must read that literal dynamically.
- Ship `sdks/python/elydora/py.typed` in every mirrored wheel and verify public annotations from an installed-wheel consumer.
- Interpret Python SDK `max_retries` as retries after the initial attempt and reject negative or non-integer values.
- Retry RFC-idempotent Python SDK requests automatically; retry non-idempotent requests only when the transport proves the request was never sent.
- Honor valid `Retry-After` delay-seconds and HTTP-date values, and release retryable responses before sleeping.
+1
View File
@@ -0,0 +1 @@
+3
View File
@@ -42,5 +42,8 @@ dev = [
[tool.setuptools.packages.find]
include = ["elydora*"]
[tool.setuptools.package-data]
elydora = ["py.typed"]
[tool.setuptools.dynamic]
version = {attr = "elydora._version.__version__"}
@@ -0,0 +1,8 @@
from importlib.resources import files
def test_package_declares_inline_type_information() -> None:
marker = files("elydora").joinpath("py.typed")
assert marker.is_file()
assert marker.read_text(encoding="utf-8").strip() == ""