Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,9 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']
python-version: ['3.10', '3.11', '3.12']
gdal-version: ['3.9.3']
include:
- python-version: '3.8'
gdal-version: '3.4.3'
- python-version: '3.9'
gdal-version: '3.5.3'
- python-version: '3.10'
gdal-version: '3.6.4'
- python-version: '3.11'
Expand Down Expand Up @@ -95,8 +91,8 @@ jobs:
strategy:
fail-fast: true
matrix:
os: [macos-13, macos-14]
python-version: ['3.9', '3.10', '3.11', '3.12']
os: [macos-14]
python-version: ['3.10', '3.11', '3.12']
include:
- os: ubuntu-latest
python-version: '*'
Expand Down Expand Up @@ -154,7 +150,7 @@ jobs:
micromamba run -n test python -m pytest -v -m "not wheel" -rxXs --cov fiona --cov-report term-missing

- name: Test with Coverage (OSX)
if: "${{matrix.os}} == 'macos-13' || ${{matrix.os}} == 'macos-14'"
if: matrix.os == 'macos-14'
shell: bash -l {0}
run: |
micromamba run -n test python -m pytest -v -m "not wheel" -rxXs --cov fiona --cov-report term-missing
8 changes: 4 additions & 4 deletions fiona/_vendor/snuggs.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

from pyparsing import ( # type: ignore
Keyword,
oneOf,
one_of,
Literal,
QuotedString,
ParseException,
Expand Down Expand Up @@ -158,7 +158,7 @@ def resolve_var(source, loc, toks):
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]]
)

Expand All @@ -177,7 +177,7 @@ def resolve_func(source, loc, toks):
# variables.
func = Regex(r"(?<=\()[{}]+".format(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]]
)

Expand Down Expand Up @@ -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)
Expand Down
2 changes: 0 additions & 2 deletions fiona/fio/cat.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@
default=False,
help="Optionally cut geometries at the anti-meridian. To be used only for a geographic destination CRS.",
)
@click.option('--where', default=None,
help="attribute filter using SQL where clause")
@options.open_opt
@click.pass_context
@with_context_env
Expand Down
2 changes: 1 addition & 1 deletion fiona/fio/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def filter_cmd(ctx, pipeline, use_rs, snuggs_only):

if not pipeline.startswith("("):
test_string = f"({pipeline})"
expr.parseString(test_string)
expr.parse_string(test_string)
except ExpressionError:
# It's a snuggs expression.
log.info("Detected a snuggs expression.")
Expand Down
4 changes: 1 addition & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,12 @@ classifiers = [
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"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 :: Scientific/Engineering :: GIS",
]
requires-python = ">=3.8"
requires-python = ">=3.10"
dependencies = [
"attrs>=19.2.0",
"certifi",
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

aiohttp
boto3>=1.3.1
coverage~=6.5
coverage>=7.14.3
cython>=3
fsspec
pyparsing
Expand Down
Loading