Skip to content

Commit 04578c4

Browse files
authored
changed to pyproject.toml to install py.typed when using mypy (#188)
1 parent 4b9fd04 commit 04578c4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

python-project-template/pyproject.toml.jinja

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,13 @@ build-backend = "setuptools.build_meta"
6161

6262
[tool.setuptools_scm]
6363
write_to = "src/{{module_name}}/_version.py"
64-
6564
{%- if preferred_linter == 'black' %}
6665

6766
[tool.black]
6867
line-length = 110
68+
{%- endif %}
69+
{%- if mypy_type_checking != 'none' %}
6970

70-
{% endif -%}
71+
[tool.setuptools.package-data]
72+
{{module_name}} = ["py.typed"]
73+
{%- endif %}

0 commit comments

Comments
 (0)