diff --git a/InvenTree/part/bom.py b/InvenTree/part/bom.py index 85d7e23dbb..16a8b0b16d 100644 --- a/InvenTree/part/bom.py +++ b/InvenTree/part/bom.py @@ -3,7 +3,7 @@ Functionality for Bill of Material (BOM) management. Primarily BOM upload tools. """ -from fuzzywuzzy import fuzz +from rapidfuzz import fuzz import tablib import os diff --git a/InvenTree/part/models.py b/InvenTree/part/models.py index 4e579ea44c..d22e6e7be1 100644 --- a/InvenTree/part/models.py +++ b/InvenTree/part/models.py @@ -29,7 +29,7 @@ from mptt.models import TreeForeignKey from decimal import Decimal from datetime import datetime -from fuzzywuzzy import fuzz +from rapidfuzz import fuzz import hashlib from InvenTree import helpers diff --git a/InvenTree/part/views.py b/InvenTree/part/views.py index 01f8ff41bb..da4b757009 100644 --- a/InvenTree/part/views.py +++ b/InvenTree/part/views.py @@ -18,7 +18,7 @@ from django.conf import settings import os -from fuzzywuzzy import fuzz +from rapidfuzz import fuzz from decimal import Decimal from .models import PartCategory, Part, PartAttachment diff --git a/requirements.txt b/requirements.txt index f2aef7135a..73d05fec4f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -17,5 +17,4 @@ django-qr-code==1.1.0 # Generate QR codes flake8==3.3.0 # PEP checking coverage==4.0.3 # Unit test coverage python-coveralls==2.9.1 # Coveralls linking (for Travis) -fuzzywuzzy==0.17.0 # Fuzzy string matching -python-Levenshtein==0.12.0 # Required for fuzzywuzzy +rapidfuzz==0.2.1 # Fuzzy string matching