From c6272a92e2b0c49936f54cecec188dadecd51ad4 Mon Sep 17 00:00:00 2001 From: Malte Iwanicki Date: Thu, 5 Jan 2023 10:20:38 +0100 Subject: [PATCH] [Feature #9147] updates pycsw to 3.x --- geonode/catalogue/backends/pycsw_local_mappings.py | 8 +++++++- requirements.txt | 3 ++- setup.cfg | 4 +++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/geonode/catalogue/backends/pycsw_local_mappings.py b/geonode/catalogue/backends/pycsw_local_mappings.py index ead12f37b9a..38b60070adf 100644 --- a/geonode/catalogue/backends/pycsw_local_mappings.py +++ b/geonode/catalogue/backends/pycsw_local_mappings.py @@ -78,5 +78,11 @@ 'pycsw:Contributor': 'contributor', 'pycsw:Relation': 'relation', 'pycsw:Links': 'download_links', - } + "pycsw:Edition": "edition", + "pycsw:Platform": "platform", + "pycsw:Instrument": "instrument", + "pycsw:SensorType": "sensor_type", + "pycsw:CloudCover": "cloud_cover", + "pycsw:Bands": "bands", + }, } diff --git a/requirements.txt b/requirements.txt index d308bc79782..5e43337bd41 100644 --- a/requirements.txt +++ b/requirements.txt @@ -54,7 +54,8 @@ pyjwt==2.6.0 # geopython dependencies pyproj<3.5.0 OWSLib==0.27.2 -pycsw==2.6.1 +#TODO below: change to stable pycsw=3.x once released +git+https://github.com/geopython/pycsw.git@master SQLAlchemy==1.4.45 # required by PyCSW Shapely==1.8.5.post1 mercantile==1.2.1 diff --git a/setup.cfg b/setup.cfg index 9eab248319d..5fd7e6e54fd 100644 --- a/setup.cfg +++ b/setup.cfg @@ -80,9 +80,11 @@ install_requires = # geopython dependencies pyproj<3.5.0 OWSLib==0.27.2 - pycsw==2.6.1 + #TODO below: change to stable pycsw=3.x once released + pycsw @ git+https://github.com/geopython/pycsw.git@master SQLAlchemy==1.4.45 # required by PyCSW Shapely==1.8.5.post1 + mercantile==1.2.1 geoip2==4.6.0 numpy==1.23.*