git: 398b23918ad8 - main - textproc/py-markupsafe: Update to 3.0.2

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Thu, 29 May 2025 04:53:25 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=398b23918ad81bb314a999fac9127a1a973213cf

commit 398b23918ad81bb314a999fac9127a1a973213cf
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2025-05-29 04:44:21 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2025-05-29 04:52:26 +0000

    textproc/py-markupsafe: Update to 3.0.2
    
    - Add GitHub to MASTER_SITES
    - Update WWW
    - Update LICENSE_FILE
    
    Changes:        https://github.com/pallets/markupsafe/releases
                    https://markupsafe.palletsprojects.com/en/stable/changes/
---
 textproc/py-markupsafe/Makefile                   | 14 +++++++-------
 textproc/py-markupsafe/distinfo                   |  6 +++---
 textproc/py-markupsafe/files/patch-pyproject.toml | 18 ++++++++++++++++++
 textproc/py-markupsafe/files/patch-setup.py       | 11 -----------
 4 files changed, 28 insertions(+), 21 deletions(-)

diff --git a/textproc/py-markupsafe/Makefile b/textproc/py-markupsafe/Makefile
index 7d5e4f199ed6..a49b01b26258 100644
--- a/textproc/py-markupsafe/Makefile
+++ b/textproc/py-markupsafe/Makefile
@@ -1,19 +1,19 @@
 PORTNAME=	markupsafe
-PORTVERSION=	2.1.5
-PORTREVISION=	1
+PORTVERSION=	3.0.2
 CATEGORIES=	textproc python
-MASTER_SITES=	PYPI
+MASTER_SITES=	PYPI \
+		https://github.com/pallets/markupsafe/releases/download/${PORTVERSION}/
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
-DISTNAME=	MarkupSafe-${PORTVERSION}
 
 MAINTAINER=	sunpoet@FreeBSD.org
 COMMENT=	Implements XML/HTML/XHTML Markup safe string for Python
-WWW=		https://github.com/pallets/markupsafe
+WWW=		https://markupsafe.palletsprojects.com/en/stable/ \
+		https://github.com/pallets/markupsafe
 
 LICENSE=	BSD3CLAUSE
-LICENSE_FILE=	${WRKSRC}/LICENSE.rst
+LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
-BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=61:devel/py-setuptools@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
 
 USES=		python
diff --git a/textproc/py-markupsafe/distinfo b/textproc/py-markupsafe/distinfo
index 1d4d74b5e419..bebf8bdb3afa 100644
--- a/textproc/py-markupsafe/distinfo
+++ b/textproc/py-markupsafe/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1708449466
-SHA256 (MarkupSafe-2.1.5.tar.gz) = d283d37a890ba4c1ae73ffadf8046435c76e7bc2247bbb63c00bd1a709c6544b
-SIZE (MarkupSafe-2.1.5.tar.gz) = 19384
+TIMESTAMP = 1748107946
+SHA256 (markupsafe-3.0.2.tar.gz) = ee55d3edf80167e48ea11a923c7386f4669df67d7994554387f84e7d8b0a2bf0
+SIZE (markupsafe-3.0.2.tar.gz) = 20537
diff --git a/textproc/py-markupsafe/files/patch-pyproject.toml b/textproc/py-markupsafe/files/patch-pyproject.toml
new file mode 100644
index 000000000000..2fb0a6ed1624
--- /dev/null
+++ b/textproc/py-markupsafe/files/patch-pyproject.toml
@@ -0,0 +1,18 @@
+--- pyproject.toml.orig	2024-10-18 15:03:06 UTC
++++ pyproject.toml
+@@ -1,5 +1,5 @@
+ [project]
+-name = "MarkupSafe"
++name = "markupsafe"
+ version = "3.0.2"
+ description = "Safely add untrusted strings to HTML/XML markup."
+ readme = "README.md"
+@@ -26,7 +26,7 @@ Chat = "https://discord.gg/pallets"
+ Chat = "https://discord.gg/pallets"
+ 
+ [build-system]
+-requires = ["setuptools>=70.1"]
++requires = ["setuptools>=61"]
+ build-backend = "setuptools.build_meta"
+ 
+ [tool.pytest.ini_options]
diff --git a/textproc/py-markupsafe/files/patch-setup.py b/textproc/py-markupsafe/files/patch-setup.py
deleted file mode 100644
index 7f80db046e9c..000000000000
--- a/textproc/py-markupsafe/files/patch-setup.py
+++ /dev/null
@@ -1,11 +0,0 @@
---- setup.py.orig	2024-02-02 16:03:42 UTC
-+++ setup.py
-@@ -39,7 +39,7 @@ def run_setup(with_binary):
- 
- def run_setup(with_binary):
-     setup(
--        name="MarkupSafe",
-+        name="markupsafe",
-         cmdclass={"build_ext": ve_build_ext},
-         ext_modules=ext_modules if with_binary else [],
-     )