rclone-api 1.5.44__py3-none-any.whl → 1.5.45__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- rclone_api/cmd/install_rclone.py +4 -0
- rclone_api/install.py +5 -0
- {rclone_api-1.5.44.dist-info → rclone_api-1.5.45.dist-info}/METADATA +1 -1
- {rclone_api-1.5.44.dist-info → rclone_api-1.5.45.dist-info}/RECORD +8 -8
- {rclone_api-1.5.44.dist-info → rclone_api-1.5.45.dist-info}/WHEEL +0 -0
- {rclone_api-1.5.44.dist-info → rclone_api-1.5.45.dist-info}/entry_points.txt +0 -0
- {rclone_api-1.5.44.dist-info → rclone_api-1.5.45.dist-info}/licenses/LICENSE +0 -0
- {rclone_api-1.5.44.dist-info → rclone_api-1.5.45.dist-info}/top_level.txt +0 -0
rclone_api/cmd/install_rclone.py
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
Unit test file.
|
3
3
|
"""
|
4
4
|
|
5
|
+
import logging
|
5
6
|
import platform
|
6
7
|
from pathlib import Path
|
7
8
|
|
@@ -9,6 +10,9 @@ from rclone_api.install import rclone_download
|
|
9
10
|
|
10
11
|
|
11
12
|
def main() -> None:
|
13
|
+
# set the root logger level to DEBUG
|
14
|
+
root_logger = logging.getLogger()
|
15
|
+
root_logger.setLevel(logging.DEBUG)
|
12
16
|
rclone_exe = "rclone"
|
13
17
|
if platform.system() == "Windows":
|
14
18
|
rclone_exe += ".exe"
|
rclone_api/install.py
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import logging
|
1
2
|
import os
|
2
3
|
import platform
|
3
4
|
import shutil
|
@@ -12,6 +13,9 @@ URL_LINUX = "https://downloads.rclone.org/rclone-current-linux-amd64.zip"
|
|
12
13
|
URL_MACOS_ARM = "https://downloads.rclone.org/rclone-current-osx-arm64.zip"
|
13
14
|
URL_MACOS_X86 = "https://downloads.rclone.org/rclone-current-osx-amd64.zip"
|
14
15
|
|
16
|
+
logger = logging.getLogger(__name__)
|
17
|
+
logging.basicConfig(level=logging.DEBUG)
|
18
|
+
|
15
19
|
|
16
20
|
def rclone_download_url() -> str:
|
17
21
|
system = platform.system()
|
@@ -76,6 +80,7 @@ def rclone_download(out: Path, replace=False) -> Exception | None:
|
|
76
80
|
url = rclone_download_url()
|
77
81
|
with TemporaryDirectory() as tmpdir:
|
78
82
|
tmp = Path(tmpdir)
|
83
|
+
logging.info(f"Downloading rclone from {url} to {tmp.absolute()}")
|
79
84
|
download(url, tmp, kind="zip", replace=True)
|
80
85
|
exe = _find_rclone_exe(tmp)
|
81
86
|
if exe is None:
|
@@ -16,7 +16,7 @@ rclone_api/filelist.py,sha256=xbiusvNgaB_b_kQOZoHMJJxn6TWGtPrWd2J042BI28o,767
|
|
16
16
|
rclone_api/fs.py,sha256=xUkoSV2R9dByKgueZ3x2GjyCn9fM7tK1ydgK1Whiph0,8933
|
17
17
|
rclone_api/group_files.py,sha256=H92xPW9lQnbNw5KbtZCl00bD6iRh9yRbCuxku4j_3dg,8036
|
18
18
|
rclone_api/http_server.py,sha256=P-LT2GqCEM9tGbyzzr-CrSOc3FyCw1qXUSQ5bY2KBHU,12113
|
19
|
-
rclone_api/install.py,sha256=
|
19
|
+
rclone_api/install.py,sha256=4bFCX2KFLOX6_X_q_r5h4GXBAg605UBNrJUAeIZDwU8,3066
|
20
20
|
rclone_api/log.py,sha256=VZHM7pNSXip2ZLBKMP7M1u-rp_F7zoafFDuR8CPUoKI,1271
|
21
21
|
rclone_api/mount.py,sha256=LZqEhuKZunbWVqmsOIqkkCotaxWJpdFRS1InXveoU5E,1428
|
22
22
|
rclone_api/mount_util.py,sha256=jqhJEVTHV6c6lOOzUYb4FLMbqDMHdz7-QRcdH-IobFc,10154
|
@@ -31,7 +31,7 @@ rclone_api/assets/example.txt,sha256=lTBovRjiz0_TgtAtbA1C5hNi2ffbqnNPqkKg6UiKCT8
|
|
31
31
|
rclone_api/cmd/analyze.py,sha256=RHbvk1G5ZUc3qLqlm1AZEyQzd_W_ZjcbCNDvW4YpTKQ,1252
|
32
32
|
rclone_api/cmd/copy_large_s3.py,sha256=E0B7P-JJTuOM7wMZtwQHJCpoLhccJleh0mnMq8ZiSUo,3234
|
33
33
|
rclone_api/cmd/copy_large_s3_finish.py,sha256=SNCqkvu8YtxPKmBp37WVMP876YhxV0kJDoYuOSNPaPY,2309
|
34
|
-
rclone_api/cmd/install_rclone.py,sha256=
|
34
|
+
rclone_api/cmd/install_rclone.py,sha256=F2iqbrla02SS45-On-PDX92EGQw3T7nRsjBftupNqQ0,460
|
35
35
|
rclone_api/cmd/list_files.py,sha256=x8FHODEilwKqwdiU1jdkeJbLwOqUkUQuDWPo2u_zpf0,741
|
36
36
|
rclone_api/cmd/save_to_db.py,sha256=ylvnhg_yzexM-m6Zr7XDiswvoDVSl56ELuFAdb9gqBY,1957
|
37
37
|
rclone_api/db/__init__.py,sha256=OSRUdnSWUlDTOHmjdjVmxYTUNpTbtaJ5Ll9sl-PfZg0,40
|
@@ -55,9 +55,9 @@ rclone_api/s3/multipart/upload_parts_inline.py,sha256=V7syKjFyVIe4U9Ahl5XgqVTzt9
|
|
55
55
|
rclone_api/s3/multipart/upload_parts_resumable.py,sha256=6-nlMclS8jyVvMvFbQDcZOX9MY1WbCcKA_s9bwuYxnk,9793
|
56
56
|
rclone_api/s3/multipart/upload_parts_server_side_merge.py,sha256=Fp2pdrs5dONQI9LkfNolgAGj1-Z2V1SsRd0r0sreuXI,18040
|
57
57
|
rclone_api/s3/multipart/upload_state.py,sha256=f-Aq2NqtAaMUMhYitlICSNIxCKurWAl2gDEUVizLIqw,6019
|
58
|
-
rclone_api-1.5.
|
59
|
-
rclone_api-1.5.
|
60
|
-
rclone_api-1.5.
|
61
|
-
rclone_api-1.5.
|
62
|
-
rclone_api-1.5.
|
63
|
-
rclone_api-1.5.
|
58
|
+
rclone_api-1.5.45.dist-info/licenses/LICENSE,sha256=b6pOoifSXiUaz_lDS84vWlG3fr4yUKwB8fzkrH9R8bQ,1064
|
59
|
+
rclone_api-1.5.45.dist-info/METADATA,sha256=_2SCmLKk1kenbWfd5e-xsbcJqMpXiQchdEzF96DdzUA,37305
|
60
|
+
rclone_api-1.5.45.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
61
|
+
rclone_api-1.5.45.dist-info/entry_points.txt,sha256=ognh2e11HTjn73_KL5MWI67pBKS2jekBi-QTiRXySXA,316
|
62
|
+
rclone_api-1.5.45.dist-info/top_level.txt,sha256=EvZ7uuruUpe9RiUyEp25d1Keq7PWYNT0O_-mr8FCG5g,11
|
63
|
+
rclone_api-1.5.45.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|