Skip to content
This repository was archived by the owner on Mar 13, 2023. It is now read-only.

Commit 79f4d7b

Browse files
authored
build: Adjust typehinting for project packaging (#344)
* fix: Include pyi files properly during building * fix: Move py.typed and add it to MANIFEST.in
1 parent ac756c6 commit 79f4d7b

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

MANIFEST.in

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
include README.md
2+
include LICENSE
3+
include requirements.txt
4+
include dis_snek/py.typed
5+
recursive-include dis_snek *.pyi

py.typed dis_snek/py.typed

File renamed without changes.

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
url="https://github.com/Discord-Snake-Pit/Dis-Snek",
1717
version=pyproject["tool"]["poetry"]["version"],
1818
packages=find_packages(),
19-
package_data={"dis_snek": ["py.typed", "*.pyi", "**/*.pyi"]},
19+
include_package_data=True,
2020
python_requires=">=3.10",
2121
install_requires=(Path(__file__).parent / "requirements.txt").read_text().splitlines(),
2222
classifiers=[

0 commit comments

Comments
 (0)