Skip to contentSkip to conversation

package/python-webpy: bump to version 0.76

PATCH Applied yegorslists--- via buildroot 1 participant 2 messages Jun 9 – Jun 11

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 package/python-webpy: bump to version 0.76

From: Yegor Yefremov <[email protected]>

Change log:

99e5eed Fix session.py to allow suppression of the cookie (#737) c962428 Document development setup (#823)
2598dfe Allow python v3.14.x (#822)
7853e70 Bump actions/checkout from 5 to 6 (#817)
3e05bc6 refactor: remove python2 compatible import usages (#728) c888e19 Remove required Python version limit (#805)
dc561bc Bump actions/setup-python from 5 to 6 (#814)
1444393 Bump actions/checkout from 4 to 5 (#812)
efcad93 Fix query for #807 and #808 (#809)
19da0b8 pre-commit run --all-files, fix SQLQuery (#808)
3ba1b40 Address CVE-2025-3818 (#807)
9aeaf55 Fix: disable accessing special variables from template (#803) 25dc267 Automate PyPI release on new tag push (#797)
952d1fd Propagate field notes (#790)
d364932 Fix: enable Python 3.12 to parse templates (#785)
5709b1f Bump actions/setup-python from 4 to 5 (#788)
9913d80 Keep GitHub Actions up to date with Dependabot (#787) cab78cf Fix: update deprecated sqlite3 datetime and timestamp adapters (#786) ed3e92c Fix storify and multipart (#778)

Remove the upstreamed patch and add a license file.

---
Changes v1 -> v2:
- use newly pushed tag
- add a license file

 .../0001-Address-CVE-2025-3818.patch          | 42 -------------------
 package/python-webpy/python-webpy.hash        |  3 +-
 package/python-webpy/python-webpy.mk          |  5 ++-
 3 files changed, 5 insertions(+), 45 deletions(-)
 delete mode 100644 package/python-webpy/0001-Address-CVE-2025-3818.patch
package/python-webpy/0001-Address-CVE-2025-3818.patch deleted +0 -42
deleted file mode 100644
index d8373cbac6..0000000000
@@ -1,42 +0,0 @@
-From 3ba1b40e5a828a26a1df1b49cdc87395f3274c81 Mon Sep 17 00:00:00 2001
-From: Mek <[email protected]>
-Date: Wed, 7 May 2025 15:14:44 -0400
-Subject: [PATCH] Address CVE-2025-3818 (#807)
-
-* Address CVE-2025-3818
-
-Co-authored-by: Scott Barnes <[email protected]>
-
-Upstream: https://github.com/webpy/webpy/commit/3ba1b40e5a828a26a1df1b49cdc87395f3274c81
-
-Fixes CVE-2025-3818: https://github.com/advisories/GHSA-9g47-36rw-gjh2
-
-Signed-off-by: Bernd Kuhls <[email protected]>
----
- web/db.py | 10 +++++++++-
- 1 file changed, 9 insertions(+), 1 deletion(-)
-
-diff --git a/web/db.py b/web/db.py
-index 5284f8d0..ba3e12c5 100644
---- a/web/db.py
-+++ b/web/db.py
-@@ -1198,10 +1198,18 @@ def _process_insert_query(self, query, tablename, seqname):
-                 seqname = None
- 
-         if seqname:
--            query += "; SELECT currval('%s')" % seqname
-+            query += self.get_sequence_query(seqname)
- 
-         return query
- 
-+    def get_sequence_query(self, seqname):
-+        import re
-+        # Ensure the sequence name is valid
-+        if not re.match(r'^[a-zA-Z_][a-zA-Z0-9_$]*$', seqname):
-+            raise ValueError(f"Invalid sequence name: {seqname}")
-+        return SQLQuery("; SELECT currval(%s)", seqname)
-+
-+
-     def _get_all_sequences(self):
-         """Query postgres to find names of all sequences used in this database."""
-         if self._sequences is None:
package/python-webpy/python-webpy.hash +2 -1
index 0fb39170c7..8514b6a4f0 100644
@@ -1,2 +1,3 @@
 # Locally computed
-sha256  eee36e423b5e85463145159d94735e3c3a4c1c8078555042d8139348350b0022  python-webpy-0.70.tar.gz
+sha256  c5d5df8b95c22cacb6be580cee88459922ff114894fe4e146da634ab3d1f9185  python-webpy-v0.76.tar.gz
+sha256  791bf6e9419435f114a19fc6519ff33738021eb3c41b18490943230ab0894df9  LICENSE.txt
package/python-webpy/python-webpy.mk +3 -2
index 62b2331c08..ef885cd428 100644
@@ -4,9 +4,10 @@
 #
 ################################################################################
 
-PYTHON_WEBPY_VERSION = 0.70
-PYTHON_WEBPY_SITE = $(call github,webpy,webpy,webpy-$(PYTHON_WEBPY_VERSION))
+PYTHON_WEBPY_VERSION = v0.76
+PYTHON_WEBPY_SITE = $(call github,webpy,webpy,$(PYTHON_WEBPY_VERSION))
 PYTHON_WEBPY_SETUP_TYPE = setuptools
 PYTHON_WEBPY_LICENSE = Public Domain
+PYTHON_WEBPY_LICENSE_FILES = LICENSE.txt
 
 $(eval $(python-package))
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 24 lines · yegorslists--- via buildroot

From: Yegor Yefremov <[email protected]>

Change log:

99e5eed Fix session.py to allow suppression of the cookie (#737) c962428 Document development setup (#823)
2598dfe Allow python v3.14.x (#822)
7853e70 Bump actions/checkout from 5 to 6 (#817)
3e05bc6 refactor: remove python2 compatible import usages (#728) c888e19 Remove required Python version limit (#805)
dc561bc Bump actions/setup-python from 5 to 6 (#814)
1444393 Bump actions/checkout from 4 to 5 (#812)
efcad93 Fix query for #807 and #808 (#809)
19da0b8 pre-commit run --all-files, fix SQLQuery (#808)
3ba1b40 Address CVE-2025-3818 (#807)
9aeaf55 Fix: disable accessing special variables from template (#803) 25dc267 Automate PyPI release on new tag push (#797)
952d1fd Propagate field notes (#790)
d364932 Fix: enable Python 3.12 to parse templates (#785)
5709b1f Bump actions/setup-python from 4 to 5 (#788)
9913d80 Keep GitHub Actions up to date with Dependabot (#787) cab78cf Fix: update deprecated sqlite3 datetime and timestamp adapters (#786) ed3e92c Fix storify and multipart (#778)

Quoted 3 lines

Remove the upstreamed patch and add a license file.

Applied to master. For info, I slightly reworked the patch. See:
https://gitlab.com/buildroot.org/buildroot/-/commit/dab0de6277c484998842f4617a9730ce2ae3b050

Best regards,

Julien.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot