Skip to content

Commit

Permalink
Add 3.12 support, remove deps no longer used
Browse files Browse the repository at this point in the history
  • Loading branch information
mpiannucci committed Sep 3, 2024
1 parent b8c40ba commit bef1095
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
os: [windows-latest, ubuntu-latest, macos-latest]

steps:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name = "xpublish_wms"
authors = [{ name = "Matthew Iannucci", email = "[email protected]" }]
description = "WMS plugin for xpublish"
readme = "README.md"
requires-python = ">=3.9,<3.12"
requires-python = ">=3.9,<3.13"
keywords = ["xarray", "xpublish", "wms"]
license = { file = "LICENSE.txt" }

Expand Down
2 changes: 0 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,5 @@ cf_xarray
datashader
matplotlib
Pillow
rioxarray>=0.12.2
scikit-learn
xarray
xpublish>=0.3.0,<0.4.0
17 changes: 0 additions & 17 deletions xpublish_wms/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,23 +49,6 @@ def speed_and_dir_for_uv(u, v):
return [speed, dir]


def ensure_crs(
ds: Union[xr.Dataset, xr.DataArray],
default_crs: str = "EPSG:4326",
) -> Union[xr.Dataset, xr.DataArray]:
"""
Ensure our dataset has a CRS
:param ds:
:param default_crs:
:return:
"""
# logger.debug(f"CRS found in dataset : {ds.rio.crs}")
if not ds.rio.crs:
logger.debug(f"Settings default CRS : {default_crs}")
ds.rio.write_crs(default_crs, inplace=True)
return ds


def lnglat_to_cartesian(longitude, latitude):
"""
Converts latitude and longitude to cartesian coordinates
Expand Down

0 comments on commit bef1095

Please sign in to comment.