From 84cde4b4a66a8ad6b6c2cf213328c9a710b75df8 Mon Sep 17 00:00:00 2001 From: Ivan Anfimov Date: Tue, 29 Apr 2025 13:36:11 +0000 Subject: [PATCH] Remove iso8601 and update requirements Change-Id: Idaa7da98ccc4ccfb8c00b048dda477ca654ddbe9 --- mistraldashboard/default/utils.py | 4 ++-- requirements.txt | 4 ++-- test-requirements.txt | 3 --- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/mistraldashboard/default/utils.py b/mistraldashboard/default/utils.py index e69fe53..da6d63a 100644 --- a/mistraldashboard/default/utils.py +++ b/mistraldashboard/default/utils.py @@ -12,8 +12,8 @@ # See the License for the specific language governing permissions and # limitations under the License. +from dateutil import parser from django.template.loader import render_to_string -import iso8601 import json TYPES = { @@ -53,7 +53,7 @@ def booleanfield(x): def humantime(x): return render_to_string("mistral/default/_humantime.html", - {"datetime": iso8601.parse_date(x)}) + {"datetime": parser.parse(x)}) def prettyprint(x): diff --git a/requirements.txt b/requirements.txt index b9cb2b1..e37aa64 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,7 +3,7 @@ # process, which may cause wedges in the gate later. pbr!=2.1.0,>=2.0.0 # Apache-2.0 -iso8601>=0.1.11 # MIT python-mistralclient>=4.3.0 # Apache-2.0 PyYAML>=3.12 # MIT -horizon>=17.1.0 # Apache-2.0 + +horizon>=23.1.1 # Apache-2.0 diff --git a/test-requirements.txt b/test-requirements.txt index 9bebdfc..a6b541e 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -6,6 +6,3 @@ nodeenv>=0.9.4 # BSD selenium>=2.50.1 # Apache-2.0 xvfbwrapper>=0.1.3 #license: MIT stestr>=2.0.0 # Apache-2.0 - -# Horizon requirements -django-compressor>=2.0 # MIT