From 6d1bc2c228e2eda374049ebde84675322b9993ee Mon Sep 17 00:00:00 2001 From: yashlamba Date: Thu, 19 Oct 2023 16:07:10 +0200 Subject: [PATCH] services: custom_fields: date: use parse_edtf from babel-edtf --- invenio_records_resources/services/custom_fields/date.py | 2 +- setup.cfg | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/invenio_records_resources/services/custom_fields/date.py b/invenio_records_resources/services/custom_fields/date.py index 7bc879ed..30070c3c 100644 --- a/invenio_records_resources/services/custom_fields/date.py +++ b/invenio_records_resources/services/custom_fields/date.py @@ -10,7 +10,7 @@ import calendar from arrow import Arrow -from edtf import parse_edtf +from babel_edtf import parse_edtf from edtf.parser.edtf_exceptions import EDTFParseException from marshmallow import fields from marshmallow_utils.fields import EDTFDateString, ISODateString diff --git a/setup.cfg b/setup.cfg index 575312e3..1e31069d 100644 --- a/setup.cfg +++ b/setup.cfg @@ -28,6 +28,7 @@ packages = find: python_requires = >=3.7 zip_safe = False install_requires = + babel-edtf>=1.1.0 flask-resources>=1.0.0,<2.0.0 invenio-accounts>=3.0.0,<4.0.0 invenio-base>=1.2.12,<2.0.0