2b525dcdd4
- Update to 2.5: * Lua uses dlopen() again, which was lost in Lupa 2.3. * Built with Cython 3.1.2. * Failures in the test suite didn't set a non-zero process exit value. * Removed support for Python 2.x. * Built with Cython 3.0.11. * A new method LuaRuntime.gccollect() was added to trigger the Lua garbage collector. * A new context manager LuaRuntime.nogc() was added to temporarily disable the Lua garbage collector. * The table_from() method gained a new keyword argument recursive=False. * The LuaRuntime methods "eval", "execute" and "compile" gained new keyword options mode and name that allow constraining the input type and modifying the (chunk) name shown in error messages, following similar arguments in the Lua load() function. * Loading Lua modules did not work for the version specific Lua modules introduced in Lupa 2.0. It turned out that it can only be enabled for one of them in a given Python run, so it is now left to users to enable it explicitly at need. * Built with Cython 3.0.9 for improved support of Python 3.12/13. - Drop patches, included upstream: * no-bundle.patch * noexcept.patch
Steve Kowalik2025-07-22 02:57:05 +00:00
5c50fa9c62
Accepting request 1281777 from devel:languages:python
Ana Guerrero2025-06-02 20:00:25 +00:00
31af89448b
Accepting request 1118276 from devel:languages:python
Ana Guerrero2023-10-19 20:47:12 +00:00
d7f9843c15
- Add upstream patches to built with Cython 3.0.3: - Add no-bundle.patch gh#scoder/lupa@19279acda1ad - Add noexcept.patch gh#scoder/lupa@fc0a1af99b74 - Update to 2.0: - GH#217: Lua stack traces in Python exception messages are now reversed to match the order of Python stack traces. - GH#196: Lupa now ships separate extension modules built with Lua 5.3, Lua 5.4, LuaJIT 2.0 and LuaJIT 2.1 beta. Note that this is build specific and may depend on the platform. A normal Python import cascade can be used. - GH#211: A new option max_memory allows to limit the memory usage of Lua code. (patch by Leo Developer) - GH#171: Python references in Lua are now more safely reference counted to prevent garbage collection glitches. (patch by Guilherme Dantas) - GH#146: Lua integers in Lua 5.3+ are converted from and to Python integers. (patch by Guilherme Dantas) - GH#180: The python.enumerate() function now returns indices as integers if supported by Lua. (patch by Guilherme Dantas) - GH#178: The Lua integer limits can be read from the module as LUA_MAXINTEGER and LUA_MININTEGER. (patch by Guilherme Dantas) - GH#174: Failures while calling the __index method in Lua during a table index lookup from Python could crash Python. (patch by Guilherme Dantas) - GH#137: Passing None as a dict key into table_from() crashed. (patch by Leo Developer) - GH#176: A new function python.args(*args, **kwargs) was added to help with building Python argument tuples and keyword argument dicts for Python function calls from Lua code. - GH#177: Tables that are not sequences raise IndexError when
Daniel Garcia2023-10-17 10:17:44 +00:00
ce8a17807e
- Synchronize architectures where luajit is Required with those where it is build (riscv64 ppc64 ppc64le s390x).
Matej Cepl2023-08-04 11:46:10 +00:00