PYTHON-3216 Include codec_options.pyi in release distributions (#923)
This commit is contained in:
parent
3cb16cae24
commit
5ccbb4d6d8
15
setup.py
15
setup.py
@ -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
|
||||
)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user