From 636f450678fa19c29892ff23da0d3e0b47afa8f5 Mon Sep 17 00:00:00 2001 From: Joseph Perez Date: Fri, 31 Dec 2021 00:04:06 +0100 Subject: [PATCH] Include pyx files in package_data (#302) --- setup.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 35808137..efb74170 100644 --- a/setup.py +++ b/setup.py @@ -98,7 +98,11 @@ def build_extension(self, ext): author_email="joperez@hotmail.fr", license="MIT", packages=find_packages(include=["apischema*"]), - package_data={"apischema": ["py.typed"]}, + package_data={ + "apischema": ["py.typed"], + "apischema.deserialization": ["methods.pyx"], + "apischema.serialization": ["methods.pyx"], + }, description="JSON (de)serialization, GraphQL and JSON schema generation using Python typing.", long_description=README, long_description_content_type="text/markdown",