14
0
forked from pool/python-lupa
Commit Graph

19 Commits

Author SHA256 Message Date
5a0f2548eb - 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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lupa?expand=0&rev=34
2025-07-22 02:57:05 +00:00
067a8b88de - Convert to pip-based build
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lupa?expand=0&rev=32
2025-06-02 07:59:05 +00:00
bb832bb077 - 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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lupa?expand=0&rev=30
2023-10-17 10:17:44 +00:00
77bdb01fcd - Synchronize architectures where luajit is Required with those
where it is build (riscv64 ppc64 ppc64le s390x).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lupa?expand=0&rev=28
2023-08-04 11:46:10 +00:00
5ef575ab74 Accepting request 1092106 from home:ecsos:python
- Add %{?sle15_python_module_pythons}

OBS-URL: https://build.opensuse.org/request/show/1092106
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lupa?expand=0&rev=25
2023-06-11 11:42:42 +00:00
9f55e5e33d Accepting request 1039853 from home:yarunachalam:branches:devel:languages:python
- Update to version 1.14.1 
  * Rebuild with Cython 0.29.32 to support Python 3.11.

OBS-URL: https://build.opensuse.org/request/show/1039853
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lupa?expand=0&rev=23
2022-12-03 22:35:38 +00:00
15b6394ba6 Accepting request 1029800 from home:AdaLovelace:branches:devel:languages:python
- No upstream LuaJIT on s390x

OBS-URL: https://build.opensuse.org/request/show/1029800
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lupa?expand=0&rev=21
2022-10-18 22:28:49 +00:00
11e73f56ec Accepting request 1006994 from home:yarunachalam:branches:devel:languages:python
- Update to 1.13 (2022-03-01)
  * Bundled Lua source files were missing in the source distribution.

OBS-URL: https://build.opensuse.org/request/show/1006994
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lupa?expand=0&rev=19
2022-09-29 19:02:00 +00:00
090354a569 Accepting request 956332 from home:gladiac:branches:devel:languages:python
- Fix BR for luajit (Leap 15.3 only offers moonjit)
- Skip building for python2

OBS-URL: https://build.opensuse.org/request/show/956332
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lupa?expand=0&rev=18
2022-02-22 08:24:25 +00:00
06ea211ba0 - Adjust BuildRequires for lua
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lupa?expand=0&rev=17
2021-12-29 00:49:03 +00:00
e92fdbda50 Accepting request 940098 from home:bnavigator:python-rpm-macros
- 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
2021-12-13 18:46:23 +00:00
a14f881499 Accepting request 903471 from openSUSE:Factory:RISCV
- Force use of lua5.1, lua5.4 is not supported

OBS-URL: https://build.opensuse.org/request/show/903471
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lupa?expand=0&rev=15
2021-07-01 17:14:10 +00:00
6c785709b3 Accepting request 895319 from home:pgajdos:python
- %check: use %pyunittest_arch rpm macro

OBS-URL: https://build.opensuse.org/request/show/895319
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lupa?expand=0&rev=13
2021-05-25 11:16:17 +00:00
714ad1e1e1 - Remove third-party/ bundled application, use the system ones
(bsc#1167557).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lupa?expand=0&rev=11
2021-01-07 16:31:33 +00:00
Tomáš Chvátal
2090470374 Accepting request 787170 from openSUSE:Factory:RISCV
- No LuaJIT on riscv64

OBS-URL: https://build.opensuse.org/request/show/787170
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lupa?expand=0&rev=9
2020-03-22 07:43:39 +00:00
Tomáš Chvátal
c91752763d Accepting request 781868 from home:pgajdos:python
- version update to 1.9
  * Build against Lua 5.3 if available.
  * GH#129: Fix Lua module loading in Python 3.x.
  * GH#126: Fix build on Linux systems that install Lua as "lua52" package.

OBS-URL: https://build.opensuse.org/request/show/781868
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lupa?expand=0&rev=7
2020-03-05 14:02:24 +00:00
0ec79ea76d - Use pkgconf instead of directly defining required development
packages.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lupa?expand=0&rev=4
2019-12-10 20:17:42 +00:00
Tomáš Chvátal
7cb343399c - Fix dependency on the luajit to pull any implementation
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lupa?expand=0&rev=3
2019-12-10 10:34:18 +00:00
77604d5d8f Accepting request 677289 from home:jayvdb:django
- Initial spec for v1.8

OBS-URL: https://build.opensuse.org/request/show/677289
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lupa?expand=0&rev=1
2019-02-19 12:13:26 +00:00