Skip to content

Commit 81afb90

Browse files
Daverballzzzeek
authored andcommitted
Add py.typed marker and include it in package data
Added py.typed file to root so that typing tools such as Mypy recognize dogpile as typed. Pull request courtesy Daverball. Fixes: #238 Closes: #239 Pull-request: #239 Pull-request-sha: 345e6cf Change-Id: I1006601759b2369a8090d1b6117145c6e02e986c
1 parent 8cb90f0 commit 81afb90

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

docs/build/unreleased/238.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.. change::
2+
:tags: bug, typing
3+
:tickets: 238
4+
5+
Added py.typed file to root so that typing tools such as Mypy recognize
6+
dogpile as typed. Pull request courtesy Daverball.

dogpile/py.typed

Whitespace-only changes.

setup.cfg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ install_requires =
2727
zip_safe = False
2828
packages = find:
2929
python_requires = >=3.6
30+
include_package_data = True
3031
package_dir =
3132
=.
3233

@@ -38,6 +39,9 @@ exclude =
3839
[options.exclude_package_data]
3940
'' = tests*
4041

42+
[options.package_data]
43+
* = py.typed
44+
4145
[options.entry_points]
4246
mako.cache =
4347
dogpile.cache = dogpile.cache.plugins.mako_cache:MakoPlugin

0 commit comments

Comments
 (0)