Skip to content

Commit f2c73cc

Browse files
authored
Include stubs in the distribution (mypyc#15)
1 parent fefc9a5 commit f2c73cc

File tree

4 files changed

+28
-1
lines changed

4 files changed

+28
-1
lines changed

librt/__init__.pyi

Whitespace-only changes.

librt/internal.pyi

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
from mypy_extensions import u8
2+
3+
class ReadBuffer:
4+
def __init__(self, source: bytes) -> None: ...
5+
6+
class WriteBuffer:
7+
def getvalue(self) -> bytes: ...
8+
9+
def write_bool(data: WriteBuffer, value: bool) -> None: ...
10+
def read_bool(data: ReadBuffer) -> bool: ...
11+
def write_str(data: WriteBuffer, value: str) -> None: ...
12+
def read_str(data: ReadBuffer) -> str: ...
13+
def write_bytes(data: WriteBuffer, value: bytes) -> None: ...
14+
def read_bytes(data: ReadBuffer) -> bytes: ...
15+
def write_float(data: WriteBuffer, value: float) -> None: ...
16+
def read_float(data: ReadBuffer) -> float: ...
17+
def write_int(data: WriteBuffer, value: int) -> None: ...
18+
def read_int(data: ReadBuffer) -> int: ...
19+
def write_tag(data: WriteBuffer, value: u8) -> None: ...
20+
def read_tag(data: ReadBuffer) -> u8: ...
21+
def cache_version() -> u8: ...

librt/py.typed

Whitespace-only changes.

pyproject.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ authors = [
1919
{name = "Jukka Lehtosalo", email = "[email protected]"},
2020
{name = "Ivan Levkivskyi", email = "[email protected]"},
2121
]
22-
version = "0.6.1"
22+
version = "0.6.2"
2323
license = {text = "MIT"}
2424
classifiers = [
2525
"Development Status :: 3 - Alpha",
@@ -41,6 +41,12 @@ requires-python = ">=3.9"
4141
Homepage = "https://github.com/mypyc/librt"
4242
Issues = "https://github.com/mypyc/mypyc/issues"
4343

44+
[tool.setuptools.packages.find]
45+
include = ["librt"]
46+
47+
[tool.setuptools.package-data]
48+
librt = ["py.typed", "**/*.pyi"]
49+
4450
[tool.cibuildwheel]
4551
build-frontend = "build"
4652
linux.manylinux-x86_64-image = "manylinux_2_28"

0 commit comments

Comments
 (0)