You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sagemathgh-39796: fix: added check for FriCAS version
This pull request includes several updates to the `FriCAS` class in the
`src/sage/features/fricas.py` file. The changes introduce a minimum
version requirement, add a method to retrieve the installed FriCAS
version, and enhance the `is_functional` method to check the
version.This is an attempt to fix the issue
[39784](sagemath#39784)
Enhancements to version handling and functionality checks:
* [`src/sage/features/fricas.py`](diffhunk://#diff-
a2c0d819d857ba2338e0d58e1a4875c88b600b174c8fb4371183ecc3f0e5b72eR29-
R30): Added a `MINIMUM_VERSION` attribute to specify the minimum
required version of FriCAS.
* [`src/sage/features/fricas.py`](diffhunk://#diff-
a2c0d819d857ba2338e0d58e1a4875c88b600b174c8fb4371183ecc3f0e5b72eR43-
R54): Introduced a `get_version` method to retrieve the installed FriCAS
version.
* [`src/sage/features/fricas.py`](diffhunk://#diff-
a2c0d819d857ba2338e0d58e1a4875c88b600b174c8fb4371183ecc3f0e5b72eL61-
R85): Updated the `is_functional` method to call `get_version` and check
if the installed version meets the minimum requirement. If the version
is not retrievable or is too old, appropriate error messages are
returned.
<!-- ^ Please provide a concise and informative title. -->
<!-- ^ Don't put issue numbers in the title, do this in the PR
description below. -->
<!-- ^ For example, instead of "Fixessagemath#12345" use "Introduce new method
to calculate 1 + 2". -->
<!-- v Describe your changes below in detail. -->
<!-- v Why is this change required? What problem does it solve? -->
<!-- v If this PR resolves an open issue, please link to it here. For
example, "Fixessagemath#12345". -->
### 📝 Checklist
<!-- Put an `x` in all the boxes that apply. -->
- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.
- [x] I have linked a relevant issue or discussion.
- [x] I have created tests covering the changes.
- [x] I have updated the documentation and checked the documentation
preview.
### ⌛ Dependencies
<!-- List all open PRs that this PR logically depends on. For example,
-->
<!-- - sagemath#12345: short description why this is a dependency -->
<!-- - sagemath#34567: ... -->
URL: sagemath#39796
Reported by: Devansh Srivastava
Reviewer(s): Dima Pasechnik
0 commit comments