diff --git a/docs/source/conf.py b/docs/source/conf.py index 31665c41..1050abd3 100755 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -68,6 +68,7 @@ # inherit without having to test which work which do not. autodoc_mock_imports = [ "affine", + "anyascii", "bottleneck", "cairo", "cartopy", @@ -102,7 +103,6 @@ "sklearn", "spotpy", "statsmodels", - "unidecode", "xarray", "xclim", "zlib", diff --git a/environment.yml b/environment.yml index 9295f339..916415d2 100644 --- a/environment.yml +++ b/environment.yml @@ -6,6 +6,7 @@ dependencies: - python >=3.8,<3.12 - pywps ==4.5.1 - affine + - anyascii - cartopy - click - fiona >=1.9 @@ -19,8 +20,6 @@ dependencies: - numpy - owslib - pandas - - pandoc - - poppler - psutil - psycopg2 - pymetalink @@ -31,8 +30,6 @@ dependencies: - requests - rioxarray - shapely - - tbb - - unidecode - urlpath - xarray >=0.18 - xclim >=0.31.0 diff --git a/pyproject.toml b/pyproject.toml index dc772ec8..559314be 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,6 +38,7 @@ classifiers = [ ] dynamic = ["description", "version"] dependencies = [ + "anyascii", "click", "jinja2", "matplotlib", @@ -66,8 +67,7 @@ dependencies = [ # Docs and other utilities "fsspec", "psycopg2", # to use postgres to log pywps requests like in Prod - "pymetalink", - "unidecode" + "pymetalink" ] [project.optional-dependencies] diff --git a/raven/processes/base_xclim.py b/raven/processes/base_xclim.py index 84b5082c..11896b0a 100644 --- a/raven/processes/base_xclim.py +++ b/raven/processes/base_xclim.py @@ -6,9 +6,9 @@ import requests import xarray as xr +from anyascii import anyascii from pywps import FORMATS, ComplexInput, ComplexOutput, LiteralInput, Process from pywps.app.Common import Metadata -from unidecode import unidecode LOGGER = logging.getLogger("PYWPS") @@ -68,8 +68,8 @@ def __init__(self): self._handler, identifier=identifier, version="0.1", - title=unidecode(attrs["long_name"]), - abstract=unidecode(attrs["abstract"]), + title=anyascii(attrs["long_name"]), + abstract=anyascii(attrs["abstract"]), inputs=self.load_inputs(eval(attrs["parameters"])), outputs=outputs, status_supported=True,