Skip to content

Commit

Permalink
PYTHON-3216 Include codec_options.pyi in release distributions (#923)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaneHarvey committed Apr 6, 2022
1 parent 3cb16ca commit 5ccbb4d
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,14 +295,7 @@ def build_extension(self, ext):
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")
Expand Down Expand Up @@ -350,5 +343,11 @@ def build_extension(self, ext):
],
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
)

0 comments on commit 5ccbb4d

Please sign in to comment.