aboutsummaryrefslogtreecommitdiff
path: root/pw_cli
diff options
context:
space:
mode:
authorWyatt Hepler <hepler@google.com>2020-10-21 16:07:56 -0700
committerCQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>2020-10-22 19:24:02 +0000
commit3b4047da68500945d1dfa8f085e38679045b6b82 (patch)
treef9ddf2de77d7002ba26b1678aeab6a9fe0d7a76e /pw_cli
parentd7dc6550c95c4a39947bd091fb55fd58ccd13302 (diff)
downloadpigweed-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_cli')
-rw-r--r--pw_cli/py/pw_cli/__init__.py0
-rw-r--r--pw_cli/py/pw_cli/py.typed0
-rw-r--r--pw_cli/py/setup.py2
3 files changed, 2 insertions, 0 deletions
diff --git a/pw_cli/py/pw_cli/__init__.py b/pw_cli/py/pw_cli/__init__.py
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/pw_cli/py/pw_cli/__init__.py
diff --git a/pw_cli/py/pw_cli/py.typed b/pw_cli/py/pw_cli/py.typed
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/pw_cli/py/pw_cli/py.typed
diff --git a/pw_cli/py/setup.py b/pw_cli/py/setup.py
index d9a163bee..19827b33d 100644
--- a/pw_cli/py/setup.py
+++ b/pw_cli/py/setup.py
@@ -22,5 +22,7 @@ setuptools.setup(
author_email='pigweed-developers@googlegroups.com',
description='Pigweed swiss-army knife',
packages=setuptools.find_packages(),
+ package_data={'pw_cli': ['py.typed']},
+ zip_safe=False,
entry_points={'console_scripts': ['pw = pw_cli.__main__:main']},
)