Skip to content

Commit

Permalink
Rename version.py to comfyui_version.py
Browse files Browse the repository at this point in the history
  • Loading branch information
huchenlei committed Jan 10, 2025
1 parent 6c16e0f commit 84cafe5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/update-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ jobs:
run: |
python -m pip install --upgrade pip
- name: Update version.py
- name: Update comfyui_version.py
run: |
# Read version from pyproject.toml and update version.py
# Read version from pyproject.toml and update comfyui_version.py
python -c '
import tomllib
Expand All @@ -40,8 +40,8 @@ jobs:
config = tomllib.load(f)
version = config["project"]["version"]
# Write version to version.py
with open("version.py", "w") as f:
# Write version to comfyui_version.py
with open("comfyui_version.py", "w") as f:
f.write("# This file is automatically generated by the build process when version is\n")
f.write("# updated in pyproject.toml.\n")
f.write(f"__version__ = \"{version}\"\n")
Expand All @@ -53,6 +53,6 @@ jobs:
git config --local user.email "[email protected]"
git fetch origin ${{ github.head_ref }}
git checkout -B ${{ github.head_ref }} origin/${{ github.head_ref }}
git add version.py
git diff --quiet && git diff --staged --quiet || git commit -m "chore: Update version.py to match pyproject.toml"
git add comfyui_version.py
git diff --quiet && git diff --staged --quiet || git commit -m "chore: Update comfyui_version.py to match pyproject.toml"
git push origin HEAD:${{ github.head_ref }}
File renamed without changes.
2 changes: 1 addition & 1 deletion server.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import comfy.utils
import comfy.model_management
import node_helpers
from version import __version__
from comfyui_version import __version__
from app.frontend_management import FrontendManager
from app.user_manager import UserManager
from app.model_manager import ModelFileManager
Expand Down

0 comments on commit 84cafe5

Please sign in to comment.