Skip to content

Commit 01f983e

Browse files
PYTHON-3214 Fix typing markers not being included in the distribution (#921)
1 parent 821b562 commit 01f983e

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

MANIFEST.in

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,3 @@ include tools/README.rst
1212
recursive-include test *.pem
1313
recursive-include test *.py
1414
recursive-include bson *.h
15-
include bson/py.typed
16-
include gridfs/py.typed
17-
include pymongo/py.typed

setup.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,14 @@ def build_extension(self, ext):
295295
else:
296296
extras_require["gssapi"] = ["pykerberos"]
297297

298-
extra_opts = {"packages": ["bson", "pymongo", "gridfs"]}
298+
extra_opts = {
299+
"packages": ["bson", "pymongo", "gridfs"],
300+
"package_data": {
301+
"bson": ["py.typed"],
302+
"pymongo": ["py.typed"],
303+
"gridfs": ["py.typed"],
304+
},
305+
}
299306

300307
if "--no_ext" in sys.argv:
301308
sys.argv.remove("--no_ext")

0 commit comments

Comments
 (0)