Skip to content

Compute the OS and Python classifiers when building, as in the plugin template - #38

Merged
seb5g merged 1 commit into
5.0.xfrom
fix/andor-dynamic-classifiers
Nov 4, 2026
Merged

seb5g merged 1 commit into
5.0.xfrom
fix/andor-dynamic-classifiers

Conversation

@seb5g

@seb5g seb5g commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Before: pyproject.toml lists the classifiers by hand (Operating System :: OS Independent, Python 3.8 to 3.11) and requires pymodaq_utils>=0.0.6 to build.

After: dynamic contains "classifiers", the other classifiers moved to a [tool.pymodaq] table, and the build requires pymodaq_utils>=5.3.6, as in the plugin template. The Operating System classifier is computed from the supported_platforms of the instrument plugins and the Python ones from requires-python. With the current declarations the package stays OS Independent, because some plugins declare no platform; the Python classifiers become 3.10 to 3.13.

How: only pyproject.toml changes, following the template; hatch_build.py already calls update_metadata_from_toml.

Tested: the computed classifiers were printed with pymodaq_utils.plugin_tools.platforms.dynamic_classifiers from the PyMoDAQ source; the package was not built with hatch build.

🤖 Generated with Claude Code

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 d7e04ee into 5.0.x Nov 4, 2026
7 checks passed
@seb5g
seb5g deleted the fix/andor-dynamic-classifiers branch November 4, 2026 16:13
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