Skip to content

Commit 900851c

Browse files
committed
9.15.2
1 parent 87f5f9c commit 900851c

File tree

4 files changed

+13
-14
lines changed

4 files changed

+13
-14
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The MATLAB® Engine API for Python® provides a package to integrate MATLA
2121
MATLAB Engine API for Python can be installed directly from the Python Package Index.
2222
<!-- MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string) -->
2323
```bash
24-
$ python -m pip install matlabengine==9.15.1a11
24+
$ python -m pip install matlabengine==9.15.2
2525
```
2626

2727

@@ -46,7 +46,7 @@ setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:<matlabroot>/bin/glnxa64
4646
MATLAB Engine API for Python can be installed directly from the Python Package Index.
4747
<!-- MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string) -->
4848
```bash
49-
$ python -m pip install matlabengine==9.15.1a11
49+
$ python -m pip install matlabengine==9.15.2
5050
```
5151

5252
### macOS
@@ -70,7 +70,7 @@ setenv DYLD_LIBRARY_PATH ${DYLD_LIBRARY_PATH}:<matlabroot>/bin/maci64
7070
MATLAB Engine API for Python can be installed directly from the Python Package Index.
7171
<!-- MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string) -->
7272
```bash
73-
$ python -m pip install matlabengine==9.15.1a11
73+
$ python -m pip install matlabengine==9.15.2
7474
```
7575

7676
---

setup.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class _MatlabFinder(build_py):
2424
MATLAB_REL = 'R2023b'
2525

2626
# MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string)
27-
MATLAB_VER = '9.15.1a11'
27+
MATLAB_VER = '9.15.2'
2828

2929
# MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string)
3030
SUPPORTED_PYTHON_VERSIONS = set(['3.9', '3.10', '3.11'])
@@ -415,7 +415,7 @@ def run(self):
415415
setup(
416416
name="matlabengine",
417417
# MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string)
418-
version="9.15.1a11",
418+
version="9.15.2",
419419
description='A module to call MATLAB from Python',
420420
author='MathWorks',
421421
license="LICENSE.txt, located in this repository",
@@ -441,8 +441,9 @@ def run(self):
441441
"Intended Audience :: Developers",
442442
# MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string)
443443
"Programming Language :: Python :: 3.9",
444-
"Programming Language :: Python :: 3.10"
444+
"Programming Language :: Python :: 3.10",
445+
"Programming Language :: Python :: 3.11"
445446
],
446447
# MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string)
447-
python_requires=">=3.9, <3.11"
448+
python_requires=">=3.9, <3.12"
448449
)

src/matlab/engine/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
# UPDATE_IF_PYTHON_VERSION_ADDED_OR_REMOVED : search for this string in codebase
3030
# when support for a Python version must be added or removed
31-
_supported_versions = ['2_7', '3_8', '3_9', '3_10']
31+
_supported_versions = ['3_9', '3_10', '3_11']
3232
_ver = sys.version_info
3333
_version = '{0}_{1}'.format(_ver[0], _ver[1])
3434
_PYTHONVERSION = None
@@ -64,8 +64,7 @@
6464
os.environ[_envs[_arch]] = _bin_dir + os.pathsep + os.environ[_envs[_arch]]
6565
else:
6666
os.environ[_envs[_arch]] = _bin_dir
67-
if sys.version_info.major >= 3 and sys.version_info.minor >= 8:
68-
os.add_dll_directory(_bin_dir)
67+
os.add_dll_directory(_bin_dir)
6968
pythonengine = importlib.import_module("matlabengineforpython"+_PYTHONVERSION)
7069
except Exception as secondE:
7170
str1 = 'Please reinstall MATLAB Engine for Python or contact '

src/matlab/engine/enginehelper.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@ def _get_async_or_background_argument(kwargs):
1111
background = kwargs.pop('async', False)
1212
if not isinstance(background, bool):
1313
raise TypeError(pythonengine.getMessage('AsyncMustBeBool'))
14-
if sys.version_info.major >= 3 and sys.version_info.minor >= 7:
15-
# No test should be passing "async" with Python 3.7 or higher, so throw an exception
16-
# if a test tries to do it.
17-
raise SyntaxError(pythonengine.getMessage('AsyncWillDeprecate'))
14+
# No test should be passing "async" with Python 3.7 or higher, so throw an exception
15+
# if a test tries to do it.
16+
raise SyntaxError(pythonengine.getMessage('AsyncWillDeprecate'))
1817

1918
if 'background' in kwargs:
2019
background = kwargs.pop('background', False)

0 commit comments

Comments
 (0)