PYTHON-3216 Include codec_options.pyi in release distributions (#923)

This commit is contained in:
Shane Harvey 2022-04-06 12:18:44 -07:00 committed by GitHub
parent 3cb16cae24
commit 5ccbb4d6d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -295,14 +295,7 @@ if sys.platform == "win32":
else:
extras_require["gssapi"] = ["pykerberos"]
extra_opts = {
"packages": ["bson", "pymongo", "gridfs"],
"package_data": {
"bson": ["py.typed"],
"pymongo": ["py.typed"],
"gridfs": ["py.typed"],
},
}
extra_opts = {}
if "--no_ext" in sys.argv:
sys.argv.remove("--no_ext")
@ -350,5 +343,11 @@ setup(
],
cmdclass={"build_ext": custom_build_ext, "doc": doc, "test": test},
extras_require=extras_require,
packages=["bson", "pymongo", "gridfs"],
package_data={
"bson": ["py.typed", "*.pyi"],
"pymongo": ["py.typed", "*.pyi"],
"gridfs": ["py.typed", "*.pyi"],
},
**extra_opts
)