Skip to content

Commit

Permalink
replace external "simplejson" backport from Py3 to Py3 with plain "js…
Browse files Browse the repository at this point in the history
…on" module
  • Loading branch information
a-detiste committed Jan 17, 2025
1 parent ed34981 commit 0f263d6
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 10 deletions.
1 change: 0 additions & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ multiprocess
click
asciitree
pyyaml
simplejson
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ dependencies = [
"pyfaidx",
"asciitree",
"pyyaml",
"simplejson",
]

[project.optional-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion src/cooler/api.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
from __future__ import annotations

import json
import os

import h5py
import numpy as np
import pandas as pd
import simplejson as json
from pandas.api.types import is_integer_dtype
from scipy.sparse import coo_matrix

Expand Down
2 changes: 1 addition & 1 deletion src/cooler/cli/cload.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import json
import sys

import click
import h5py
import numpy as np
import pandas as pd
import simplejson as json
from cytoolz import compose
from multiprocess import Pool

Expand Down
2 changes: 1 addition & 1 deletion src/cooler/cli/info.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import json
import sys

import click
import simplejson as json

from ..api import Cooler
from ..util import attrs_to_jsonable
Expand Down
2 changes: 1 addition & 1 deletion src/cooler/cli/load.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import json
import sys

import click
import numpy as np
import pandas as pd
import simplejson as json

from ..create import (
BIN_DTYPE,
Expand Down
2 changes: 1 addition & 1 deletion src/cooler/create/_create.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from __future__ import annotations

import json
import os
import os.path as op
import posixpath
Expand All @@ -12,7 +13,6 @@
import h5py
import numpy as np
import pandas as pd
import simplejson as json

from .._logging import get_logger
from .._typing import Tabular
Expand Down
3 changes: 1 addition & 2 deletions src/cooler/fileops.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@
import os

# from textwrap import dedent
import json
import warnings
from collections.abc import Callable
from datetime import datetime
from numbers import Number
from typing import Any, Literal

import simplejson as json

try:
from simplejson import JSONDecodeError
except ImportError:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_cli_ingest.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# from io import StringIO
import json
import os.path as op
import tempfile
from glob import glob

import numpy as np
import pandas as pd
import pytest
import simplejson as json

# from _common import cooler_cmp
from click.testing import CliRunner
Expand Down

0 comments on commit 0f263d6

Please sign in to comment.