Skip to content

Commit 5ccbb4d

Browse files
authored
PYTHON-3216 Include codec_options.pyi in release distributions (#923)
1 parent 3cb16ca commit 5ccbb4d

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

setup.py

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

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-
}
298+
extra_opts = {}
306299

307300
if "--no_ext" in sys.argv:
308301
sys.argv.remove("--no_ext")
@@ -350,5 +343,11 @@ def build_extension(self, ext):
350343
],
351344
cmdclass={"build_ext": custom_build_ext, "doc": doc, "test": test},
352345
extras_require=extras_require,
346+
packages=["bson", "pymongo", "gridfs"],
347+
package_data={
348+
"bson": ["py.typed", "*.pyi"],
349+
"pymongo": ["py.typed", "*.pyi"],
350+
"gridfs": ["py.typed", "*.pyi"],
351+
},
353352
**extra_opts
354353
)

0 commit comments

Comments
 (0)