Skip to content

Declare the platforms supported by the instrument plugins - #22

Merged
seb5g merged 2 commits into
mainfrom
feature/supported-platforms
Nov 4, 2026
Merged

seb5g merged 2 commits into
mainfrom
feature/supported-platforms

Conversation

@seb5g

@seb5g seb5g commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

Before:
Nothing told PyMoDAQ that the TH260 viewer only works on Windows (the wrapper loads th260lib64.dll), and the package classifiers said "OS Independent".

After:
DAQ_1DViewer_TH260 declares supported_platforms = ('win32',): PyMoDAQ refuses to initialize it elsewhere, with a message. The classifier is now "Operating System :: Microsoft :: Windows".

How: one class attribute (PyMoDAQ >= 5.3.5 reads it, older versions ignore it) plus the classifier, written with pymodaq_utils.plugin_tools.platforms.update_pyproject_classifiers (the check_plugin --fix-classifiers option could not locate the package folder here).

Tested: file compiles, package_platforms reads {'win32'}. Not tested: initialization on Windows or elsewhere with the real TimeHarp 260; the declaration comes from the code reading.


Generated by Claude Code

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Tdiso1u1ZhikSutj2Qs5Cg
… template

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Tdiso1u1ZhikSutj2Qs5Cg
@seb5g
seb5g merged commit 68196b9 into main Nov 4, 2026
7 checks passed
@seb5g
seb5g deleted the feature/supported-platforms branch November 4, 2026 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants