From ba5abd37602f820c4295e5613034f28ba71bfcc6 Mon Sep 17 00:00:00 2001 From: vincentsarago Date: Thu, 4 Jul 2024 16:33:00 +0200 Subject: [PATCH] adapt for python 2.0 --- hug/output_format.py | 2 +- requirements/build_common.txt | 2 +- requirements/build_windows.txt | 2 +- requirements/development.txt | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hug/output_format.py b/hug/output_format.py index 6e60dfb3..fad76c7c 100644 --- a/hug/output_format.py +++ b/hug/output_format.py @@ -142,7 +142,7 @@ def register_json_converter(function): def numpy_listable(item): return item.tolist() - @json_convert(str, numpy.unicode_) + @json_convert(str, numpy.str_) def numpy_stringable(item): return str(item) diff --git a/requirements/build_common.txt b/requirements/build_common.txt index a312c6de..8680c18f 100644 --- a/requirements/build_common.txt +++ b/requirements/build_common.txt @@ -6,4 +6,4 @@ python-coveralls==2.9.2 wheel==0.33.4 PyJWT==1.7.1 pytest-xdist==1.29.0 -numpy<1.16 +numpy==2.0.0 diff --git a/requirements/build_windows.txt b/requirements/build_windows.txt index a67127df..94bededd 100644 --- a/requirements/build_windows.txt +++ b/requirements/build_windows.txt @@ -5,4 +5,4 @@ marshmallow==2.18.1 pytest==4.6.3 wheel==0.33.4 pytest-xdist==1.29.0 -numpy==1.15.4 +numpy==2.0.0 diff --git a/requirements/development.txt b/requirements/development.txt index 4142d01c..893b5dab 100644 --- a/requirements/development.txt +++ b/requirements/development.txt @@ -12,5 +12,5 @@ wheel pytest-xdist==1.29.0 marshmallow==2.18.1 ujson==1.35 -numpy<1.16 +numpy==2.0.0