diff options
author | Wyatt Hepler <hepler@google.com> | 2020-10-21 16:07:56 -0700 |
---|---|---|
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2020-10-22 19:24:02 +0000 |
commit | 3b4047da68500945d1dfa8f085e38679045b6b82 (patch) | |
tree | f9ddf2de77d7002ba26b1678aeab6a9fe0d7a76e /pw_status/py | |
parent | d7dc6550c95c4a39947bd091fb55fd58ccd13302 (diff) | |
download | pigweed-3b4047da68500945d1dfa8f085e38679045b6b82.tar.gz |
Python: Add py.typed files per PEP 561
- PEP 561 (https://www.python.org/dev/peps/pep-0561/) specifies that
packages that wish to support type checking must provide a py.typed
marker file. Add py.typed to all packages.
- Add missing __init__.py files to pw_cli and pw_hdlc_lite.
Change-Id: I32d652222e9909a5ac4a5612c2dd1683b18b2d36
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/22200
Reviewed-by: Alexei Frolov <frolv@google.com>
Commit-Queue: Wyatt Hepler <hepler@google.com>
Diffstat (limited to 'pw_status/py')
-rw-r--r-- | pw_status/py/pw_status/py.typed | 0 | ||||
-rw-r--r-- | pw_status/py/setup.py | 2 |
2 files changed, 2 insertions, 0 deletions
diff --git a/pw_status/py/pw_status/py.typed b/pw_status/py/pw_status/py.typed new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/pw_status/py/pw_status/py.typed diff --git a/pw_status/py/setup.py b/pw_status/py/setup.py index eba46d649..13faaaf85 100644 --- a/pw_status/py/setup.py +++ b/pw_status/py/setup.py @@ -22,4 +22,6 @@ setuptools.setup( author_email='pigweed-developers@googlegroups.com', description='Pigweed Status object', packages=setuptools.find_packages(), + package_data={'pw_status': ['py.typed']}, + zip_safe=False, ) |