Skip to content

Commit 3066345

Browse files
authored
Python: make package PEP-561 compliant (#94)
* Python: convert to package This will allow to ship e.g. the py.typed file in the distribution. * Python: make package PEP-561 compliant The code already has type annotations. Let's ship the py.typed file so the typing information actually can be consumed by e.g. mypy
1 parent 3128097 commit 3066345

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/python/psychrolib/py.typed

Whitespace-only changes.

src/python/setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@
1212
license='MIT',
1313
platforms = ['Windows', 'Linux', 'Solaris', 'Mac OS-X', 'Unix'],
1414
python_requires='>=3.6',
15-
py_modules=['psychrolib'],
16-
)
15+
packages=['psychrolib'],
16+
package_data={'psychrolib': ['py.typed']},
17+
)

0 commit comments

Comments
 (0)