Files
Alexandru Ardelean a547770f98 python3-et_xmlfile: add python3-xml dep, fix test
The test.sh imports xml.etree.ElementTree from the stdlib, and
et_xmlfile itself falls back to stdlib xml when lxml is unavailable.
Add python3-xml to DEPENDS to ensure the xml module is present at
both install and test time.

The test used et_xmlfile.__version__ without importing the et_xmlfile
module (only 'from et_xmlfile import xmlfile' was present). Add
'import et_xmlfile' so the version check works correctly.

The test.sh lacked a package name guard, causing it to run (and fail)
when the -src subpackage was tested without python3 installed.
Add the standard guard to skip the test for non-main packages.

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2026-04-10 14:01:09 +03:00

43 lines
1.1 KiB
Makefile

#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=python-et_xmlfile
PKG_VERSION:=2.0.0
PKG_RELEASE:=1
PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>, Eneas U de Queiroz <cotequeiroz@gmail.com>
PKG_LICENSE:=MIT
PYPI_NAME:=et_xmlfile
PKG_HASH:=dab3f4764309081ce75662649be815c4c9081e88f0837825f90fd28317d4da54
include ../pypi.mk
include $(INCLUDE_DIR)/package.mk
include ../python3-package.mk
define Package/python3-et_xmlfile
SUBMENU:=Python
SECTION:=lang
CATEGORY:=Languages
TITLE:=Low memory library for creating large XML files.
URL:=https://bitbucket.org/openpyxl/et_xmlfile
DEPENDS:= \
+python3-light \
+python3-lxml \
+python3-xml
endef
define Package/python3-et_xmlfile/description
An implementation of lxml.xmlfile for the standard library.
It is based upon the xmlfile module from lxml with the aim of
allowing code to be developed that will work with both libraries.
endef
$(eval $(call Py3Package,python3-et_xmlfile))
$(eval $(call BuildPackage,python3-et_xmlfile))
$(eval $(call BuildPackage,python3-et_xmlfile-src))