Skip to content

Commit 0525fcf

Browse files
fix 1.15.1 release (#666)
1 parent 1a6601a commit 0525fcf

File tree

11 files changed

+42
-37
lines changed

11 files changed

+42
-37
lines changed

.github/workflows/create-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ jobs:
195195
with:
196196
context: .
197197
file: ./Dockerfile
198-
platforms: linux/amd64
198+
platforms: linux/amd64,linux/arm64,linux/386,linux/arm/v7,linux/arm/v6
199199
push: true
200200
tags: |
201201
icloudpd/icloudpd:latest

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
## Unreleased
44

5+
## 1.15.1 (2023-07-16)
6+
7+
- fix: excessive logging for existing and deduplicated files
8+
- fix: add missing docker platforms back
9+
510
## 1.15.0 (2023-07-16)
611

712
- fix: logs when progress bar enabled

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,21 +125,21 @@ scripts/build
125125
Building platform executables:
126126

127127
``` sh
128-
scripts/build_bin_linux 1.15.0 amd64
128+
scripts/build_bin_linux 1.15.1 amd64
129129
```
130130
Note: that command is for Linux, including devcontainers. Windows & MacOS scripts must be executed on respective platforms.
131131

132132
Building Python wheels (with single executables; platform-specific):
133133

134134
``` sh
135-
scripts/build_binary_dist_linux 1.15.0
135+
scripts/build_binary_dist_linux 1.15.1
136136
```
137137
Note: that the step expects executables to be already prepared by previous step
138138

139139
Building NPM packages (with single executables; platform-specific):
140140

141141
``` sh
142-
scripts/build_npm 1.15.0
142+
scripts/build_npm 1.15.1
143143
```
144144
Note: that the step expects executables to be already prepared by previous steps
145145

EXPERIMENTAL.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,17 @@ Legacy command (compatible with prior versions):
3434

3535
`docker run -it --rm icloudpd:icloudpd icloud --help`
3636

37-
`icloudpd-1.15.0-windows-amd64 --help`
37+
`icloudpd-1.15.1-windows-amd64 --help`
3838

3939
Help:
4040

4141
`docker run -it --rm icloudpd:icloudpd`
4242

43-
`icloudpd-ex-1.15.0-windows-amd64 --help`
43+
`icloudpd-ex-1.15.1-windows-amd64 --help`
4444

4545
Example:
4646

4747
`docker run -it --rm icloudpd:icloudpd copy [email protected] /path/to/{album}/{date_created:%Y/%Y-%m}`
4848

49-
`icloudpd-ex-1.15.0-windows-amd64 copy [email protected] /path/to/{album}/{date_created:%Y/%Y-%m}`
49+
`icloudpd-ex-1.15.1-windows-amd64 copy [email protected] /path/to/{album}/{date_created:%Y/%Y-%m}`
5050

FAQ.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ iOS 16 feature to share libraries between accounts is [not supported](https://gi
5959

6060
Here are the steps to make it working:
6161
- download binary from Github [Releases](https://github.com/icloud-photos-downloader/icloud_photos_downloader/releases) into desired local folder
62-
- add executable flag by running `chmod +x icloudpd-1.15.0-macos-amd64`
63-
- start it from the terminal: `icloudpd-1.15.0-macos-amd64`
62+
- add executable flag by running `chmod +x icloudpd-1.15.1-macos-amd64`
63+
- start it from the terminal: `icloudpd-1.15.1-macos-amd64`
6464
- Apple will tell you that it cannot check for malicous software and refuse to run the app; click "Ok"
65-
- Open "System Settings"/"Privacy & Security" and find `icloudpd-1.15.0-macos-amd64` as blocked app; Click "Allow"
66-
- Start `icloudpd-1.15.0-macos-amd64` from the terminal again
65+
- Open "System Settings"/"Privacy & Security" and find `icloudpd-1.15.1-macos-amd64` as blocked app; Click "Allow"
66+
- Start `icloudpd-1.15.1-macos-amd64` from the terminal again
6767
- Apple will show another warning; click "Open"
68-
- After that you can run `icloudpd-1.15.0-macos-amd64 icloudpd --help` or any other supported command/option
68+
- After that you can run `icloudpd-1.15.1-macos-amd64 icloudpd --help` or any other supported command/option

binary_dist/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ requires = [
66
build-backend = "setuptools.build_meta"
77

88
[project]
9-
version="1.15.0"
9+
version="1.15.1"
1010
name = "icloudpd"
1111
description = "icloudpd is a command-line tool to download photos and videos from iCloud."
1212
readme = "README_PYPI.md"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ requires = [
66
build-backend = "setuptools.build_meta"
77

88
[project]
9-
version="1.15.0"
9+
version="1.15.1"
1010
name = "icloudpd"
1111
description = "icloudpd is a command-line tool to download photos and videos from iCloud."
1212
readme = "README_PYPI.md"

scripts/publish_pypi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ set -euo pipefail
1111
# cleint use: pip install --index http://192.168.1.20:4880 --trusted-host 192.168.1.20 icloudpd
1212

1313
# linux
14-
twine upload --repository-url $1 --non-interactive -u bogus -p bogus dist/icloudpd-1.15.0-py2.py3-none-manylinux*.whl dist/icloudpd-1.15.0-py2.py3-none-macos*.whl dist/icloudpd-1.15.0-py2.py3-none-win*.whl dist/icloudpd-1.15.0-py3-none-any.whl
14+
twine upload --repository-url $1 --non-interactive -u bogus -p bogus dist/icloudpd-1.15.1-py2.py3-none-manylinux*.whl dist/icloudpd-1.15.1-py2.py3-none-macos*.whl dist/icloudpd-1.15.1-py2.py3-none-win*.whl dist/icloudpd-1.15.1-py3-none-any.whl

src/icloudpd/base.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@
221221
default=False,
222222
)
223223
# a hacky way to get proper version because automatic detection does not work for some reason
224-
@click.version_option(version="1.15.0")
224+
@click.version_option(version="1.15.1")
225225
# pylint: disable-msg=too-many-arguments,too-many-statements
226226
# pylint: disable-msg=too-many-branches,too-many-locals
227227
def main(
@@ -462,15 +462,15 @@ def download_photo_(counter, photo) -> bool:
462462
download_path = (f"-{photo_size}.").join(
463463
download_path.rsplit(".", 1)
464464
)
465-
logger.info(
466-
"%s deduplicated.",
465+
logger.debug(
466+
"%s deduplicated",
467467
truncate_middle(download_path, 96)
468468
)
469469
file_exists = os.path.isfile(download_path)
470470
if file_exists:
471471
counter.increment()
472-
logger.info(
473-
"%s already exists.",
472+
logger.debug(
473+
"%s already exists",
474474
truncate_middle(download_path, 96)
475475
)
476476

@@ -543,14 +543,14 @@ def download_photo_(counter, photo) -> bool:
543543
lp_download_path.rsplit(".", 1)
544544
)
545545
logger.debug(
546-
"%s deduplicated.",
546+
"%s deduplicated",
547547
truncate_middle(lp_download_path, 96)
548548
)
549549
lp_file_exists = os.path.isfile(
550550
lp_download_path)
551551
if lp_file_exists:
552-
logger.info(
553-
"%s already exists.",
552+
logger.debug(
553+
"%s already exists",
554554
truncate_middle(lp_download_path, 96)
555555
)
556556
if not lp_file_exists:

tests/test_download_live_photos.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,15 +146,15 @@ def test_skip_existing_live_photodownloads(self):
146146
self._caplog.text,
147147
)
148148
self.assertIn(
149-
f"INFO {os.path.join(base_dir, os.path.normpath('2020/11/04/IMG_0514_HEVC.MOV'))} already exists.",
149+
f"DEBUG {os.path.join(base_dir, os.path.normpath('2020/11/04/IMG_0514_HEVC.MOV'))} already exists",
150150
self._caplog.text,
151151
)
152152
self.assertIn(
153153
f"DEBUG Downloading {os.path.join(base_dir, os.path.normpath('2020/11/04/IMG_0514.HEIC'))}",
154154
self._caplog.text,
155155
)
156156
self.assertIn(
157-
f"INFO {os.path.join(base_dir, os.path.normpath('2020/11/04/IMG_0516.HEIC'))} already exists.",
157+
f"DEBUG {os.path.join(base_dir, os.path.normpath('2020/11/04/IMG_0516.HEIC'))} already exists",
158158
self._caplog.text,
159159
)
160160
self.assertIn(

0 commit comments

Comments
 (0)