diff --git a/lang/python/django/Makefile b/lang/python/django/Makefile index 619884a2de3a7..9cf5278e490d7 100644 --- a/lang/python/django/Makefile +++ b/lang/python/django/Makefile @@ -8,11 +8,11 @@ include $(TOPDIR)/rules.mk PKG_NAME:=django -PKG_VERSION:=5.1.3 +PKG_VERSION:=5.1.4 PKG_RELEASE:=1 PYPI_NAME:=Django -PKG_HASH:=c0fa0e619c39325a169208caef234f90baa925227032ad3f44842ba14d75234a +PKG_HASH:=de450c09e91879fa5a307f696e57c851955c910a438a35e6b4c895e86bedc82a PKG_MAINTAINER:=Alexandru Ardelean , Peter Stadler PKG_LICENSE:=BSD-3-Clause diff --git a/lang/python/django/test.sh b/lang/python/django/test.sh index 40eecc1744d59..b6e9a1ed6807a 100644 --- a/lang/python/django/test.sh +++ b/lang/python/django/test.sh @@ -1,7 +1,5 @@ #!/bin/sh -[ "$1" = "python3-django" ] || exit 0 - GOT_VER=$(/usr/bin/django-admin version) [ "$GOT_VER" = "$2" ] || { echo "Incorrect version: expected '$2' ; obtained '$GOT_VER'" diff --git a/lang/python/python-et_xmlfile/Makefile b/lang/python/python-et_xmlfile/Makefile index 10c04d004d15d..bc5457b2dda64 100644 --- a/lang/python/python-et_xmlfile/Makefile +++ b/lang/python/python-et_xmlfile/Makefile @@ -6,14 +6,14 @@ include $(TOPDIR)/rules.mk PKG_NAME:=python-et_xmlfile -PKG_VERSION:=1.1.0 +PKG_VERSION:=2.0.0 PKG_RELEASE:=1 PKG_MAINTAINER:=Alexandru Ardelean , Eneas U de Queiroz PKG_LICENSE:=MIT PYPI_NAME:=et_xmlfile -PKG_HASH:=8eb9e2bc2f8c97e37a2dc85a09ecdcdec9d8a396530a6d5a33b30b9a92da0c5c +PKG_HASH:=dab3f4764309081ce75662649be815c4c9081e88f0837825f90fd28317d4da54 include ../pypi.mk include $(INCLUDE_DIR)/package.mk diff --git a/lang/python/python-et_xmlfile/test.sh b/lang/python/python-et_xmlfile/test.sh new file mode 100644 index 0000000000000..cb4e5af26697e --- /dev/null +++ b/lang/python/python-et_xmlfile/test.sh @@ -0,0 +1,29 @@ +#!/bin/sh + +EXPECTED_VER="$2" + +python3 - << EOF + +import sys +from io import BytesIO +from xml.etree.ElementTree import Element + +from et_xmlfile import xmlfile + +if (et_xmlfile.__version__ != "$EXPECTED_VER"): + print("Invalid version obtained '" + et_xmlfile.__version__ + "'") + sys.exit(1) + +out = BytesIO() +with xmlfile(out) as xf: + el = Element("root") + xf.write(el) # write the XML straight to the file-like object + +if (out.getvalue() != b""): + print("Does not seem to work") + sys.exit(1) + +sys.exit(0) + +EOF + diff --git a/lang/python/python-lxml/Makefile b/lang/python/python-lxml/Makefile index d517cd8401511..4253d92367bfd 100644 --- a/lang/python/python-lxml/Makefile +++ b/lang/python/python-lxml/Makefile @@ -8,11 +8,11 @@ include $(TOPDIR)/rules.mk PKG_NAME:=python-lxml -PKG_VERSION:=5.2.2 +PKG_VERSION:=5.3.0 PKG_RELEASE:=1 PYPI_NAME:=lxml -PKG_HASH:=bb2dc4898180bea79863d5487e5f9c7c34297414bad54bcd0f0852aee9cfdb87 +PKG_HASH:=4e109ca30d1edec1ac60cdbe341905dc3b8f55b16855e03a54aaf59e51ec8c6f PKG_LICENSE:=BSD-3-Clause PKG_LICENSE_FILES:=LICENSES.txt diff --git a/lang/python/python-lxml/patches/001-downgrade-cython-requirement.patch b/lang/python/python-lxml/patches/001-downgrade-cython-requirement.patch new file mode 100644 index 0000000000000..f73f46c737b62 --- /dev/null +++ b/lang/python/python-lxml/patches/001-downgrade-cython-requirement.patch @@ -0,0 +1,9 @@ +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -1,5 +1,5 @@ + [build-system] +-requires = ["Cython>=3.0.11", "setuptools", "wheel"] ++requires = ["Cython>=3.0.10", "setuptools", "wheel"] + + [tool.cibuildwheel] + build-verbosity = 2 diff --git a/lang/python/python-lxml/test.sh b/lang/python/python-lxml/test.sh index 6ea15a0e8e4d3..e175d9239cd64 100644 --- a/lang/python/python-lxml/test.sh +++ b/lang/python/python-lxml/test.sh @@ -1,7 +1,5 @@ #!/bin/sh -[ "$1" = "python3-lxml" ] || exit 0 - EXP_VER="$2" python3 - << EOF