Skip to content

Commit ab3f22d

Browse files
authored
require python 3.10 (#94)
* require python 3.10 * exactextract from pypi on win * ee
1 parent 754e170 commit ab3f22d

File tree

6 files changed

+15
-15
lines changed

6 files changed

+15
-15
lines changed

.github/workflows/tests.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ jobs:
1717
strategy:
1818
matrix:
1919
os: [macos-latest, ubuntu-latest, windows-latest]
20-
environment-file: [ci/312.yaml]
20+
environment-file: [ci/313.yaml]
2121
include:
22-
- environment-file: ci/39.yaml
23-
os: ubuntu-latest
2422
- environment-file: ci/310.yaml
2523
os: ubuntu-latest
2624
- environment-file: ci/311.yaml
2725
os: ubuntu-latest
26+
- environment-file: ci/312.yaml
27+
os: ubuntu-latest
2828
- environment-file: ci/dev.yaml
2929
os: ubuntu-latest
3030
defaults:

ci/312.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ dependencies:
99
- rioxarray
1010
- joblib
1111
- rasterio
12+
- exactextract
1213
- tqdm
1314
- pyproj
1415
# testing
@@ -20,8 +21,5 @@ dependencies:
2021
- geodatasets
2122
- pyogrio
2223
- mypy
23-
- pip
24-
- pip:
25-
- exactextract
2624

2725

ci/39.yaml renamed to ci/313.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@ name: xvec
22
channels:
33
- conda-forge
44
dependencies:
5-
- python=3.9
5+
- python=3.13
66
# required
77
- shapely >=2
88
- xarray
99
- rioxarray
1010
- joblib
1111
- rasterio
12-
- exactextract
1312
- tqdm
1413
- pyproj
1514
# testing
@@ -19,4 +18,7 @@ dependencies:
1918
- pytest-reportlog
2019
- geopandas-base
2120
- geodatasets
22-
- pyogrio
21+
- pyogrio
22+
- pip
23+
- pip:
24+
- exactextract

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ classifiers = [
2525
"Programming Language :: Python :: 3",
2626
"Topic :: Scientific/Engineering :: GIS",
2727
]
28-
requires-python = ">=3.9"
28+
requires-python = ">=3.10"
2929
dependencies = [
3030
"xarray >= 2022.12.0",
3131
"pyproj >= 3.0.0",

xvec/accessor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
from __future__ import annotations
22

33
import warnings
4-
from collections.abc import Hashable, Mapping, Sequence
5-
from typing import TYPE_CHECKING, Any, Callable, cast
4+
from collections.abc import Callable, Hashable, Mapping, Sequence
5+
from typing import TYPE_CHECKING, Any, cast
66

77
import numpy as np
88
import pandas as pd

xvec/zonal.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
from __future__ import annotations
22

33
import gc
4-
from collections.abc import Hashable, Iterable, Sequence
5-
from typing import Any, Callable
4+
from collections.abc import Callable, Hashable, Iterable, Sequence
5+
from typing import Any
66

77
import numpy as np
88
import pandas as pd
@@ -52,7 +52,7 @@ def _zonal_stats_rasterize(
5252
transform = acc._obj.rio.transform()
5353

5454
labels = features.rasterize(
55-
zip(geometry, range(len(geometry))),
55+
zip(geometry, range(len(geometry)), strict=False),
5656
out_shape=(
5757
acc._obj[y_coords].shape[0],
5858
acc._obj[x_coords].shape[0],

0 commit comments

Comments
 (0)