asanypath-native 2.6.0__tar.gz → 2.6.1__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.
@@ -96,7 +96,7 @@ dependencies = [
96
96
 
97
97
  [[package]]
98
98
  name = "asanypath-native"
99
- version = "2.6.0"
99
+ version = "2.6.1"
100
100
  dependencies = [
101
101
  "anyhow",
102
102
  "aws-config",
@@ -174,9 +174,9 @@ dependencies = [
174
174
 
175
175
  [[package]]
176
176
  name = "aws-credential-types"
177
- version = "1.3.0"
177
+ version = "1.3.1"
178
178
  source = "registry+https://github.com/rust-lang/crates.io-index"
179
- checksum = "e93964ffdaf57857f544be3666a5f57570bb699e934700f11b49708f61bb556e"
179
+ checksum = "576e8da35751dc85409ec1cd15999f692c277a1fbe9336780fe6f15e49dd637d"
180
180
  dependencies = [
181
181
  "aws-smithy-async",
182
182
  "aws-smithy-runtime-api",
@@ -336,9 +336,9 @@ dependencies = [
336
336
 
337
337
  [[package]]
338
338
  name = "aws-smithy-async"
339
- version = "1.3.0"
339
+ version = "1.3.1"
340
340
  source = "registry+https://github.com/rust-lang/crates.io-index"
341
- checksum = "f02e407fb3b54891734224b9ffac8a71fdd35f542500fa1af95754a6b2beb316"
341
+ checksum = "de681a9df7ff79823b759ee17061076ec049cd61a8fa28ece4293d89c9f6964e"
342
342
  dependencies = [
343
343
  "futures-util",
344
344
  "pin-project-lite",
@@ -451,9 +451,9 @@ dependencies = [
451
451
 
452
452
  [[package]]
453
453
  name = "aws-smithy-runtime-api"
454
- version = "1.19.0"
454
+ version = "1.19.2"
455
455
  source = "registry+https://github.com/rust-lang/crates.io-index"
456
- checksum = "c0730c16f91124c6a2abb4932c77e299288b3dd9f967ea2e9ec48cc6731e87a4"
456
+ checksum = "8c4e85cffe9944b10d576b075432bd8f98dbc081e8681cb37d5b2d87dc27bc84"
457
457
  dependencies = [
458
458
  "aws-smithy-async",
459
459
  "aws-smithy-runtime-api-macros",
@@ -468,9 +468,9 @@ dependencies = [
468
468
 
469
469
  [[package]]
470
470
  name = "aws-smithy-runtime-api-macros"
471
- version = "1.1.0"
471
+ version = "1.2.0"
472
472
  source = "registry+https://github.com/rust-lang/crates.io-index"
473
- checksum = "221eaa237ddf1ca79b60d1372aad77e47f9c0ea5b3ce5099da8c61d027dc77b3"
473
+ checksum = "ce237f890a2283c9b328955c3b0918d2d5bf66a1cb6ceccd36a0047246fbc6e6"
474
474
  dependencies = [
475
475
  "proc-macro2",
476
476
  "quote",
@@ -490,9 +490,9 @@ dependencies = [
490
490
 
491
491
  [[package]]
492
492
  name = "aws-smithy-types"
493
- version = "1.8.1"
493
+ version = "1.9.1"
494
494
  source = "registry+https://github.com/rust-lang/crates.io-index"
495
- checksum = "69bb407740a197147da48238ecc94498493c9e85445732360cec180296ca45f1"
495
+ checksum = "cf183d70774ea2cfcc101ca74a8884e4c76be8b9df65cd303f6a1175c88e8f80"
496
496
  dependencies = [
497
497
  "base64-simd",
498
498
  "bytes",
@@ -505,7 +505,6 @@ dependencies = [
505
505
  "itoa",
506
506
  "num-integer",
507
507
  "pin-project-lite",
508
- "pin-utils",
509
508
  "ryu",
510
509
  "serde",
511
510
  "time",
@@ -893,7 +892,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
893
892
  checksum = "d045de693cb712d0b22c6a64be5b953f67b3ce00ab5ad3dd5d8b441886ab8e1a"
894
893
  dependencies = [
895
894
  "quote",
896
- "syn 2.0.119",
895
+ "syn 3.0.6",
897
896
  ]
898
897
 
899
898
  [[package]]
@@ -1196,7 +1195,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
1196
1195
  checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
1197
1196
  dependencies = [
1198
1197
  "libc",
1199
- "windows-sys 0.52.0",
1198
+ "windows-sys 0.61.2",
1200
1199
  ]
1201
1200
 
1202
1201
  [[package]]
@@ -2638,7 +2637,7 @@ dependencies = [
2638
2637
  "once_cell",
2639
2638
  "socket2",
2640
2639
  "tracing",
2641
- "windows-sys 0.52.0",
2640
+ "windows-sys 0.61.2",
2642
2641
  ]
2643
2642
 
2644
2643
  [[package]]
@@ -3523,9 +3522,9 @@ dependencies = [
3523
3522
 
3524
3523
  [[package]]
3525
3524
  name = "ssh2-config"
3526
- version = "0.8.2"
3525
+ version = "0.9.0"
3527
3526
  source = "registry+https://github.com/rust-lang/crates.io-index"
3528
- checksum = "7220846f1080bafaf80204d7268f7e2a1fb0609e34520d2edc3e75cfc55f4c38"
3527
+ checksum = "3f8aade2961db6d07192035b809806be8fc32ca8875f9395e9e97239eeb2ed10"
3529
3528
  dependencies = [
3530
3529
  "bitflags",
3531
3530
  "dirs",
@@ -3696,9 +3695,9 @@ checksum = "fd3ca314f692efd6c868f8408f53fe444634a845f96c028b97d35f6a1f79f0ee"
3696
3695
 
3697
3696
  [[package]]
3698
3697
  name = "tokio"
3699
- version = "1.53.2"
3698
+ version = "1.54.1"
3700
3699
  source = "registry+https://github.com/rust-lang/crates.io-index"
3701
- checksum = "e95f91fcc7a621e8b030f6aa23c71fe9838ae2fb4d8118b75602a328f5144044"
3700
+ checksum = "b52fd3255258d26fac7264ab5a76b53c13367136dc011d3d6ad4f8ed070396a3"
3702
3701
  dependencies = [
3703
3702
  "bytes",
3704
3703
  "libc",
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "asanypath-native"
3
- version = "2.6.0"
3
+ version = "2.6.1"
4
4
  edition = "2024"
5
5
  license = "MIT"
6
6
  publish = false
@@ -36,7 +36,7 @@ russh = "0.65"
36
36
  russh-sftp = "3"
37
37
  tokio-util = { version = "0.7", features = ["io"] }
38
38
  anyhow = "1"
39
- ssh2-config = { version = "0.8", default-features = false, features = ["nolog"] }
39
+ ssh2-config = { version = "0.9", default-features = false, features = ["nolog"] }
40
40
  rusqlite = { version = "0.40", features = ["bundled"] }
41
41
  md-5 = "0.11"
42
42
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: asanypath-native
3
- Version: 2.6.0
3
+ Version: 2.6.1
4
4
  Summary: Native cloud acceleration for asanypath (Rust/tokio/reqwest)
5
5
  License-Expression: MIT
6
6
  Requires-Python: >=3.10
@@ -302,10 +302,16 @@ impl CloudBackend for ArtCreds {
302
302
  async move {
303
303
  let url = self.storage_url(path);
304
304
  let headers = self.auth_headers();
305
- let (status, _body) = do_request_light("GET", &url, &headers, None, use_h2)
305
+ let (status, body) = do_request_light("GET", &url, &headers, None, use_h2)
306
306
  .await
307
307
  .map_err(|e| PyRuntimeError::new_err(e))?;
308
- Ok(status.is_success())
308
+ if status.is_success() {
309
+ Ok(true)
310
+ } else if status == reqwest::StatusCode::NOT_FOUND {
311
+ Ok(false)
312
+ } else {
313
+ Err(status_to_pyerr(status, &self.error_path(path), &body))
314
+ }
309
315
  }
310
316
  }
311
317