Skip to content

Commit 2e80a05

Browse files
authored
Fix release.yml. Set version to 1.4.1 (#49)
* Fix release.yml * Fix test_common.py
1 parent d318a5d commit 2e80a05

3 files changed

Lines changed: 9 additions & 10 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,15 @@ jobs:
99
pypi-publish:
1010
name: Build and publish to PyPI
1111
runs-on: ubuntu-latest
12-
environment:
13-
name: pypi
14-
url: https://pypi.org/p/batch-img
12+
# environment:
13+
# name: pypi
14+
# url: https://pypi.org/p/batch-img
1515
permissions:
1616
id-token: write # Mandatory for PyPI trusted publishing
17-
contents: read
17+
# contents: read
1818

1919
steps:
20-
- name: Checkout repo
21-
uses: actions/checkout@v5
20+
- uses: actions/checkout@v5
2221

2322
- name: Set up Python
2423
uses: actions/setup-python@v5

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ requires = ["hatchling"]
44

55
[project]
66
name = "batch_img"
7-
version = "0.4.1"
7+
version = "1.4.1"
88
description = "Batch process (resize, rotate, remove background, remove GPS, add border, set transparency, auto do all) image files (HEIC, JPG, PNG)"
99
readme = "README.md"
1010
authors = [{ name = "John Liu", email = "rim2rim@gmail.com" }]

‎tests/test_common.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def os_platform(request):
3333
return request.param
3434

3535

36-
@pytest.fixture(params=[(PKG_NAME, "0.4.1"), ("", "0.4.1")])
36+
@pytest.fixture(params=[(PKG_NAME, "1.4.1"), ("", "1.4.1")])
3737
def ver_data(request):
3838
return request.param
3939

@@ -47,9 +47,9 @@ def test_get_version(ver_data):
4747
@pytest.fixture(
4848
params=[
4949
(
50-
"0.9.9",
50+
"1.9.9",
5151
PKG_NAME,
52-
f"🔔 Update available: 0.4.1 → 0.9.9\nRun '{PKG_NAME} --update'",
52+
f"🔔 Update available: 1.4.1 → 1.9.9\nRun '{PKG_NAME} --update'",
5353
),
5454
]
5555
)

0 commit comments

Comments
 (0)