[Git][debian-gis-team/rasterio][master] Add patch to fix PyparsingDeprecationWarnings with pyparsing 3.3.
Bas Couwenberg (@sebastic)
gitlab at salsa.debian.org
Sat Mar 21 08:00:21 GMT 2026
Bas Couwenberg pushed to branch master at Debian GIS Project / rasterio
Commits:
0d968ccf by Bas Couwenberg at 2026-03-21T08:58:25+01:00
Add patch to fix PyparsingDeprecationWarnings with pyparsing 3.3.
- - - - -
4 changed files:
- debian/changelog
- debian/control
- + debian/patches/pyparsing-3.3.patch
- debian/patches/series
Changes:
=====================================
debian/changelog
=====================================
@@ -1,7 +1,11 @@
rasterio (1.5.0-2) UNRELEASED; urgency=medium
+ [ Antonio Valentino ]
* Add myself to Uploaders in d/control.
+ [ Bas Couwenberg ]
+ * Add patch to fix PyparsingDeprecationWarnings with pyparsing 3.3.
+
-- Antonio Valentino <antonio.valentino at tiscali.it> Tue, 06 Jan 2026 18:56:00 +0000
rasterio (1.5.0-1) unstable; urgency=medium
=====================================
debian/control
=====================================
@@ -21,6 +21,7 @@ Build-Depends: debhelper-compat (= 13),
python3-hypothesis <!nocheck>,
python3-numpy,
python3-packaging <!nocheck>,
+ python3-pyparsing,
python3-pytest <!nocheck>,
python3-setuptools,
python3-shapely <!nocheck>
=====================================
debian/patches/pyparsing-3.3.patch
=====================================
@@ -0,0 +1,42 @@
+Description: Fix PyparsingDeprecationWarning with pyparsing 3.3.
+Author: Bas Couwenberg <sebastic at debian.org>
+Forwarded: https://github.com/rasterio/rasterio/pull/3548
+
+--- a/rasterio/_vendor/snuggs.py
++++ b/rasterio/_vendor/snuggs.py
+@@ -49,7 +49,7 @@ from typing import Mapping
+ from pyparsing import ( # type: ignore
+ Keyword,
+ Word,
+- oneOf,
++ one_of,
+ Literal,
+ QuotedString,
+ ParseException,
+@@ -161,7 +161,7 @@ var = pyparsing_common.identifier.set_pa
+ string = QuotedString("'") | QuotedString('"')
+ lparen = Literal("(").suppress()
+ rparen = Literal(")").suppress()
+-op = oneOf(" ".join(op_map.keys())).set_parse_action(
++op = one_of(" ".join(op_map.keys())).set_parse_action(
+ lambda source, loc, toks: op_map[toks[0]]
+ )
+
+@@ -177,7 +177,7 @@ def resolve_func(source, loc, toks):
+
+
+ func = Word(alphanums + "_").set_parse_action(resolve_func)
+-higher_func = oneOf(" ".join(higher_func_map.keys())).set_parse_action(
++higher_func = one_of(" ".join(higher_func_map.keys())).set_parse_action(
+ lambda source, loc, toks: higher_func_map[toks[0]]
+ )
+
+@@ -262,7 +262,7 @@ def processList(lst):
+
+ def handleLine(line):
+ try:
+- result = expr.parseString(line)
++ result = expr.parse_string(line)
+ return processList(result[0])
+ except ParseException as exc:
+ text = str(exc)
=====================================
debian/patches/series
=====================================
@@ -1 +1,2 @@
0001-Rename-rio-to-rasterio-Closes-788463.patch
+pyparsing-3.3.patch
View it on GitLab: https://salsa.debian.org/debian-gis-team/rasterio/-/commit/0d968ccfa15d3417e3a1ff8c0262e79ec4b8b051
--
View it on GitLab: https://salsa.debian.org/debian-gis-team/rasterio/-/commit/0d968ccfa15d3417e3a1ff8c0262e79ec4b8b051
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20260321/9f4effa6/attachment-0001.htm>
More information about the Pkg-grass-devel
mailing list