Skip to content

Commit

Permalink
Python: make package PEP-561 compliant (#94)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
Carbenium authored Jan 6, 2023
1 parent 3128097 commit 3066345
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
File renamed without changes.
Empty file added src/python/psychrolib/py.typed
Empty file.
5 changes: 3 additions & 2 deletions src/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
license='MIT',
platforms = ['Windows', 'Linux', 'Solaris', 'Mac OS-X', 'Unix'],
python_requires='>=3.6',
py_modules=['psychrolib'],
)
packages=['psychrolib'],
package_data={'psychrolib': ['py.typed']},
)

0 comments on commit 3066345

Please sign in to comment.