Skip to content

Commit 5685182

Browse files
authored
Fix none version package bug (#383)
* filter the None version pkgs * update version * ignore f824 * use https protocol
1 parent bc25cdc commit 5685182

4 files changed

Lines changed: 9 additions & 5 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ repos:
1414
types: [python]
1515
- id: flake8-code-check
1616
name: Code Quality Check
17-
entry: python3 -m flake8 .
17+
entry: python3 -m flake8 --ignore=F824 --show-source .
1818
language: system
1919
types: [python]
2020

backend/bizyengine/version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.1.3
1+
1.1.5

prestartup_script.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,9 @@ def install_dependencies():
140140
]
141141

142142
installed_packages = {
143-
dist.metadata["Name"]: Version(dist.version) for dist in distributions()
143+
dist.metadata["Name"]: Version(dist.version)
144+
for dist in distributions()
145+
if dist.version is not None
144146
}
145147

146148
for package in required_packages:
@@ -230,7 +232,9 @@ def _update_package_when_needed(package_name):
230232
print(f"Error happens when update {package_name} packages: {str(e)}")
231233

232234
installed_packages = {
233-
dist.metadata["Name"]: Version(dist.version) for dist in distributions()
235+
dist.metadata["Name"]: Version(dist.version)
236+
for dist in distributions()
237+
if dist.version is not None
234238
}
235239
print(
236240
f"\033[92m[BizyAir]\033[0m Checkout updating, current pip url {mirror_pip_url}"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "bizyair"
33
description = "[a/BizyAir](https://github.com/siliconflow/BizyAir) Comfy Nodes that can run in any environment."
44
license = { file = "LICENSE" }
5-
version = "1.1.4"
5+
version = "1.1.5"
66

77
[project.urls]
88
Repository = "https://github.com/siliconflow/BizyAir"

0 commit comments

Comments
 (0)