From e601f07708192761dc3f74c3f026fc1cd5a66063 Mon Sep 17 00:00:00 2001 From: Andrew Wilkinson Date: Mon, 1 Apr 2024 16:53:44 +0100 Subject: [PATCH] feat: Add stubs of core MicroPython libraries to the PyPI package. --- {stubs => i75/stubs}/gc.pyi | 0 {stubs => i75/stubs}/machine.pyi | 0 {stubs => i75/stubs}/time.pyi | 0 setup.py | 7 ++----- 4 files changed, 2 insertions(+), 5 deletions(-) rename {stubs => i75/stubs}/gc.pyi (100%) rename {stubs => i75/stubs}/machine.pyi (100%) rename {stubs => i75/stubs}/time.pyi (100%) diff --git a/stubs/gc.pyi b/i75/stubs/gc.pyi similarity index 100% rename from stubs/gc.pyi rename to i75/stubs/gc.pyi diff --git a/stubs/machine.pyi b/i75/stubs/machine.pyi similarity index 100% rename from stubs/machine.pyi rename to i75/stubs/machine.pyi diff --git a/stubs/time.pyi b/i75/stubs/time.pyi similarity index 100% rename from stubs/time.pyi rename to i75/stubs/time.pyi diff --git a/setup.py b/setup.py index 5902eba..f2a95f4 100644 --- a/setup.py +++ b/setup.py @@ -39,11 +39,8 @@ long_description_content_type="text/markdown", url="https://github.com/andrewjw/i75", scripts=["bin/i75", "bin/i75-convert-image"], - packages=setuptools.find_packages() + ["i75.emulated", "i75.tz", "i75.fontdata",], - include_package_data=True, - data_files = [ - ('stubs', glob('stubs/*.pyi')) - ], + packages=setuptools.find_packages() + ["i75.emulated", "i75.tz", "i75.fontdata"], + package_data={"i75": ["stubs/*.pyi"]}, classifiers=[ "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9",