diff --git a/MANIFEST.in b/MANIFEST.in deleted file mode 100644 index 467f8868..00000000 --- a/MANIFEST.in +++ /dev/null @@ -1 +0,0 @@ -recursive-include python/psapi *.pyi \ No newline at end of file diff --git a/setup.py b/setup.py index f856df69..446b1957 100644 --- a/setup.py +++ b/setup.py @@ -5,8 +5,9 @@ import subprocess import sys from pathlib import Path +from glob import glob -from setuptools import Extension, setup +from setuptools import Extension, find_packages, setup from setuptools.command.build_ext import build_ext import re @@ -152,8 +153,9 @@ def build_extension(self, ext: CMakeExtension) -> None: long_description="Includes full support for modifying nested layer hierarchies as well as all bit depths known to Photoshop", ext_modules=[CMakeExtension("psapi")], cmdclass={"build_ext": CMakeBuild}, + packages=find_packages(), + package_data={'': ['*.pyi', '*.typed'] + glob('python/psapi/**', recursive=True)}, zip_safe=False, - package_data={"PhotoshopAPI" : ["python/psapi/py.typed"]}, install_requires= [ "numpy>=1.26" ],