From d43a23e366603c5239a5edff1358b4fde7651f32 Mon Sep 17 00:00:00 2001 From: Alexandre Detiste Date: Fri, 30 Aug 2024 23:49:39 +0200 Subject: [PATCH] remove usage of external simplejson simplejson was a backport of Python3.x 'json' to Python2. It makes little sense to keep it now. (I learned that today) --- requirements.txt | 1 - serializable/helpers.py | 3 +-- setup.py | 1 - 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/requirements.txt b/requirements.txt index 194d31e..90f06bd 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,2 @@ pylint>2.0.0,<3.0.0 typechecks >= 0.0.2,<1.0.0 -simplejson>=3.0.0,<4.0.0 diff --git a/serializable/helpers.py b/serializable/helpers.py index 9b2662f..a2b9f78 100644 --- a/serializable/helpers.py +++ b/serializable/helpers.py @@ -14,10 +14,9 @@ Helper functions for deconstructing classes, functions, and user-defined objects into serializable types. """ +import json from types import FunctionType, BuiltinFunctionType -import simplejson as json - from .primitive_types import return_primitive def init_arg_names(obj): diff --git a/setup.py b/setup.py index 2705335..77370c2 100644 --- a/setup.py +++ b/setup.py @@ -54,7 +54,6 @@ ], install_requires=[ "typechecks>=0.0.2", - "simplejson", ], long_description=readme, long_description_content_type='text/markdown',