diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index c87d3e7..fee205c 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -13,6 +13,7 @@ jobs: python-version: - "3.10" - "3.11" + - "3.12" steps: - uses: actions/checkout@v4 @@ -22,10 +23,11 @@ jobs: with: python-version: ${{ matrix.python-version }} + - uses: yezz123/setup-uv@v4 + - name: Install dependencies run: | - pip install . - pip install pytest + uv pip install --system . pytest - name: Run tests run: pytest -v diff --git a/aaaaaa/conditional.py b/aaaaaa/conditional.py index a16a17a..91ab59c 100644 --- a/aaaaaa/conditional.py +++ b/aaaaaa/conditional.py @@ -1,10 +1,13 @@ from __future__ import annotations from PIL import Image +from rich import print try: from modules.processing import create_binary_mask except ImportError: + msg = "[-] ADetailer: Support for webui versions below 1.6.0 will be discontinued." + print(msg) def create_binary_mask(image: Image.Image): return image.convert("L")