pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/py-lupa



Module Name:    pkgsrc
Committed By:   adam
Date:           Mon Jun  3 07:47:27 UTC 2024

Modified Files:
        pkgsrc/devel/py-lupa: Makefile PLIST distinfo options.mk

Log Message:
py-lupa: updated to 2.2

2.2 (2024-06-02)

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.
Freeing Python objects from a thread while running Lua code could run into a deadlock.
The bundled LuaJIT versions were updated to the latest git branches.
Built with Cython 3.0.10.

2.1 (2024-03-24)

* The table_from() method gained a new keyword argument recursive=False. If true, Python data structures will be recursively mapped to Lua tables, taking care of loops and duplicates via identity 
de-duplication.
* 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. See https://www.lua.org/manual/5.4/manual.html#pdf-load
* 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. (original patch by Richard Connon)
* The bundled Lua 5.1 was updated to 5.1.5 and Lua 5.2 to 5.2.4. (patch by xxyzz)
The bundled Lua 5.4 was updated to 5.4.6.
The bundled LuaJIT versions were updated to the latest git branches.
Built with Cython 3.0.9 for improved support of Python 3.12/13.

2.0 (2023-04-03)

* Lua stack traces in Python exception messages are now reversed to match the order of Python stack traces.
* 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.
* A new option max_memory allows to limit the memory usage of Lua code. (patch by Leo Developer)
* Python references in Lua are now more safely reference counted to prevent garbage collection glitches. (patch by Guilherme Dantas)
* Lua integers in Lua 5.3+ are converted from and to Python integers. (patch by Guilherme Dantas)
* The python.enumerate() function now returns indices as integers if supported by Lua. (patch by Guilherme Dantas)
* The Lua integer limits can be read from the module as LUA_MAXINTEGER and LUA_MININTEGER. (patch by Guilherme Dantas)
* Failures while calling the __index method in Lua during a table index lookup from Python could crash Python. (patch by Guilherme Dantas)
* Passing None as a dict key into table_from() crashed. (patch by Leo Developer)
* 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.
* Tables that are not sequences raise IndexError when unpacking them. Previously, non-sequential items were simply ignored.
* Resolve some C compiler warnings about signed/unsigned comparisons. (patch by Guilherme Dantas)
Built with Cython 0.29.34.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 pkgsrc/devel/py-lupa/Makefile
cvs rdiff -u -r1.2 -r1.3 pkgsrc/devel/py-lupa/PLIST
cvs rdiff -u -r1.11 -r1.12 pkgsrc/devel/py-lupa/distinfo
cvs rdiff -u -r1.4 -r1.5 pkgsrc/devel/py-lupa/options.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/py-lupa/Makefile
diff -u pkgsrc/devel/py-lupa/Makefile:1.13 pkgsrc/devel/py-lupa/Makefile:1.14
--- pkgsrc/devel/py-lupa/Makefile:1.13  Mon Jan 10 18:39:00 2022
+++ pkgsrc/devel/py-lupa/Makefile       Mon Jun  3 07:47:27 2024
@@ -1,19 +1,24 @@
-# $NetBSD: Makefile,v 1.13 2022/01/10 18:39:00 wiz Exp $
+# $NetBSD: Makefile,v 1.14 2024/06/03 07:47:27 adam Exp $
 
-DISTNAME=      lupa-1.9
+DISTNAME=      lupa-2.2
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION=   1
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=l/lupa/}
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
-HOMEPAGE=      https://pypi.python.org/pypi/lupa
+HOMEPAGE=      https://github.com/scoder/lupa
 COMMENT=       Python wrapper around Lua and LuaJIT
 LICENSE=       mit
 
+TOOL_DEPENDS+= ${PYPKGPREFIX}-cython>=3.0.9:../../devel/py-cython
+TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools
+TOOL_DEPENDS+= ${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel
+
 USE_TOOLS+=    pkg-config
 
+PYTHON_VERSIONS_INCOMPATIBLE=  27
+
 .include "options.mk"
 
-.include "../../lang/python/egg.mk"
+.include "../../lang/python/wheel.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/devel/py-lupa/PLIST
diff -u pkgsrc/devel/py-lupa/PLIST:1.2 pkgsrc/devel/py-lupa/PLIST:1.3
--- pkgsrc/devel/py-lupa/PLIST:1.2      Mon Jan 10 18:39:00 2022
+++ pkgsrc/devel/py-lupa/PLIST  Mon Jun  3 07:47:27 2024
@@ -1,13 +1,16 @@
-@comment $NetBSD: PLIST,v 1.2 2022/01/10 18:39:00 wiz Exp $
-${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
-${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
-${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
-${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
-${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+@comment $NetBSD: PLIST,v 1.3 2024/06/03 07:47:27 adam Exp $
+${PYSITELIB}/${WHEEL_INFODIR}/LICENSE.txt
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
 ${PYSITELIB}/lupa/__init__.py
 ${PYSITELIB}/lupa/__init__.pyc
 ${PYSITELIB}/lupa/__init__.pyo
-${PYSITELIB}/lupa/_lupa.so
+${PYSITELIB}/lupa/lua51.so
+${PYSITELIB}/lupa/lua52.so
+${PYSITELIB}/lupa/lua53.so
+${PYSITELIB}/lupa/lua54.so
 ${PYSITELIB}/lupa/version.py
 ${PYSITELIB}/lupa/version.pyc
 ${PYSITELIB}/lupa/version.pyo

Index: pkgsrc/devel/py-lupa/distinfo
diff -u pkgsrc/devel/py-lupa/distinfo:1.11 pkgsrc/devel/py-lupa/distinfo:1.12
--- pkgsrc/devel/py-lupa/distinfo:1.11  Tue Oct 26 10:18:39 2021
+++ pkgsrc/devel/py-lupa/distinfo       Mon Jun  3 07:47:27 2024
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.11 2021/10/26 10:18:39 nia Exp $
+$NetBSD: distinfo,v 1.12 2024/06/03 07:47:27 adam Exp $
 
-BLAKE2s (lupa-1.9.tar.gz) = 79758ddfd29dfa35de38edf013b58298197aaac34c4c6423ac921e73d3a6859b
-SHA512 (lupa-1.9.tar.gz) = 4ea8d0ebe7f6481bf9ef4a49d5e30f8baf0ce12c9afb793526858808aea44eb27044ad5c2b5c9532e1ea2220a4eb9b52ce4debb2f7cb2bf53b26abee81541916
-Size (lupa-1.9.tar.gz) = 1014812 bytes
+BLAKE2s (lupa-2.2.tar.gz) = ce2888d4b3e57983e52051e73116cc4c4cb6d29b74514709a6025ab46af9a944
+SHA512 (lupa-2.2.tar.gz) = 98dc4b1fcb7928b915d5f5f8fbcf1b235c21c61dc16ba9db3e4d21a36594c63f8b2c19e7fe9953ce4f32afb5685944c575938ae1452ab6e882ad7ce96ab10e1f
+Size (lupa-2.2.tar.gz) = 7147957 bytes

Index: pkgsrc/devel/py-lupa/options.mk
diff -u pkgsrc/devel/py-lupa/options.mk:1.4 pkgsrc/devel/py-lupa/options.mk:1.5
--- pkgsrc/devel/py-lupa/options.mk:1.4 Tue Nov 14 08:23:05 2023
+++ pkgsrc/devel/py-lupa/options.mk     Mon Jun  3 07:47:27 2024
@@ -1,17 +1,10 @@
-# $NetBSD: options.mk,v 1.4 2023/11/14 08:23:05 jperkin Exp $
+# $NetBSD: options.mk,v 1.5 2024/06/03 07:47:27 adam Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.py-lupa
-PKG_SUPPORTED_OPTIONS= cython luajit
-PKG_SUGGESTED_OPTIONS+=        cython
+PKG_SUPPORTED_OPTIONS= luajit
 
 .include "../../mk/bsd.options.mk"
 
-.if !empty(PKG_OPTIONS:Mcython)
-PYTHON_VERSIONS_INCOMPATIBLE=  27
-PYSETUPBUILDARGS+=     --with-cython
-.include "../../devel/py-cython/buildlink3.mk"
-.endif
-
 .if !empty(PKG_OPTIONS:Mluajit)
 .include "../../lang/LuaJIT2/buildlink3.mk"
 .else



Home | Main Index | Thread Index | Old Index