Skip to content

Commit 93c46a5

Browse files
committed
26.2.1
1 parent b03ca5f commit 93c46a5

3 files changed

Lines changed: 20 additions & 21 deletions

File tree

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Run tInstall on Ubuntu against supported Python versions
22
# MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string)
3-
name: Test R2026a
3+
name: Test R2026b
44

55
on:
66
# Allows you to run this workflow manually from the Actions tab as long as it's on the main branch
@@ -11,7 +11,7 @@ jobs:
1111
test-python-engine:
1212
strategy:
1313
matrix:
14-
python: ["3.13", "3.12", "3.11", "3.10", "3.9"]
14+
python: ["3.14", "3.13", "3.12", "3.11", "3.10"]
1515

1616
runs-on: ubuntu-latest
1717

@@ -24,7 +24,7 @@ jobs:
2424
- name: Set up MATLAB
2525
uses: matlab-actions/setup-matlab@v2
2626
with:
27-
release: R2026a
27+
release: R2026b
2828

2929
- uses: actions/checkout@v3
3030

README.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,9 @@ The MATLAB® Engine API for Python® provides a package to integrate MATLA
66
## Requirements
77
### Required MathWorks Products
88
<!-- MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string) -->
9-
* MATLAB release R2026a
9+
* MATLAB release R2026b
1010

11-
### Required 3rd Party Products
12-
<!-- MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string) -->
13-
* Python 3.9, 3.10, 3.11, 3.12, or 3.13
14-
* Supported Python versions by MATLAB release can be found [here](https://www.mathworks.com/support/requirements/python-compatibility.html).
11+
Supported Python versions by MATLAB release can be found [here](https://www.mathworks.com/support/requirements/python-compatibility.html).
1512

1613
---
1714

@@ -21,15 +18,15 @@ The MATLAB&reg; Engine API for Python&reg; provides a package to integrate MATLA
2118
MATLAB Engine API for Python can be installed directly from the Python Package Index.
2219
<!-- MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string) -->
2320
```bash
24-
$ python -m pip install matlabengine==26.1.12
21+
$ python -m pip install matlabengine==26.2.1
2522
```
2623

2724

2825

2926
### Linux&reg;
3027
Prior to installation, check the default install location of MATLAB by calling ```matlabroot``` in a MATLAB Command Window. By default, Linux installs MATLAB at:<br>
3128
<!-- MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string) -->
32-
```/usr/local/MATLAB/R2026a```
29+
```/usr/local/MATLAB/R2026b```
3330

3431
When MATLAB is not installed in the default location, the bin/*architecture* directory within the MATLAB root directory must be added to the environment variable LD_LIBRARY_PATH. The path can be added to the environment variable within the shell startup configuration file (for example, .bashrc for bash shell or .tcshrc for tcsh).
3532

@@ -46,7 +43,7 @@ setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:<matlabroot>/bin/glnxa64
4643
MATLAB Engine API for Python can be installed directly from the Python Package Index.
4744
<!-- MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string) -->
4845
```bash
49-
$ python -m pip install matlabengine==26.1.12
46+
$ python -m pip install matlabengine==26.2.1
5047
```
5148

5249
### macOS
@@ -70,7 +67,7 @@ setenv DYLD_LIBRARY_PATH ${DYLD_LIBRARY_PATH}:<matlabroot>/bin/maci64
7067
MATLAB Engine API for Python can be installed directly from the Python Package Index.
7168
<!-- MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string) -->
7269
```bash
73-
$ python -m pip install matlabengine==26.1.12
70+
$ python -m pip install matlabengine==26.2.1
7471
```
7572

7673
---

setup.py

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ class _MatlabFinder(build_py):
2121
}
2222

2323
# MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string)
24-
MATLAB_REL = 'R2026a'
24+
MATLAB_REL = 'R2026b'
2525

2626
# MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string)
27-
MATLAB_VER = '26.1.12'
27+
MATLAB_VER = '26.2.1'
2828

2929
# MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string)
30-
SUPPORTED_PYTHON_VERSIONS = set(['3.9', '3.10', '3.11', '3.12', '3.13'])
30+
SUPPORTED_PYTHON_VERSIONS = set(['3.10', '3.11', '3.12', '3.13', '3.14'])
3131

3232
# MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string)
3333
VER_TO_REL = {
@@ -42,7 +42,8 @@ class _MatlabFinder(build_py):
4242
"24.2": "R2024b",
4343
"25.1": "R2025a",
4444
"25.2": "R2025b",
45-
"26.1": "R2026a"
45+
"26.1": "R2026a",
46+
"26.2": "R2026b"
4647
}
4748

4849
DEFAULT_INSTALLS = {
@@ -61,7 +62,7 @@ class _MatlabFinder(build_py):
6162
verbose = False
6263

6364
# ERROR MESSAGES
64-
minimum_maximum = "No compatible version of MATLAB was found. " + \
65+
minimum_maximum_matlab = "No compatible version of MATLAB was found. " + \
6566
"Version {this_v:s} was found, but this feature only supports MATLAB {min_v:s} ({min_r:s}) through {max_v:s} ({max_r:s}), inclusive."
6667
dir_not_found = "Directory not found: "
6768
no_windows_install = "MATLAB installation not found in Windows Registry:"
@@ -280,7 +281,7 @@ def _find_matlab_key_from_windows_registry(self, key):
280281
return key_value
281282

282283
def _get_engine_ver_major_minor(self, id):
283-
re_major_minor = "^(\d+)\.(\d+)"
284+
re_major_minor = r"^(\d+)\.(\d+)"
284285
eng_match = re.match(re_major_minor, id)
285286
if not eng_match:
286287
raise RuntimeError(f"{self.invalid_version_from_eng.format(ver=self.MATLAB_VER)}")
@@ -289,7 +290,7 @@ def _get_engine_ver_major_minor(self, id):
289290
return ret
290291

291292
def _check_matlab_ver_against_engine(self, matlab_ver):
292-
re_major_minor = "^(\d+)\.(\d+)"
293+
re_major_minor = r"^(\d+)\.(\d+)"
293294
matlab_ver_match = re.match(re_major_minor, matlab_ver)
294295
if not matlab_ver_match:
295296
raise RuntimeError(f"{self.invalid_version_from_matlab_ver.format(ver=matlab_ver)}")
@@ -361,7 +362,8 @@ def _err_msg_if_bad_matlab_root(self, matlab_root):
361362
min_r = self.VER_TO_REL[min_v]
362363
max_v = v_to_r_keys[-1]
363364
max_r = self.VER_TO_REL[max_v]
364-
return self.minimum_maximum.format(this_v=self.found_matlab_release, min_v=min_v, min_r=min_r, max_v=max_v, max_r=max_r)
365+
return self.minimum_maximum_matlab.format(this_v=self.found_matlab_release,
366+
min_v=min_v, min_r=min_r, max_v=max_v, max_r=max_r)
365367
else:
366368
# If we reach this line, we assume that the default location has already been checked for an
367369
# appropriate MATLAB installation but none was found.
@@ -433,7 +435,7 @@ def run(self):
433435
setup(
434436
name="matlabengine",
435437
# MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string)
436-
version="26.1.12",
438+
version="26.2.1",
437439
description='A module to call MATLAB from Python',
438440
author='MathWorks',
439441
license="LICENSE.txt, located in this repository",

0 commit comments

Comments
 (0)