| 1 | # jpy Changelog |
| 2 | |
| 3 | ## Version 2.1.0 (in development) |
| 4 | |
| 5 | ## Version 2.0.0 |
| 6 | |
| 7 | This version bumps the minimum Java requirements from 8 to 11. |
| 8 | See [#226](https://github.com/jpy-consortium/jpy/pull/226) for more details. |
| 9 | |
| 10 | * [#226](https://github.com/jpy-consortium/jpy/pull/226) fix: Fix a race caused by premature-finalization when calling a method on transient PyObjects |
| 11 | * [#228](https://github.com/jpy-consortium/jpy/pull/228) Replace Java 23 with 25 in Check CI due to EOL |
| 12 | * [#229](https://github.com/jpy-consortium/jpy/pull/229) Update top level documentation |
| 13 | * [#231](https://github.com/jpy-consortium/jpy/pull/231) Fix the empty jar issue |
| 14 | |
| 15 | ## Version 1.4.0 |
| 16 | * [#220](https://github.com/jpy-consortium/jpy/pull/220) Use Python built-in exception formating |
| 17 | * [#215](https://github.com/jpy-consortium/jpy/pull/215) Bump actions/checkout from 5 to 6 |
| 18 | * [#207](https://github.com/jpy-consortium/jpy/pull/207) Bump actions/setup-python from 5 to 6 |
| 19 | * [#223](https://github.com/jpy-consortium/jpy/pull/223) Bump docker/setup-buildx-action from 3 to 4 |
| 20 | * [#224](https://github.com/jpy-consortium/jpy/pull/224) Bump docker/bake-action from 6.9.0 to 7.1.0 |
| 21 | * [#221](https://github.com/jpy-consortium/jpy/pull/221) Bump actions/download-artifact from 4 to 8 |
| 22 | * [#222](https://github.com/jpy-consortium/jpy/pull/222) Bump actions/upload-artifact from 4 to 7 |
| 23 | * [#225](https://github.com/jpy-consortium/jpy/pull/225) Bump docker/setup-qemu-action from 3 to 4 |
| 24 | |
| 25 | ## Version 1.3.0 |
| 26 | * [#212](https://github.com/jpy-consortium/jpy/pull/212) feat: Add 3.14 builds |
| 27 | * [#214](https://github.com/jpy-consortium/jpy/pull/214) Remove 3.6, 3.7, 3.8 from project's metadata and related dead code in the code base |
| 28 | |
| 29 | ## Version 1.2.0 |
| 30 | * [#199](https://github.com/jpy-consortium/jpy/pull/199) Call PyObject_IsTrue() to test truthiness |
| 31 | |
| 32 | ## Version 1.1.0 |
| 33 | * [#179](https://github.com/jpy-consortium/jpy/pull/179) Improve libpython search with python's sysconfig INSTSONAME |
| 34 | |
| 35 | ## Version 1.0.0 |
| 36 | * [#176](https://github.com/jpy-consortium/jpy/pull/176) fix: make PyObject cleanup thread-safe in free-threaded Python and reduce contention |
| 37 | * [#175](https://github.com/jpy-consortium/jpy/pull/175) Update project's Development Status classifier |
| 38 | |
| 39 | ## Version 0.19.0 |
| 40 | * [#165](https://github.com/jpy-consortium/jpy/pull/165) feat: free-threaded Python (3.13.0+) support |
| 41 | * [#168](https://github.com/jpy-consortium/jpy/pull/168) Add Python 3.13 builds |
| 42 | * [#164](https://github.com/jpy-consortium/jpy/pull/164) fix: Make org.jpy.PyLib.getCurrentLocals/Globals work for Python 3.13 |
| 43 | * [#162](https://github.com/jpy-consortium/jpy/pull/162) Find Zero-Assembler OpenJDK 21 |
| 44 | |
| 45 | ## Version 0.18.0 |
| 46 | * [#158](https://github.com/jpy-consortium/jpy/pull/158) Get the correct computed tb lineno |
| 47 | * [#153](https://github.com/jpy-consortium/jpy/pull/153) Remove pip upgrade from CI |
| 48 | * [#150](https://github.com/jpy-consortium/jpy/pull/150) Bump docker/bake-action from 4.5.0 to 4.6.0 |
| 49 | |
| 50 | ## Version 0.17.0 |
| 51 | * [#146](https://github.com/jpy-consortium/jpy/pull/146) Delay resolving super classes until referenced |
| 52 | * [#145](https://github.com/jpy-consortium/jpy/pull/145) Use Py_ssize_t when calculate buffer len |
| 53 | |
| 54 | ## Version 0.16.0 |
| 55 | * [#128](https://github.com/jpy-consortium/jpy/pull/128) Function for converting Python values to an explicit Java type |
| 56 | * [#132](https://github.com/jpy-consortium/jpy/pull/132) Update auditwheel command to use --exclude |
| 57 | * Various CI-related version bumps |
| 58 | |
| 59 | ## Version 0.15.0 |
| 60 | * [#112](https://github.com/jpy-consortium/jpy/pull/112) Add jpy.byte_buffer() function |
| 61 | * [#119](https://github.com/jpy-consortium/jpy/pull/119) Fix Mac OSX + OpenJDK builds where `JAVA_HOME` contains `libexec` but not `lib` |
| 62 | * [#121](https://github.com/jpy-consortium/jpy/pull/121) Python 3.12 build |
| 63 | * [#109](https://github.com/jpy-consortium/jpy/pull/109) Add aarch64 Linux wheels to build / release workflow |
| 64 | * [#113](https://github.com/jpy-consortium/jpy/pull/113) Update build.yml actions |
| 65 | |
| 66 | ## Version 0.14.0 |
| 67 | * [#99](https://github.com/jpy-consortium/jpy/pull/99) Check for exception in getInt/Long/DoubleValue() |
| 68 | * [#104](https://github.com/jpy-consortium/jpy/pull/104) PyDictWrapper.values() incorrectly close the underlying PyObject while it is still referenced |
| 69 | |
| 70 | ## Version 0.13.0 |
| 71 | * [#96](https://github.com/jpy-consortium/jpy/pull/96) Python 3.11 compatibility |
| 72 | |
| 73 | ## Version 0.12.0 |
| 74 | * [#88](https://github.com/jpy-consortium/jpy/pull/88) Use valueOf() to box primitive values instead of creating new objects every time |
| 75 | * [#89](https://github.com/jpy-consortium/jpy/pull/89) Add Java process lookup for 'java.home' in find_jvm_dll_file() |
| 76 | * [#85](https://github.com/jpy-consortium/jpy/pull/85) Support creation of zero-sized primitive Java arrays |
| 77 | |
| 78 | ## Version 0.11.1 |
| 79 | * [#79](https://github.com/jpy-consortium/jpy/issues/79) Produce usable / distributable macosx wheels |
| 80 | |
| 81 | ## Version 0.11.0 |
| 82 | * Publish artifacts to [PyPi](https://pypi.org/project/jpy/). Source tarball and binary wheels for Python 3.6 - 3.10 for Linux, Mac, and Windows (x86_64). |
| 83 | * Publish release to Maven Central with group id `org.jpyconsortium` and artifact id `jpy`. Java-8 compatible jars. |
| 84 | * Many more changes. |
| 85 | |
| 86 | ## Version 0.10 |
| 87 | |
| 88 | * Add the ability to pass properties and options to write_config_files. These values get passed |
| 89 | to the jvm when it is initialized. |
| 90 | [#180](https://github.com/bcdev/jpy/pull/180#issue-513362903) Contribution by davidlehrian. |
| 91 | * Make jpy work with Anaconda by setting environment variable |
| 92 | `PYTHONHOME` from Java |
| 93 | [#143](https://github.com/bcdev/jpy/issues/143). Contribution by Dr-Irv. |
| 94 | * Fixed: Constants are not properly passed from Java to Python when using interfaces |
| 95 | [#140](https://github.com/bcdev/jpy/issues/140). Contribution by Dr-Irv. |
| 96 | * Fixed: Cannot iterate through a dict in Python 3.x |
| 97 | [#136](https://github.com/bcdev/jpy/issues/136). Contribution by Dr-Irv. |
| 98 | * Automatically build 64-bit Python wheels for all Python versions from 3.4 to |
| 99 | 3.8 on Linux, Windows, and Mac (fixes |
| 100 | [#174](https://github.com/bcdev/jpy/issues/174)). |
| 101 | |
| 102 | ## Version 0.9 |
| 103 | |
| 104 | This version includes a number of contributions from supportive GitHub users. Thanks to all of you! |
| 105 | |
| 106 | ### Fixes |
| 107 | |
| 108 | * Corrected Java reference count of complex PyObject passed back and forth to methods (issue #120). Fix by sbarnoud. |
| 109 | * Fixed problem where default methods on Java 8 Interfaces were not found (issue #102). Fix by Charles P. Wright. |
| 110 | * Fixed error caused by missing `sys.argv` in Python when called from Java (issue #81). Fix by Dave Voutila. |
| 111 | * Fixed problem where calling jpy.get_type() too many times causes a memory access error (issue #74). Fix by Dave Voutila. |
| 112 | * Fixed a corruption when retrieving long values (#72). Fix by chipkent. |
| 113 | * Fixed fatal error when stopping python session (issue #70, #77). Fix by Dave Voutila. |
| 114 | * Explicit null checks for avoiding JVM crash (issue #126). Fix by Geomatys. |
| 115 | |
| 116 | ### Improvements |
| 117 | |
| 118 | * Can now use pip to install Python `jpy` package directly from GitHub (#83). |
| 119 | This works for Linux and OS X where C compilers are available by default |
| 120 | and should work on Windows with Visual Studio 15 installed. |
| 121 | Contribution by Dave Voutila. |
| 122 | * Java `PyObject` is now serializable. Contribution by Mario Briggs. |
| 123 | * Improved Varargs method matching. You may pass in either an array (as in the |
| 124 | past) or individual Python arguments, the match for a varargs method call is |
| 125 | the minimum match for each of the arguments. Zero length arrays (i.e. no |
| 126 | arguments) are also permitted with a match value of 10. |
| 127 | * `jpy.type_translations` dictionary for callbacks when instantiating Python objects. |
| 128 | * `jpy.VerboseExceptions` enables full Java stack traces. |
| 129 | * More Python exceptions are translated to the corresponding Java type. |
| 130 | * Globals and locals are converted when executing code with PyLib, to allow variables to be |
| 131 | used across statement invocation; and interrogated from Java. |
| 132 | * PyObject wrappers for dictionary, list, and introspection functions to tell |
| 133 | you whether or not you can convert the object. |
| 134 | * Support for isAssignable checks when dealing with Python Strings and primitives, to allow |
| 135 | matches for argument types such as `java.lang.Comparable` or `java.lang.Number`. |
| 136 | |
| 137 | ## Version 0.8 |
| 138 | |
| 139 | ### Fixes |
| 140 | |
| 141 | * Java interface types don't include methods of extended interfaces (issue #64) |
| 142 | * Loading of jpy DLL fails for user-specific Python installations on Windows (issue #58) |
| 143 | * Java interface types didn't expose java.lang.Object methods (issue #57) |
| 144 | * Java 1-arg static method was confused with a zero-arg non-static method (issue #54) |
| 145 | * Python interpreter crash occurred when executing del statement on Java arrays (issue #52) |
| 146 | * Python extensions loaded from Java couldn't see Python symbols (Linux) (issue #38) |
| 147 | |
| 148 | ### Improvements |
| 149 | |
| 150 | * It is now possible to use jpy Java API to work with multiple Python installations (issue #35). |
| 151 | A tool called 'jpyutil.py' can be used to write configuration files that determine the required shared libraries |
| 152 | for a given Python versions. |
| 153 | A new Java system property 'jpy.config' is used to point to a desired configuration file. |
| 154 | * Simplified jpy installation (issue #15): |
| 155 | - removed need to add JVM path to PATH (Windows) / LD_LIBRARY_PATH (Unix) environment variable |
| 156 | - removed need to compile Java module using Maven |
| 157 | - removed need to specify JDK_HOME environment variable, if JAVA_HOME already points to a JDK |
| 158 | * Added 'jclass' attribute to Python type that wraps a Java class (issue #63) . |
| 159 | * Java API extensions |
| 160 | - new `jpy.org.PyObject.executeCode()` methods |
| 161 | - new `jpy.org.PyModule.getBuiltins()` method |
| 162 | - new `jpy.org.PyModule.getMain()` method |
| 163 | - new `jpy.org.PyModule.extendSysPath()` method |
| 164 | * Java API configuration changes: |
| 165 | - System property `jpy.jpyLib`: |
| 166 | - System property `jpy.jdlLib`: |
| 167 | - System property `jpy.pythonLib`: |
| 168 | - System property `jpy.config`: |
| 169 | - Loaded from |
| 170 | - File `./jpyconfig.properties` |
| 171 | - Resource `/jpyconfig.properties` |
| 172 | - File `${jpy.config}` |
| 173 | * Python API configuration changes: |
| 174 | - Loaded from |
| 175 | - File `./jpyconfig.py` |
| 176 | - Resource `${jpy-module}/jpyconfig.py` |
| 177 | - Attribute java_home |
| 178 | - Attribute jvm_dll |
| 179 | * Python API extensions |
| 180 | - new `jpyutil` module |
| 181 | - `jpyutil.init_jvm(...)` |
| 182 | - `jpyutil.preload_jvm_lib(...)` |
| 183 | - new `jpyutil` tool |
| 184 | - usage: `jpyutil.py [-h] [--out OUT] [--java_home JAVA_HOME] [--jvm_dll JVM_DLL]` |
| 185 | * Added basic support for Java Scripting Engine API (issue #53) |
| 186 | |
| 187 | ### Other changes |
| 188 | |
| 189 | * Switched to Apache 2.0 license from version 0.8 and later (issue #60) |
| 190 | |
| 191 | ## Version 0.7.5 |
| 192 | |
| 193 | * Fixed bad pointer in C-code which caused unpredictable crashes (issue #43) |
| 194 | |
| 195 | ## Version 0.7.4 |
| 196 | |
| 197 | * Fixed a problem where jpy crashes with unicode arguments (issue #42) |
| 198 | * Fixed segmentation fault occurring occasionally during installation of jpy (issue #40) |
| 199 | * Improved Java exception messages on Python errors (issue #39) |
| 200 | |
| 201 | ## Version 0.7.3 |
| 202 | |
| 203 | * Fixed problem where a Java primitive array argument has occasionally not been initialised by a |
| 204 | related Python buffer argument (issue #37) |
| 205 | |
| 206 | ## Version 0.7.2 |
| 207 | |
| 208 | * Added backward compatibility with Python 2.7 (issue #34). |
| 209 | * Added Java parameter annotation 'output' (issue #36). |
| 210 | This is used to optimise passing Python buffer arguments where Java primitive arrays are expected. |
| 211 | * Removed debugging prints of the form "JNI_OnLoad: ..." |
| 212 | * Corrected documentation of jpy.array(type, init) function, which was said to be jpy.array(type, length) |
| 213 | * Removed console dumps that occurred when calling from Java proxies into Python |
| 214 | * Updated Java API documentation and added it to Sphinx doc folder (doc/_static/java-apidoc) |
| 215 | * Added new diagnostic F_ERR flag to Java class PyLib.Diag |
| 216 | * Java class PyLib is no longer instantiable |
| 217 | |
| 218 | ## Version 0.7.1 |
| 219 | |
| 220 | * Updated README and added MANIFEST.in after recognising that the jpy-0.7.zip distribution misses most of the |
| 221 | required source files and learning what to do on this case. |
| 222 | |
| 223 | ## Version 0.7 |
| 224 | |
| 225 | * Initial version. |