From 23f53d422a158d01261437e72ccc8be465c17ac2 Mon Sep 17 00:00:00 2001 From: Correl Roush Date: Mon, 3 Dec 2018 15:37:22 -0500 Subject: [PATCH] Package a type marker file per PEP 561 This will make type annotations usable for projects importing the library. --- monads/py.typed | 1 + setup.py | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 monads/py.typed diff --git a/monads/py.typed b/monads/py.typed new file mode 100644 index 0000000..7632ecf --- /dev/null +++ b/monads/py.typed @@ -0,0 +1 @@ +# Marker file for PEP 561 diff --git a/setup.py b/setup.py index ae7238e..d457478 100644 --- a/setup.py +++ b/setup.py @@ -14,6 +14,8 @@ setup( long_description_content_type="text/markdown", url="https://github.com/correl/typesafe-monads", packages=["monads"], + package_data={"monads": ["py.typed"]}, + include_package_data=True, setup_requires=["pytest-runner"], tests_require=["pytest", "mypy", "pytest-cov", "pytest-mypy"], classifiers=[