Swap out `fuzzywuzzy` for the newer `rapidfuzz` lib

ib_py311_fixes
Tyler Goodlet 2023-09-13 11:57:02 -04:00
parent 4d274b16d8
commit 4a180019f0
10 changed files with 14 additions and 17 deletions

View File

@ -42,7 +42,7 @@ from pendulum import (
now,
)
import asks
from fuzzywuzzy import process as fuzzy
from rapidfuzz import process as fuzzy
import numpy as np
from piker import config

View File

@ -34,7 +34,7 @@ from typing import (
import pendulum
import trio
from trio_typing import TaskStatus
from fuzzywuzzy import process as fuzzy
from rapidfuzz import process as fuzzy
import numpy as np
from tractor.trionics import (
broadcast_receiver,

View File

@ -26,7 +26,7 @@ import time
import trio
from trio_typing import TaskStatus
import pendulum
from fuzzywuzzy import process as fuzzy
from rapidfuzz import process as fuzzy
import numpy as np
import tractor

View File

@ -29,7 +29,7 @@ from typing import (
TYPE_CHECKING,
)
from fuzzywuzzy import process as fuzzy
from rapidfuzz import process as fuzzy
import ib_insync as ibis
import tractor
import trio

View File

@ -29,7 +29,7 @@ import time
import pendulum
import asks
from fuzzywuzzy import process as fuzzy
from rapidfuzz import process as fuzzy
import numpy as np
import urllib.parse
import hashlib

View File

@ -21,7 +21,7 @@ Symbology defs and search.
from decimal import Decimal
import tractor
from fuzzywuzzy import process as fuzzy
from rapidfuzz import process as fuzzy
from piker._cacheables import (
async_lifo_cache,

View File

@ -41,7 +41,7 @@ from typing import (
import wsproto
from uuid import uuid4
from fuzzywuzzy import process as fuzzy
from rapidfuzz import process as fuzzy
from trio_typing import TaskStatus
import asks
from bidict import bidict

View File

@ -35,7 +35,7 @@ from typing import (
)
from types import ModuleType
from fuzzywuzzy import process as fuzzy
from rapidfuzz import process as fuzzy
import tomli_w # for fast symbol cache writing
import tractor
import trio

View File

@ -15,7 +15,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
"""
qompleterz: embeddable search and complete using trio, Qt and fuzzywuzzy.
qompleterz: embeddable search and complete using trio, Qt and rapidfuzz.
"""
@ -45,7 +45,7 @@ from typing import (
import time
# from pprint import pformat
from fuzzywuzzy import process as fuzzy
from rapidfuzz import process as fuzzy
import trio
from trio_typing import TaskStatus
from PyQt5 import QtCore

View File

@ -1,6 +1,6 @@
# piker: trading gear for hackers
# Copyright (C) 2018-present (in stewardship of pikers)
# Tyler Goodlet
# Tyler Goodlet and the pike pikes
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
@ -102,9 +102,9 @@ develop = true
optional = true
[tool.poetry.group.uis.dependencies]
# https://python-poetry.org/docs/managing-dependencies/#dependency-groups
# TODO: outstanding pkging issues on nixos
fuzzywuzzy = {extras = ["speedup"], version = "^0.18.0"}
# fuzzywuzzy = "^0.18.0"
# TODO: make sure the levenshtein shit compiles on nix..
# rapidfuzz = {extras = ["speedup"], version = "^0.18.0"}
rapidfuzz = "^3.2.0"
qdarkstyle = ">=3.0.2"
pyqt5 = "^5.15.9"
pyqtgraph = { git = 'https://github.com/pikers/pyqtgraph.git' }
@ -137,9 +137,6 @@ prompt-toolkit = "^3.0.39"
# [tool.poetry.group.daemon.dependencies]
[tool.poetry.scripts]
# poetry = "poetry.console.application:main"
piker = 'piker.cli:cli'
pikerd = 'piker.cli:pikerd'
ledger = 'piker.accounting.cli:ledger'
# ------ - ------