From 5602cc85d393bef68bc7104529aee12937dbe4c0 Mon Sep 17 00:00:00 2001 From: Jeffery To Date: Mon, 29 May 2023 19:59:38 +0800 Subject: MarkupSafe: Update to 2.1.2, rename source package This renames the source package from MarkupSafe to python-markupsafe to match other Python packages. This also updates the package title and description. Signed-off-by: Jeffery To --- lang/python/MarkupSafe/Makefile | 37 ------------------------------ lang/python/python-markupsafe/Makefile | 41 ++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+), 37 deletions(-) delete mode 100644 lang/python/MarkupSafe/Makefile create mode 100644 lang/python/python-markupsafe/Makefile (limited to 'lang/python') diff --git a/lang/python/MarkupSafe/Makefile b/lang/python/MarkupSafe/Makefile deleted file mode 100644 index 177f072e7..000000000 --- a/lang/python/MarkupSafe/Makefile +++ /dev/null @@ -1,37 +0,0 @@ -# This is free software, licensed under the GNU General Public License v2. -# See /LICENSE for more information. -# - -include $(TOPDIR)/rules.mk - -PKG_NAME:=MarkupSafe -PKG_VERSION:=2.1.1 -PKG_RELEASE:=1 - -PYPI_NAME:=$(PKG_NAME) -PKG_HASH:=7f91197cc9e48f989d12e4e6fbc46495c446636dfc81b9ccf50bb0ec74b91d4b - -PKG_MAINTAINER:=Daniel Golle -PKG_LICENSE:=BSD-3-Clause -PKG_LICENSE_FILES:=LICENSE.rst - -include ../pypi.mk -include $(INCLUDE_DIR)/package.mk -include ../python3-package.mk - -define Package/python3-markupsafe - SECTION:=lang - CATEGORY:=Languages - SUBMENU:=Python - TITLE:=MarkupSafe - URL:=https://palletsprojects.com/p/markupsafe/ - DEPENDS:=+python3-light -endef - -define Package/python3-markupsafe/description - MarkupSafe implements a text object that escapes characters so it is safe to use in HTML and XML. -endef - -$(eval $(call Py3Package,python3-markupsafe)) -$(eval $(call BuildPackage,python3-markupsafe)) -$(eval $(call BuildPackage,python3-markupsafe-src)) diff --git a/lang/python/python-markupsafe/Makefile b/lang/python/python-markupsafe/Makefile new file mode 100644 index 000000000..5b495d79d --- /dev/null +++ b/lang/python/python-markupsafe/Makefile @@ -0,0 +1,41 @@ +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=python-markupsafe +PKG_VERSION:=2.1.2 +PKG_RELEASE:=1 + +PYPI_NAME:=MarkupSafe +PKG_HASH:=abcabc8c2b26036d62d4c746381a6f7cf60aafcc653198ad678306986b09450d + +PKG_MAINTAINER:=Daniel Golle +PKG_LICENSE:=BSD-3-Clause +PKG_LICENSE_FILES:=LICENSE.rst + +include ../pypi.mk +include $(INCLUDE_DIR)/package.mk +include ../python3-package.mk + +define Package/python3-markupsafe + SECTION:=lang + CATEGORY:=Languages + SUBMENU:=Python + TITLE:=Safely add untrusted strings to HTML/XML markup + URL:=https://palletsprojects.com/p/markupsafe/ + DEPENDS:=+python3-light +endef + +define Package/python3-markupsafe/description +MarkupSafe implements a text object that escapes characters so it is +safe to use in HTML and XML. Characters that have special meanings are +replaced so that they display as the actual characters. This mitigates +injection attacks, meaning untrusted user input can safely be displayed +on a page. +endef + +$(eval $(call Py3Package,python3-markupsafe)) +$(eval $(call BuildPackage,python3-markupsafe)) +$(eval $(call BuildPackage,python3-markupsafe-src)) -- cgit