Skip to content

Commit 637a1a0

Browse files
author
Sylvain MARIE
committed
Package made PEP561 compatible. Fixed #55
1 parent ffaed83 commit 637a1a0

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

setup.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,8 @@
137137
# If there are data files included in your packages that need to be
138138
# installed, specify them here. If using Python 2.6 or less, then these
139139
# have to be included in MANIFEST.in as well.
140-
# package_data={
141-
# 'sample': ['package_data.dat'],
142-
# },
140+
# Note: we use the empty string so that this also works with submodules
141+
package_data={"": ['py.typed', '*.pyi']},
143142

144143
# Although 'package_data' is the preferred approach, in some case you may
145144
# need to place data files outside of your packages. See:
@@ -155,4 +154,10 @@
155154
# 'sample=sample:main',
156155
# ],
157156
# },
157+
158+
# explicitly setting the flag to avoid `ply` being downloaded
159+
# see https://github.com/smarie/python-getversion/pull/5
160+
# and to make mypy happy
161+
# see https://mypy.readthedocs.io/en/latest/installed_packages.html
162+
zip_safe=False,
158163
)

valid8/py.typed

Whitespace-only changes.

0 commit comments

Comments
 (0)