fix(python): ship mirror inline type metadata
This commit is contained in:
1 parent
54a5778ec4
commit
08340725ec
4 files changed
+13
No files matched your search
@@ -49,6 +49,7 @@ This repository publishes the open-source server, console, integration catalog,
|
|||||||
- Propagate unexpected errors to the CLI or request boundary.
|
- Propagate unexpected errors to the CLI or request boundary.
|
||||||
- Keep technical claims executable through tests or generated validation.
|
- 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.
|
- 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.
|
- 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.
|
- 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.
|
- Honor valid `Retry-After` delay-seconds and HTTP-date values, and release retryable responses before sleeping.
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
|
||||||
@@ -42,5 +42,8 @@ dev = [
|
|||||||
[tool.setuptools.packages.find]
|
[tool.setuptools.packages.find]
|
||||||
include = ["elydora*"]
|
include = ["elydora*"]
|
||||||
|
|
||||||
|
[tool.setuptools.package-data]
|
||||||
|
elydora = ["py.typed"]
|
||||||
|
|
||||||
[tool.setuptools.dynamic]
|
[tool.setuptools.dynamic]
|
||||||
version = {attr = "elydora._version.__version__"}
|
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() == ""
|
||||||
Reference in new issue
Block a user