Skip to content

Commit

Permalink
PYTHON-3214 Fix typing markers not being included in the distribution (
Browse files Browse the repository at this point in the history
  • Loading branch information
terencehonles authored Apr 6, 2022
1 parent 821b562 commit 01f983e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
3 changes: 0 additions & 3 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,3 @@ include tools/README.rst
recursive-include test *.pem
recursive-include test *.py
recursive-include bson *.h
include bson/py.typed
include gridfs/py.typed
include pymongo/py.typed
9 changes: 8 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,14 @@ def build_extension(self, ext):
else:
extras_require["gssapi"] = ["pykerberos"]

extra_opts = {"packages": ["bson", "pymongo", "gridfs"]}
extra_opts = {
"packages": ["bson", "pymongo", "gridfs"],
"package_data": {
"bson": ["py.typed"],
"pymongo": ["py.typed"],
"gridfs": ["py.typed"],
},
}

if "--no_ext" in sys.argv:
sys.argv.remove("--no_ext")
Expand Down

0 comments on commit 01f983e

Please sign in to comment.