fix(package): ship Python inline type metadata
This commit is contained in:
1 parent
fea6784346
commit
e29b3c9648
4 files changed
+13
No files matched your search
@@ -34,6 +34,7 @@ This repository owns the published `elydora` package, its CLI, synchronous and a
|
||||
## Code Quality
|
||||
|
||||
- Keep the package, distribution, and CLI version in `elydora/_version.py`; build metadata must read that literal through Setuptools dynamic metadata.
|
||||
- Ship `elydora/py.typed` in every wheel and verify public annotations from an installed-wheel consumer.
|
||||
- Support every Python version declared in `pyproject.toml`.
|
||||
- Keep production source files at or below 500 lines.
|
||||
- Keep functions focused on one ownership boundary.
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -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() == ""
|
||||
Reference in new issue
Block a user