Conversation
Co-authored-by: davide-f <67809479+davide-f@users.noreply.github.com>
Co-authored-by: davide-f <67809479+davide-f@users.noreply.github.com>
Co-authored-by: davide-f <67809479+davide-f@users.noreply.github.com>
Co-authored-by: davide-f <67809479+davide-f@users.noreply.github.com>
Co-authored-by: davide-f <67809479+davide-f@users.noreply.github.com>
Co-authored-by: davide-f <67809479+davide-f@users.noreply.github.com>
Co-authored-by: davide-f <67809479+davide-f@users.noreply.github.com>
Co-authored-by: davide-f <67809479+davide-f@users.noreply.github.com>
Co-authored-by: davide-f <67809479+davide-f@users.noreply.github.com>
Co-authored-by: davide-f <67809479+davide-f@users.noreply.github.com>
Co-authored-by: davide-f <67809479+davide-f@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add support for reading SMS++ tool version in pysmspp
Add SMS++ solver version probing and minimum-version compatibility gate
Sep 28, 2026
Co-authored-by: davide-f <67809479+davide-f@users.noreply.github.com>
Contributor
Author
Done in commit a678ec2. I removed the minimum-version API/checking logic and kept only the solver version utility ( |
davide-f
reviewed
Oct 1, 2026
| import os | ||
| import queue | ||
| import re | ||
| import shlex |
| return None if res is None else int(res.group()) | ||
|
|
||
|
|
||
| def _parse_tool_version(version): |
Member
There was a problem hiding this comment.
Avoid the extra definition of this function
Comment on lines
+99
to
+100
| version_option: str = "--version", | ||
| fallback_version_option: str | None = "-V", |
Comment on lines
+128
to
+132
| version_option : str, optional | ||
| The option to display the version message, by default "--version". | ||
| fallback_version_option : str | None, optional | ||
| Alternative version option when version_option is not supported, | ||
| by default "-V". |
| print(msg) | ||
| return msg | ||
|
|
||
| def version(self, print_message=True): |
Member
There was a problem hiding this comment.
Simplify this function to minimize the code changes. The option "-V" shall be an argument to the function
Co-authored-by: davide-f <67809479+davide-f@users.noreply.github.com>
Contributor
Author
Member
|
@copilot remember always the precommit |
Contributor
Author
Noted. I’ll run pre-commit before committing changes. |
Co-authored-by: davide-f <67809479+davide-f@users.noreply.github.com>
Contributor
Author
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
pySMSpp did not expose solver version information and could not enforce tool-level compatibility requirements. This change adds a first-class version API for SMS++ solver wrappers and an optional minimum-version check that blocks incompatible runs before solver execution.
Version retrieval in solver wrappers
SMSPPSolverTool.version()to query solver version via--versionwith optional-Vfallback.SMS++ tools version 0.7.1→0.7.1).shell=Truecommand modes.Compatibility enforcement before optimize
minimum_versionversion_option/fallback_version_optionensure_minimum_version()and invoked it at the start ofoptimize().Caching and execution behavior
Targeted coverage for new behavior