PYTHON-3214 Fix typing markers not being included in the distribution (#921)

This commit is contained in:
Terence Honles 2022-04-06 11:25:25 -07:00 committed by GitHub
parent 821b5620f7
commit 01f983e8ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 4 deletions

View File

@ -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

View File

@ -295,7 +295,14 @@ if sys.platform == "win32":
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")