Skip to content

Commit f02c368

Browse files
committed
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 <[email protected]>
1 parent 0655f4e commit f02c368

File tree

3 files changed

+93
-2
lines changed

3 files changed

+93
-2
lines changed

lang/python/python-flask-seasurf/Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@
88
include $(TOPDIR)/rules.mk
99

1010
PKG_NAME:=python-flask-seasurf
11-
PKG_VERSION:=1.1.1
11+
PKG_VERSION:=2.0.0
1212
PKG_RELEASE:=1
1313

1414
PYPI_NAME:=Flask-SeaSurf
15-
PKG_HASH:=54537008c769ac0ada8237877327c3e7ed74dcd8b01e74a9120ee0232c5951a9
15+
PYTHON3_PKG_WHEEL_NAME:=flask_seasurf
16+
PKG_HASH:=8e4003be1580ea8663d6bd3adf272f549ca4d735848895192618ed1945d5ad3c
1617

1718
PKG_MAINTAINER:=Josef Schlehofer <[email protected]>
1819
PKG_LICENSE:=BSD-3-Clause
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
From 8e6267a4c0e8cfedd18ab3efe616904d77ef99d6 Mon Sep 17 00:00:00 2001
2+
From: Josef Schlehofer <[email protected]>
3+
Date: Mon, 3 Nov 2025 23:15:33 +0100
4+
Subject: [PATCH] setup.py: use up-to-date SPDX license identifier with LICENSE
5+
file
6+
7+
It fixes setuptoolsDeprecationWarning about deprecated license
8+
classifiers and adds LICENSE file.
9+
10+
Signed-off-by: Josef Schlehofer <[email protected]>
11+
---
12+
setup.py | 4 ++--
13+
1 file changed, 2 insertions(+), 2 deletions(-)
14+
15+
--- a/setup.py
16+
+++ b/setup.py
17+
@@ -15,7 +15,8 @@ setup(
18+
name='Flask-SeaSurf',
19+
version=__version__,
20+
url='https://github.com/maxcountryman/flask-seasurf/',
21+
- license='BSD',
22+
+ license='BSD-3-Clause',
23+
+ license_files=['LICENSE'],
24+
author='Max Countryman',
25+
author_email='[email protected]',
26+
description='An updated CSRF extension for Flask.',
27+
@@ -30,7 +31,6 @@ setup(
28+
'Development Status :: 4 - Beta',
29+
'Environment :: Web Environment',
30+
'Intended Audience :: Developers',
31+
- 'License :: OSI Approved :: BSD License',
32+
'Operating System :: OS Independent',
33+
'Programming Language :: Python',
34+
'Programming Language :: Python :: 3',
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
From 6b578f03f4efd89a05a120de919386a5834e4900 Mon Sep 17 00:00:00 2001
2+
From: Josef Schlehofer <[email protected]>
3+
Date: Mon, 3 Nov 2025 23:35:26 +0100
4+
Subject: [PATCH 2/3] Add pyproject.toml with modern Python packaging
5+
configuration
6+
7+
This follows PEP 621 and as well while keeping backward compatibility
8+
with existing setup.py.
9+
10+
Signed-off-by: Josef Schlehofer <[email protected]>
11+
---
12+
pyproject.toml | 38 ++++++++++++++++++++++++++++++++++++++
13+
1 file changed, 38 insertions(+)
14+
create mode 100644 pyproject.toml
15+
16+
--- /dev/null
17+
+++ b/pyproject.toml
18+
@@ -0,0 +1,38 @@
19+
+[build-system]
20+
+requires = ["setuptools>=61.0", "wheel"]
21+
+build-backend = "setuptools.build_meta"
22+
+
23+
+[project]
24+
+name = "Flask-SeaSurf"
25+
+version = "2.0.0"
26+
+description = "An updated CSRF extension for Flask."
27+
+readme = {file = "README.markdown", content-type = "text/markdown"}
28+
+license = "BSD-3-Clause"
29+
+license-files = ["LICENSE"]
30+
+authors = [{name = "Max Countryman", email = "[email protected]"}]
31+
+requires-python = ">=3.8"
32+
+dependencies = ["Flask"]
33+
+classifiers = [
34+
+ "Development Status :: 4 - Beta",
35+
+ "Environment :: Web Environment",
36+
+ "Intended Audience :: Developers",
37+
+ "Operating System :: OS Independent",
38+
+ "Programming Language :: Python",
39+
+ "Programming Language :: Python :: 3",
40+
+ "Programming Language :: Python :: 3.8",
41+
+ "Programming Language :: Python :: 3.9",
42+
+ "Programming Language :: Python :: 3.10",
43+
+ "Programming Language :: Python :: 3.11",
44+
+ "Programming Language :: Python :: 3.12",
45+
+ "Topic :: Internet :: WWW/HTTP :: Dynamic Content",
46+
+ "Topic :: Software Development :: Libraries :: Python Modules",
47+
+]
48+
+
49+
+[project.urls]
50+
+Homepage = "https://github.com/maxcountryman/flask-seasurf/"
51+
+
52+
+[tool.setuptools]
53+
+py-modules = ["flask_seasurf"]
54+
+
55+
+[project.optional-dependencies]
56+
+test = ["pytest"]

0 commit comments

Comments
 (0)