From ab6cc064a89c1373b81716889ff0e7f3125a0c86 Mon Sep 17 00:00:00 2001 From: Gremlation <192086133+gremlation@users.noreply.github.com> Date: Tue, 31 Dec 2024 16:04:56 +0800 Subject: [PATCH] Drop support for Python 3.8 --- .github/workflows/test-build.yml | 2 +- comfy/conds.py | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml index 444d6b25..a52772c3 100644 --- a/.github/workflows/test-build.yml +++ b/.github/workflows/test-build.yml @@ -18,7 +18,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8", "3.9", "3.10", "3.11"] + python-version: ["3.9", "3.10", "3.11", "3.12"] steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} diff --git a/comfy/conds.py b/comfy/conds.py index 660690af..e6e60b77 100644 --- a/comfy/conds.py +++ b/comfy/conds.py @@ -1,11 +1,8 @@ import torch -import math +from math import lcm import comfy.utils -def lcm(a, b): #TODO: eventually replace by math.lcm (added in python3.9) - return abs(a*b) // math.gcd(a, b) - class CONDRegular: def __init__(self, cond): self.cond = cond