rclone-bin-api 1.0.5__tar.gz → 1.0.6__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rclone-bin-api
3
- Version: 1.0.5
3
+ Version: 1.0.6
4
4
  Summary: Rclone API for Python including the Rclone binaries.
5
5
  Author-email: Michael G <me@mgineer85.de>
6
6
  Maintainer-email: Michael G <me@mgineer85.de>
@@ -41,7 +41,7 @@ from rclone_api.api import RcloneApi
41
41
  api = RcloneApi()
42
42
  api.start()
43
43
 
44
- print(api.version()) # CoreVersion(version='v1.72.1')
44
+ print(api.version()) # CoreVersion(version='v1.72.1')
45
45
 
46
46
  api.stop()
47
47
  ```
@@ -24,7 +24,7 @@ from rclone_api.api import RcloneApi
24
24
  api = RcloneApi()
25
25
  api.start()
26
26
 
27
- print(api.version()) # CoreVersion(version='v1.72.1')
27
+ print(api.version()) # CoreVersion(version='v1.72.1')
28
28
 
29
29
  api.stop()
30
30
  ```
@@ -2,7 +2,7 @@
2
2
  [project]
3
3
  name = "rclone-bin-api"
4
4
  description = "Rclone API for Python including the Rclone binaries."
5
- version = "1.0.5"
5
+ version = "1.0.6"
6
6
  authors = [{ name = "Michael G", email = "me@mgineer85.de" }]
7
7
  maintainers = [{ name = "Michael G", email = "me@mgineer85.de" }]
8
8
  requires-python = ">=3.11"
@@ -30,7 +30,7 @@ dev = [
30
30
  "pytest",
31
31
  "pytest-cov",
32
32
  "coverage[toml]",
33
- "pyright",
33
+ "basedpyright",
34
34
  "poethepoet",
35
35
  "setuptools",
36
36
  "wheel",
@@ -42,7 +42,7 @@ dev = [
42
42
  # uv does not yet support [tool.pdm.scripts], so we skip this for now... https://github.com/astral-sh/uv/issues/5903
43
43
  [tool.poe.tasks]
44
44
  lint = [
45
- { cmd = "uv run pyright" },
45
+ { cmd = "uv run basedpyright" },
46
46
  { cmd = "uv run ruff check" },
47
47
  { cmd = "uv run ruff format --check" },
48
48
  ]
@@ -61,7 +61,7 @@ build = [
61
61
  ]
62
62
 
63
63
 
64
- [tool.pyright]
64
+ [tool.basedpyright]
65
65
  venvPath = "."
66
66
  venv = ".venv"
67
67
  ignore = ["./experimental/", "./vendor/"]
@@ -11,7 +11,7 @@ from setuptools import setup
11
11
  from setuptools.command.build_py import build_py
12
12
  from wheel.bdist_wheel import bdist_wheel
13
13
 
14
- rclone_version = os.environ.get("RCLONE_VERSION", "1.74.3")
14
+ rclone_version = os.environ.get("RCLONE_VERSION", "1.75.0")
15
15
  rclone_build_platform = os.environ.get("RCLONE_BUILD_PLATFORM", None)
16
16
 
17
17
  PLATFORMS = {
@@ -161,12 +161,12 @@ class RcloneApi:
161
161
 
162
162
  try:
163
163
  with urllib.request.urlopen(req, timeout=TIMEOUT) as resp:
164
- raw: bytes = resp.read()
165
- response_json = json.loads(raw.decode("utf-8"))
164
+ raw_resp: bytes = resp.read()
165
+ response_json = json.loads(raw_resp.decode("utf-8"))
166
166
 
167
167
  except urllib.error.HTTPError as exc: # non 200 HTTP codes
168
- raw: bytes = exc.read()
169
- response_json = json.loads(raw.decode("utf-8"))
168
+ raw_exc: bytes = exc.read()
169
+ response_json = json.loads(raw_exc.decode("utf-8"))
170
170
  raise RcloneProcessException.from_dict(response_json) from exc
171
171
  except TimeoutError as exc:
172
172
  raise RcloneConnectionException(f"Operation timed out after {TIMEOUT}s. To copy large files consider using _async methods.") from exc
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rclone-bin-api
3
- Version: 1.0.5
3
+ Version: 1.0.6
4
4
  Summary: Rclone API for Python including the Rclone binaries.
5
5
  Author-email: Michael G <me@mgineer85.de>
6
6
  Maintainer-email: Michael G <me@mgineer85.de>
@@ -41,7 +41,7 @@ from rclone_api.api import RcloneApi
41
41
  api = RcloneApi()
42
42
  api.start()
43
43
 
44
- print(api.version()) # CoreVersion(version='v1.72.1')
44
+ print(api.version()) # CoreVersion(version='v1.72.1')
45
45
 
46
46
  api.stop()
47
47
  ```
File without changes