From 82fb0b0ec6a63e311f97aca2eae8e464a1c61e13 Mon Sep 17 00:00:00 2001 From: atse Date: Fri, 21 Jun 2024 13:03:06 +0800 Subject: [PATCH] pyproject.toml fixes --- pytec/pyproject.toml | 8 +++----- pytec/setup.py | 3 ++- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/pytec/pyproject.toml b/pytec/pyproject.toml index 73ce527..3eeb969 100644 --- a/pytec/pyproject.toml +++ b/pytec/pyproject.toml @@ -14,8 +14,6 @@ license = {text = "GPLv3"} tec_qt = "tec_qt:main" [tool.setuptools] -packages.find = {} -py-modules = ["aioexample", "autotune", "example", "plot", "tec_qt", "ui_tec_qt", "waitingspinnerwidget"] - -[tool.setuptools.package-data] -"*" = ["*.*"] +packages.find = {} # Use setuptools custom discovery, package directory structure isn't standard +package-data = {"*" = ["*.ico", "*.ui", "*.json"]} +py-modules = ["aioexample", "autotune", "example", "plot", "tec_qt"] diff --git a/pytec/setup.py b/pytec/setup.py index 4ac8f58..0229d0d 100644 --- a/pytec/setup.py +++ b/pytec/setup.py @@ -14,5 +14,6 @@ setup( "tec_qt = tec_qt:main", ] }, - py_modules=['tec_qt', 'ui_tec_qt', 'autotune', 'waitingspinnerwidget'], + py_modules=['aioexample', 'autotune', 'example', 'plot', 'tec_qt'], + package_data={"*": ["*.ico", "*.ui", "*.json"]}, )