Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }]
Expand Down
6 changes: 3 additions & 3 deletions tests/test_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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'",
),
]
)
Expand Down