From 23be35273b9d98f02d620c42690683b4e1421372 Mon Sep 17 00:00:00 2001 From: Axel Voitier Date: Sun, 19 Jan 2020 23:40:46 +0100 Subject: [PATCH 1/3] Follows PEP 561 for package providing typing information --- observable/py.typed | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 observable/py.typed diff --git a/observable/py.typed b/observable/py.typed new file mode 100644 index 0000000..e69de29 From d7d25e9c1ed0450a7361b7d39864f64098c7de19 Mon Sep 17 00:00:00 2001 From: Axel Voitier Date: Sun, 19 Jan 2020 23:48:38 +0100 Subject: [PATCH 2/3] Adds zipsafe=False to setup.py to avoid making a zip mypy can't process --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index 8c0a9b0..083062d 100644 --- a/setup.py +++ b/setup.py @@ -93,4 +93,5 @@ def run(self): "Topic :: Software Development :: Libraries :: Python Modules", ), cmdclass={"upload": UploadCommand}, + zip_safe=False, # Because mypy cannot analyse a zip ) From 42ae0231b634e87326962a88ca8c47df301c75cd Mon Sep 17 00:00:00 2001 From: Axel Voitier Date: Sun, 19 Jan 2020 23:57:10 +0100 Subject: [PATCH 3/3] Installs the py.typed marker file --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index 083062d..84dc3f2 100644 --- a/setup.py +++ b/setup.py @@ -76,6 +76,7 @@ def run(self): author_email="tuxtimo@gmail.com", url="https://github.com/timofurrer/observable", packages=find_packages(), + package_data=dict(observable=['py.typed']), install_requires=required, license="MIT", classifiers=(