Skip to content

Commit

Permalink
fix: is_installed - consider --index-url pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
ltdrdata committed Aug 3, 2024
1 parent 6048092 commit 35285dd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions glob/manager_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import cm_global
from manager_util import *

version = [2, 48, 4]
version = [2, 48, 5]
version_str = f"V{version[0]}.{version[1]}" + (f'.{version[2]}' if len(version) > 2 else '')


Expand Down Expand Up @@ -97,7 +97,7 @@ def clear_pip_cache():
def is_blacklisted(name):
name = name.strip()

pattern = r'([^<>!=]+)([<>!=]=?)(.*)'
pattern = r'([^<>!=]+)([<>!=]=?)([^ ]*)'
match = re.search(pattern, name)

if match:
Expand All @@ -123,7 +123,7 @@ def is_installed(name):
if name.startswith('#'):
return True

pattern = r'([^<>!=]+)([<>!=]=?)(.*)'
pattern = r'([^<>!=]+)([<>!=]=?)([^ ]*)'
match = re.search(pattern, name)

if match:
Expand Down
2 changes: 1 addition & 1 deletion prestartup_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ def is_installed(name):
if name.startswith('#'):
return True

pattern = r'([^<>!=]+)([<>!=]=?)(.*)'
pattern = r'([^<>!=]+)([<>!=]=?)([^ ]*)'
match = re.search(pattern, name)

if match:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[project]
name = "comfyui-manager"
description = "ComfyUI-Manager provides features to install and manage custom nodes for ComfyUI, as well as various functionalities to assist with ComfyUI."
version = "2.48.4"
version = "2.48.5"
license = { file = "LICENSE.txt" }
dependencies = ["GitPython", "PyGithub", "matrix-client==0.4.0", "transformers", "huggingface-hub>0.20", "typer", "rich", "typing-extensions"]

Expand Down

0 comments on commit 35285dd

Please sign in to comment.