From 87cf1416e3c4667cee5b75a523fdeffc43d8a762 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 30 Oct 2026 12:51:12 +0000 Subject: [PATCH 1/2] Declare the platforms supported by the instrument plugins Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01Tdiso1u1ZhikSutj2Qs5Cg --- .../daq_move_plugins/daq_move_PI_MMC.py | 2 ++ .../daq_move_plugins/daq_move_PI_MMCLegacy.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/pymodaq_plugins_physik_instrumente/daq_move_plugins/daq_move_PI_MMC.py b/src/pymodaq_plugins_physik_instrumente/daq_move_plugins/daq_move_PI_MMC.py index 273728f..1d6b5f0 100644 --- a/src/pymodaq_plugins_physik_instrumente/daq_move_plugins/daq_move_PI_MMC.py +++ b/src/pymodaq_plugins_physik_instrumente/daq_move_plugins/daq_move_PI_MMC.py @@ -45,6 +45,8 @@ class DAQ_Move_PI_MMC(DAQ_Move_base): daq_utils.ThreadCommand """ + supported_platforms = ('win32',) # the MMC Windows DLL + _controller_units = 'mm' # dependent on the stage type so to be updated accordingly using self.controller_units = new_unit com_ports = MMC_Wrapper.aliases diff --git a/src/pymodaq_plugins_physik_instrumente/daq_move_plugins/daq_move_PI_MMCLegacy.py b/src/pymodaq_plugins_physik_instrumente/daq_move_plugins/daq_move_PI_MMCLegacy.py index 172a648..4a89a75 100644 --- a/src/pymodaq_plugins_physik_instrumente/daq_move_plugins/daq_move_PI_MMCLegacy.py +++ b/src/pymodaq_plugins_physik_instrumente/daq_move_plugins/daq_move_PI_MMCLegacy.py @@ -40,6 +40,8 @@ class DAQ_Move_PI_MMCLegacy(DAQ_Move_base): daq_utils.ThreadCommand """ + supported_platforms = ('win32',) # the MMC Windows DLL + _controller_units = 'mm' # dependent on the stage type so to be updated accordingly using self.controller_units = new_unit com_ports = MMC_Wrapper.aliases From c7096ce9b28ed7a6277bc33d0ad0f7e9906fadfd Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 30 Oct 2026 13:04:10 +0000 Subject: [PATCH 2/2] Compute the OS and Python classifiers when building, as in the plugin template Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01Tdiso1u1ZhikSutj2Qs5Cg --- pyproject.toml | 34 ++++++++++++++++------------------ 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index eae396b..663a7c3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,32 +30,16 @@ maintainers = [ # nottodo: leave everything below as is! -dynamic = ["version", "urls", "entry-points"] +dynamic = ["version", "urls", "entry-points", "classifiers"] readme = "README.rst" license = { file="LICENSE" } requires-python = ">=3.8" -classifiers = [ - "Development Status :: 5 - Production/Stable", - "Intended Audience :: Science/Research", - "License :: OSI Approved :: MIT License", - "Natural Language :: English", - "Operating System :: OS Independent", - "Programming Language :: Python :: 3.8", - "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.10", - "Programming Language :: Python :: 3.11", - "Topic :: Scientific/Engineering :: Human Machine Interfaces", - "Topic :: Scientific/Engineering :: Visualization", - "Topic :: Software Development :: Libraries :: Python Modules", - "Topic :: Software Development :: User Interfaces", -] - [build-system] requires = [ "hatchling>=1.9.0", "hatch-vcs", "toml", - "pymodaq_utils>=0.0.6", + "pymodaq_utils>=5.3.6", ] build-backend = "hatchling.build" @@ -64,3 +48,17 @@ build-backend = "hatchling.build" [tool.hatch.version] source = "vcs" +[tool.pymodaq] +# the "Operating System" and "Programming Language :: Python :: 3.x" classifiers are added when building the package, +# from supported_platforms in your instrument plugins and from requires-python +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Intended Audience :: Science/Research", + "License :: OSI Approved :: MIT License", + "Natural Language :: English", + "Topic :: Scientific/Engineering :: Human Machine Interfaces", + "Topic :: Scientific/Engineering :: Visualization", + "Topic :: Software Development :: Libraries :: Python Modules", + "Topic :: Software Development :: User Interfaces", +] +