Skip to content

Commit

Permalink
Include py.typed in package data (#129)
Browse files Browse the repository at this point in the history
* Include `py.typed` in package data

Marks package to support type checking

* fixup! Include `py.typed` in package data
  • Loading branch information
flaeppe committed Aug 23, 2022
1 parent 09c2f32 commit 158e939
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions AUTHORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ Contributors
* Aaron Gokaslan - https://github.com/Skylion007
* Kai Mueller - https://github.com/kasium
* Daniele Esposti - https://github.com/expobrain
* Petter Friberg - https://github.com/flaeppe
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Changelog
=========

latest
------

* Include py.typed file in package data to support type checking

1.3.0 (2022-08-22)
------------------

Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def read(*names, **kwargs):
"Source code": "https://github.com/seddonym/import-linter/",
},
packages=find_packages("src"),
package_data={"importlinter": ["py.typed"]},
package_dir={"": "src"},
py_modules=[splitext(basename(path))[0] for path in glob("src/*.py")],
include_package_data=True,
Expand Down
Empty file added src/importlinter/py.typed
Empty file.

0 comments on commit 158e939

Please sign in to comment.