From f02998d00ded4975303fe3558fad3dbf26dc83a1 Mon Sep 17 00:00:00 2001 From: Dario Meloni Date: Tue, 2 Apr 2019 09:53:17 +0200 Subject: [PATCH] Murmur as an extra --- README.md | 2 +- setup.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6649aa5d..89da5050 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ Tested on Python 3.4, 3.5, 3.6, 3.7, Pypy3 DeepDiff prefers to use Murmur3 for hashing. However you have to manually install Murmur3 by running: - `pip install mmh3` + `pip install 'deepdiff[murmur]'` Otherwise DeepDiff will be using SHA256 for hashing which is a cryptographic hash and is considerably slower. diff --git a/setup.py b/setup.py index 89f642a7..4a4b6e10 100755 --- a/setup.py +++ b/setup.py @@ -53,6 +53,9 @@ def get_reqs(filename): long_description_content_type='text/markdown', install_requires=reqs, python_requires='>=3.4', + extras_require={ + "murmur": ["mmh3"], + }, classifiers=[ "Intended Audience :: Developers", "Operating System :: OS Independent",