From ea560d243c1ee09b7be1d646c78b32efce3f8977 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Dec 30 2015 10:16:38 +0000 Subject: [PATCH 1/2] Drop the use of simplejson In python3 the std lib json module is at least as fast as simplejson and that gives us one less dependency which is always good. --- diff --git a/mdapi/__init__.py b/mdapi/__init__.py index 7428d37..473773b 100644 --- a/mdapi/__init__.py +++ b/mdapi/__init__.py @@ -22,13 +22,10 @@ ''' Top level of the mdapi aiohttp application. ''' +import json import os import urllib -try: - import simplejson as json -except ImportError: - import json import asyncio import werkzeug From e2d0d59d7ac6492915798860236239dcd993025a Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Dec 30 2015 10:17:36 +0000 Subject: [PATCH 2/2] Adjust the requirements.txt and the spec file to drop the dependency on simplejson --- diff --git a/mdapi.spec b/mdapi.spec index f922616..bc145fd 100644 --- a/mdapi.spec +++ b/mdapi.spec @@ -12,7 +12,6 @@ BuildArch: noarch BuildRequires: python3-aiohttp BuildRequires: python3-requests BuildRequires: python3-setuptools -BuildRequires: python3-simplejson BuildRequires: python3-sqlalchemy BuildRequires: python3-werkzeug BuildRequires: python3-devel @@ -21,7 +20,6 @@ BuildRequires: systemd Requires: python3-aiohttp Requires: python3-requests Requires: python3-setuptools -Requires: python3-simplejson Requires: python3-sqlalchemy Requires: python3-werkzeug diff --git a/requirements.txt b/requirements.txt index 1eb70e1..52e6698 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,5 @@ aiohttp requests -simplejson sqlalchemy werkzeug fedmsg