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, now,
) )
import asks import asks
from fuzzywuzzy import process as fuzzy from rapidfuzz import process as fuzzy
import numpy as np import numpy as np
from piker import config from piker import config

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -35,7 +35,7 @@ from typing import (
) )
from types import ModuleType 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 tomli_w # for fast symbol cache writing
import tractor import tractor
import trio import trio

View File

@ -15,7 +15,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>. # 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 import time
# from pprint import pformat # from pprint import pformat
from fuzzywuzzy import process as fuzzy from rapidfuzz import process as fuzzy
import trio import trio
from trio_typing import TaskStatus from trio_typing import TaskStatus
from PyQt5 import QtCore from PyQt5 import QtCore

View File

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