diff --git a/RELEASE_NOTES.rst b/RELEASE_NOTES.rst index aae2f0f90..62ff2f396 100644 --- a/RELEASE_NOTES.rst +++ b/RELEASE_NOTES.rst @@ -28,6 +28,7 @@ All changes - When a :class:`.GAMSModel` is solved with an LP status of 5 (optimal, but with infeasibilities after unscaling), :class:`.JDBCBackend` would attempt to read the output GDX file and fail, leading to an uninformative error message (:issue:`98`). Now :class:`.ModelError` is raised describing the situation. - Improved type hinting for static typing of code that uses :mod:`ixmp` (:issue:`465`, :pull:`500`). +- Use JPype1 1.5.0 for Python 3.11 and later; JPype1 1.4.0 for Python 3.10 and earlier. .. _v3.7.0: diff --git a/pyproject.toml b/pyproject.toml index d1f01f475..c52cfc1d0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,7 +33,8 @@ requires-python = ">=3.8" dependencies = [ "click", "genno >= 1.16", - "JPype1 >= 1.2.1", + "JPype1 <= 1.4.0; python_version <= 3.10", + "JPype1 >= 1.5.0; python_version >= 3.11", "openpyxl", "pandas >= 1.2", "pint",