Skip to content

Commit 73e214a

Browse files
committed
py.typed file so mypy picks up the types, closes #331
1 parent 12b8c9d commit 73e214a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ def get_long_description():
2222
version=VERSION,
2323
license="Apache License, Version 2.0",
2424
packages=find_packages(exclude=["tests", "tests.*"]),
25+
package_data={"sqlite_utils": ["py.typed"]},
2526
install_requires=[
2627
"sqlite-fts4",
2728
"click",
@@ -46,7 +47,6 @@ def get_long_description():
4647
[console_scripts]
4748
sqlite-utils=sqlite_utils.cli:cli
4849
""",
49-
tests_require=["sqlite-utils[test]"],
5050
url="https://github.com/simonw/sqlite-utils",
5151
project_urls={
5252
"Documentation": "https://sqlite-utils.datasette.io/en/stable/",
@@ -69,4 +69,5 @@ def get_long_description():
6969
"Programming Language :: Python :: 3.9",
7070
"Programming Language :: Python :: 3.10",
7171
],
72+
zip_safe=False, # For mypy and py.typed
7273
)

sqlite_utils/py.typed

Whitespace-only changes.

0 commit comments

Comments
 (0)