Skip to content

Commit

Permalink
Remove chest (#8279)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbourbeau committed Oct 21, 2021
1 parent 6dbf095 commit a544670
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 24 deletions.
1 change: 0 additions & 1 deletion continuous_integration/environment-3.7.yaml
Expand Up @@ -37,7 +37,6 @@ dependencies:
- aiohttp
- bokeh
- httpretty
- chest
- s3fs
- cloudpickle
- crick
Expand Down
1 change: 0 additions & 1 deletion continuous_integration/environment-3.8-dev.yaml
Expand Up @@ -38,7 +38,6 @@ dependencies:
- aiohttp
- bokeh
- httpretty
- chest
- cloudpickle
- crick
- cytoolz
Expand Down
1 change: 0 additions & 1 deletion continuous_integration/environment-3.8.yaml
Expand Up @@ -37,7 +37,6 @@ dependencies:
- bokeh
- httpretty
- aiohttp
- chest
- s3fs
- cloudpickle
- crick
Expand Down
1 change: 0 additions & 1 deletion continuous_integration/environment-3.9.yaml
Expand Up @@ -38,7 +38,6 @@ dependencies:
- bokeh
- httpretty
- aiohttp
- chest
- s3fs
- cloudpickle
- crick
Expand Down
5 changes: 0 additions & 5 deletions dask/dataframe/core.py
Expand Up @@ -18,11 +18,6 @@
from pandas.util import cache_readonly
from tlz import first, merge, partition_all, remove, unique

try:
from chest import Chest as Cache
except ImportError:
Cache = dict

from .. import array as da
from .. import core, threaded
from ..array.core import Array, normalize_arg
Expand Down
10 changes: 0 additions & 10 deletions dask/local.py
Expand Up @@ -134,9 +134,6 @@ def queue_get(q):
return q.get()


DEBUG = False


def start_state_from_dask(dsk, cache=None, sortkey=None):
"""Start state from a dask
Expand Down Expand Up @@ -274,13 +271,6 @@ def finish_task(
s = state["waiting_data"][dep]
s.remove(key)
if not s and dep not in results:
if DEBUG:
from chest.core import nbytes

print(
"Key: %s\tDep: %s\t NBytes: %.2f\t Release"
% (key, dep, sum(map(nbytes, state["cache"].values()) / 1e6))
)
release_data(dep, state, delete=delete)
elif delete and dep not in results:
release_data(dep, state, delete=delete)
Expand Down
6 changes: 1 addition & 5 deletions dask/tests/test_local.py
Expand Up @@ -97,11 +97,7 @@ def test_get_sync_num_workers(self):


def test_cache_options():
try:
from chest import Chest
except ImportError:
return
cache = Chest()
cache = {}

def inc2(x):
assert "y" in cache
Expand Down

0 comments on commit a544670

Please sign in to comment.