diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 045aa76..9994a39 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,16 +9,15 @@ jobs: pypi-publish: name: Build and publish to PyPI runs-on: ubuntu-latest - environment: - name: pypi - url: https://pypi.org/p/batch-img +# environment: +# name: pypi +# url: https://pypi.org/p/batch-img permissions: id-token: write # Mandatory for PyPI trusted publishing - contents: read +# contents: read steps: - - name: Checkout repo - uses: actions/checkout@v5 + - uses: actions/checkout@v5 - name: Set up Python uses: actions/setup-python@v5 diff --git a/pyproject.toml b/pyproject.toml index 4162c5b..9b8003b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ requires = ["hatchling"] [project] name = "batch_img" -version = "0.4.1" +version = "1.4.1" description = "Batch process (resize, rotate, remove background, remove GPS, add border, set transparency, auto do all) image files (HEIC, JPG, PNG)" readme = "README.md" authors = [{ name = "John Liu", email = "rim2rim@gmail.com" }] diff --git a/tests/test_common.py b/tests/test_common.py index de2cff5..4cf1654 100644 --- a/tests/test_common.py +++ b/tests/test_common.py @@ -33,7 +33,7 @@ def os_platform(request): return request.param -@pytest.fixture(params=[(PKG_NAME, "0.4.1"), ("", "0.4.1")]) +@pytest.fixture(params=[(PKG_NAME, "1.4.1"), ("", "1.4.1")]) def ver_data(request): return request.param @@ -47,9 +47,9 @@ def test_get_version(ver_data): @pytest.fixture( params=[ ( - "0.9.9", + "1.9.9", PKG_NAME, - f"🔔 Update available: 0.4.1 → 0.9.9\nRun '{PKG_NAME} --update'", + f"🔔 Update available: 1.4.1 → 1.9.9\nRun '{PKG_NAME} --update'", ), ] )