From f02c368344e331b972113c7505b06baf3fefd980 Mon Sep 17 00:00:00 2001 From: Josef Schlehofer Date: Sun, 2 Nov 2025 17:45:48 +0100 Subject: [PATCH] python-flask-seasurf: update to 2.0.0 Changes can be found here: https://github.com/maxcountryman/flask-seasurf/tree/2.0.0 Signed-off-by: Josef Schlehofer --- lang/python/python-flask-seasurf/Makefile | 5 +- ...to-date-SPDX-license-identifier-with.patch | 34 +++++++++++ ...ml-with-modern-Python-packaging-conf.patch | 56 +++++++++++++++++++ 3 files changed, 93 insertions(+), 2 deletions(-) create mode 100644 lang/python/python-flask-seasurf/patches/0001-setup.py-use-up-to-date-SPDX-license-identifier-with.patch create mode 100644 lang/python/python-flask-seasurf/patches/0002-Add-pyproject.toml-with-modern-Python-packaging-conf.patch diff --git a/lang/python/python-flask-seasurf/Makefile b/lang/python/python-flask-seasurf/Makefile index 2451826936..2770e8894a 100644 --- a/lang/python/python-flask-seasurf/Makefile +++ b/lang/python/python-flask-seasurf/Makefile @@ -8,11 +8,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=python-flask-seasurf -PKG_VERSION:=1.1.1 +PKG_VERSION:=2.0.0 PKG_RELEASE:=1 PYPI_NAME:=Flask-SeaSurf -PKG_HASH:=54537008c769ac0ada8237877327c3e7ed74dcd8b01e74a9120ee0232c5951a9 +PYTHON3_PKG_WHEEL_NAME:=flask_seasurf +PKG_HASH:=8e4003be1580ea8663d6bd3adf272f549ca4d735848895192618ed1945d5ad3c PKG_MAINTAINER:=Josef Schlehofer PKG_LICENSE:=BSD-3-Clause diff --git a/lang/python/python-flask-seasurf/patches/0001-setup.py-use-up-to-date-SPDX-license-identifier-with.patch b/lang/python/python-flask-seasurf/patches/0001-setup.py-use-up-to-date-SPDX-license-identifier-with.patch new file mode 100644 index 0000000000..52b2cb0a71 --- /dev/null +++ b/lang/python/python-flask-seasurf/patches/0001-setup.py-use-up-to-date-SPDX-license-identifier-with.patch @@ -0,0 +1,34 @@ +From 8e6267a4c0e8cfedd18ab3efe616904d77ef99d6 Mon Sep 17 00:00:00 2001 +From: Josef Schlehofer +Date: Mon, 3 Nov 2025 23:15:33 +0100 +Subject: [PATCH] setup.py: use up-to-date SPDX license identifier with LICENSE + file + +It fixes setuptoolsDeprecationWarning about deprecated license +classifiers and adds LICENSE file. + +Signed-off-by: Josef Schlehofer +--- + setup.py | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +--- a/setup.py ++++ b/setup.py +@@ -15,7 +15,8 @@ setup( + name='Flask-SeaSurf', + version=__version__, + url='https://github.com/maxcountryman/flask-seasurf/', +- license='BSD', ++ license='BSD-3-Clause', ++ license_files=['LICENSE'], + author='Max Countryman', + author_email='maxc@me.com', + description='An updated CSRF extension for Flask.', +@@ -30,7 +31,6 @@ setup( + 'Development Status :: 4 - Beta', + 'Environment :: Web Environment', + 'Intended Audience :: Developers', +- 'License :: OSI Approved :: BSD License', + 'Operating System :: OS Independent', + 'Programming Language :: Python', + 'Programming Language :: Python :: 3', diff --git a/lang/python/python-flask-seasurf/patches/0002-Add-pyproject.toml-with-modern-Python-packaging-conf.patch b/lang/python/python-flask-seasurf/patches/0002-Add-pyproject.toml-with-modern-Python-packaging-conf.patch new file mode 100644 index 0000000000..8842dec543 --- /dev/null +++ b/lang/python/python-flask-seasurf/patches/0002-Add-pyproject.toml-with-modern-Python-packaging-conf.patch @@ -0,0 +1,56 @@ +From 6b578f03f4efd89a05a120de919386a5834e4900 Mon Sep 17 00:00:00 2001 +From: Josef Schlehofer +Date: Mon, 3 Nov 2025 23:35:26 +0100 +Subject: [PATCH 2/3] Add pyproject.toml with modern Python packaging + configuration + +This follows PEP 621 and as well while keeping backward compatibility +with existing setup.py. + +Signed-off-by: Josef Schlehofer +--- + pyproject.toml | 38 ++++++++++++++++++++++++++++++++++++++ + 1 file changed, 38 insertions(+) + create mode 100644 pyproject.toml + +--- /dev/null ++++ b/pyproject.toml +@@ -0,0 +1,38 @@ ++[build-system] ++requires = ["setuptools>=61.0", "wheel"] ++build-backend = "setuptools.build_meta" ++ ++[project] ++name = "Flask-SeaSurf" ++version = "2.0.0" ++description = "An updated CSRF extension for Flask." ++readme = {file = "README.markdown", content-type = "text/markdown"} ++license = "BSD-3-Clause" ++license-files = ["LICENSE"] ++authors = [{name = "Max Countryman", email = "maxc@me.com"}] ++requires-python = ">=3.8" ++dependencies = ["Flask"] ++classifiers = [ ++ "Development Status :: 4 - Beta", ++ "Environment :: Web Environment", ++ "Intended Audience :: Developers", ++ "Operating System :: OS Independent", ++ "Programming Language :: Python", ++ "Programming Language :: Python :: 3", ++ "Programming Language :: Python :: 3.8", ++ "Programming Language :: Python :: 3.9", ++ "Programming Language :: Python :: 3.10", ++ "Programming Language :: Python :: 3.11", ++ "Programming Language :: Python :: 3.12", ++ "Topic :: Internet :: WWW/HTTP :: Dynamic Content", ++ "Topic :: Software Development :: Libraries :: Python Modules", ++] ++ ++[project.urls] ++Homepage = "https://github.com/maxcountryman/flask-seasurf/" ++ ++[tool.setuptools] ++py-modules = ["flask_seasurf"] ++ ++[project.optional-dependencies] ++test = ["pytest"] -- 2.30.2