Skip to content

cli: remove dependency on simplejson #3224

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions cli/copr-cli.spec
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ BuildRequires: util-linux
%if %{with python3}
Requires: python3-copr >= %min_python_copr_version
Requires: python3-jinja2
Requires: python3-simplejson
Requires: python3-humanize
Requires: python3-koji

Expand All @@ -46,12 +45,10 @@ BuildRequires: python3-humanize
BuildRequires: python3-pytest
BuildRequires: python3-responses
BuildRequires: python3-setuptools
BuildRequires: python3-simplejson
BuildRequires: python3-munch
%else
Requires: python-copr >= %min_python_copr_version
Requires: python-jinja2
Requires: python-simplejson
Requires: python-humanize

BuildRequires: pytest
Expand All @@ -62,7 +59,6 @@ BuildRequires: python-humanize
BuildRequires: python-mock
BuildRequires: python2-responses
BuildRequires: python-setuptools
BuildRequires: python-simplejson
BuildRequires: python-munch
%endif

Expand Down
4 changes: 2 additions & 2 deletions cli/copr_cli/util.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8

import json
import humanize
import simplejson


try:
Expand Down Expand Up @@ -66,4 +66,4 @@ def serializable(result):


def json_dumps(result):
return simplejson.dumps(serializable(result), indent=4, sort_keys=True, for_json=True)
return json.dumps(serializable(result), indent=4, sort_keys=True)
1 change: 0 additions & 1 deletion cli/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
requires = [
'copr',
'humanize',
'simplejson',
'jinja2',
'setuptools',
]
Expand Down