Skip to content
Open
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
2 changes: 1 addition & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
python-version: ${{ matrix.python_version }}

- name: Install pip dependencies
run: pip install .[test]
run: pip install .[cocod,test]

# - name: Start Redis
# uses: supercharge/redis-github-action@1.8.1
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ RUN apt-get update && \
apt-get install -y apt-utils git build-essential curl \
libmariadb-dev libevent-dev && \
pip install --use-deprecated=legacy-resolver flask && \
pip install --use-deprecated=legacy-resolver /coco
pip install --use-deprecated=legacy-resolver /coco[cocod]

#-----------------------
# Minimize container size
Expand Down
3 changes: 2 additions & 1 deletion coco/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from datetime import timedelta
from urllib.parse import urlparse

import msgpack
import yaml

from .exceptions import InternalError
Expand Down Expand Up @@ -328,6 +327,8 @@ def hash_dict(dict_: dict):
-------
Hash
"""
import msgpack

serialized = msgpack.packb(sort_dict(dict_), use_bin_type=True)
_md5 = hashlib.md5()
_md5.update(serialized)
Expand Down
12 changes: 6 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,21 @@ dynamic = ["readme", "version"]
license = "GPL-3.0-or-later"
license-files = [ "LICENSE" ]
dependencies = [
"comet @ git+https://github.com/chime-experiment/comet.git",
"aiohttp",
"async_timeout",
"click>=8.2",
"pyyaml",
]

[project.optional-dependencies]
cocod = [
"comet @ git+https://github.com/chime-experiment/comet.git",
"deepdiff",
"jinja2",
"mmh3",
"msgpack",
"prometheus_client<0.8",
"pyyaml",
"redis>=4.2.0",
"sanic>=20.6.0"
]

[project.optional-dependencies]
test = [
"fakeredis[lua]",
"pyfakefs >= 5.4",
Expand Down