Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5e91c43

Browse files
committed
Include pyi stubs in wheels/sdists
1 parent 48c45d6 commit 5e91c43

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,9 @@ def make_release_tree(self, base_dir, files):
228228
update_matplotlibrc(
229229
Path(base_dir, "lib/matplotlib/mpl-data/matplotlibrc"))
230230

231-
232-
package_data = {} # Will be filled below by the various components.
231+
# Start with type hint data
232+
# Will be further filled below by the various components.
233+
package_data = {"matplotlib": ["py.typed", "**/*.pyi"]}
233234

234235
# If the user just queries for information, don't bother figuring out which
235236
# packages to build or install.

0 commit comments

Comments
 (0)