Make package PEP 561 compatible
authorBenjamin Braatz <bb@bbraatz.eu>
Thu, 4 Mar 2021 21:14:44 +0000 (22:14 +0100)
committerBenjamin Braatz <bb@bbraatz.eu>
Thu, 4 Mar 2021 21:17:32 +0000 (22:17 +0100)
https://mypy.readthedocs.io/en/latest/installed_packages.html#creating-pep-561-compatible-packages

controlpi/py.typed [new file with mode: 0644]
setup.py

diff --git a/controlpi/py.typed b/controlpi/py.typed
new file mode 100644 (file)
index 0000000..e69de29
index 021e4410681d11f5ced61f4df7745fdf73fd9af7..fb945fd588040d91a2652c555c65ebf8e41b8294 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -12,12 +12,14 @@ setuptools.setup(
     long_description=long_description,
     long_description_content_type="text/markdown",
     url="http://docs.graph-it.com/graphit/controlpi",
-    packages=['controlpi', 'controlpi.plugins'],
+    packages=["controlpi", "controlpi.plugins"],
+    package_data={"controlpi": ["py.typed"]},
+    zip_safe=False,
     extras_require={
-        'dev': [
-            'pycodestyle',
-            'pydocstyle',
-            'mypy'
+        "dev": [
+            "pycodestyle",
+            "pydocstyle",
+            "mypy"
         ]
     },
     classifiers=[