Skip to content

Commit 022ab80

Browse files
committed
Add py.typed
This marker file is necessary when *distributing* libraries, in order for the consumer side to know that the library is typed and for typecheckers to know to use it directly rather than look for a stub package (or give up on typing). Closes #218
1 parent 4d988a0 commit 022ab80

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

MANIFEST.in

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1-
exclude .*
2-
prune .github
3-
global-exclude *~
4-
51
include README.rst
62
include LICENSE
3+
74
graft uap-core
8-
exclude uap-core/.*
9-
recursive-exclude uap-core *.js
5+
6+
prune .github
7+
prune uap-core/.github
8+
global-exclude *~
9+
global-exclude .*
10+
global-exclude *.js
11+
global-exclude __pycache__
12+
global-exclude *.py[co]

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ classifiers = [
4343
"Programming Language :: Python :: Implementation :: PyPy"
4444
]
4545

46+
[tool.setuptools.packages.find]
47+
where = ["src"]
48+
49+
[tool.setuptools.package-data]
50+
"ua_parser" = ["py.typed"]
51+
4652
[tool.ruff.lint]
4753
select = ["F", "E", "W", "I", "RET", "RUF", "PT"]
4854
ignore = [

src/ua_parser/py.typed

Whitespace-only changes.

0 commit comments

Comments
 (0)