* 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
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lupa?expand=0&rev=34
- 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
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lupa?expand=0&rev=30
- Update to 1.10
* GH#147: Lua 5.4 is supported. (patch by Russel Davis)
* The runtime version of the Lua library as a tuple (e.g. (5,3))
is provided via lupa.LUA_VERSION and LuaRuntime.lua_version.
* The Lua implementation name and version string is provided as
LuaRuntime.lua_implementation.
* setup.py accepts new command line arguments --lua-lib and
--lua-includes to specify the
* Use Lua 5.4.3 in binary wheels and as bundled Lua.
* Built with Cython 0.29.24 to support Python 3.9.
- Also successfully builds and tests on python310
- Update to pkgconfig(lua5.4)
OBS-URL: https://build.opensuse.org/request/show/940098
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lupa?expand=0&rev=16