python-calamine 0.6.1__tar.gz → 0.6.2__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.
- {python_calamine-0.6.1 → python_calamine-0.6.2}/.github/workflows/CI.yml +6 -5
- {python_calamine-0.6.1 → python_calamine-0.6.2}/Cargo.lock +28 -69
- {python_calamine-0.6.1 → python_calamine-0.6.2}/Cargo.toml +5 -5
- {python_calamine-0.6.1 → python_calamine-0.6.2}/PKG-INFO +1 -1
- {python_calamine-0.6.1 → python_calamine-0.6.2}/pyproject.toml +2 -2
- {python_calamine-0.6.1 → python_calamine-0.6.2}/src/lib.rs +1 -1
- {python_calamine-0.6.1 → python_calamine-0.6.2}/src/types/sheet.rs +3 -3
- {python_calamine-0.6.1 → python_calamine-0.6.2}/src/types/table.rs +1 -1
- {python_calamine-0.6.1 → python_calamine-0.6.2}/.gitignore +0 -0
- {python_calamine-0.6.1 → python_calamine-0.6.2}/.pre-commit-config.yaml +0 -0
- {python_calamine-0.6.1 → python_calamine-0.6.2}/LICENSE +0 -0
- {python_calamine-0.6.1 → python_calamine-0.6.2}/README.md +0 -0
- {python_calamine-0.6.1 → python_calamine-0.6.2}/build.rs +0 -0
- {python_calamine-0.6.1 → python_calamine-0.6.2}/python/python_calamine/__init__.py +0 -0
- {python_calamine-0.6.1 → python_calamine-0.6.2}/python/python_calamine/_python_calamine.pyi +0 -0
- {python_calamine-0.6.1 → python_calamine-0.6.2}/python/python_calamine/py.typed +0 -0
- {python_calamine-0.6.1 → python_calamine-0.6.2}/renovate.json +0 -0
- {python_calamine-0.6.1 → python_calamine-0.6.2}/src/types/cell.rs +0 -0
- {python_calamine-0.6.1 → python_calamine-0.6.2}/src/types/errors.rs +0 -0
- {python_calamine-0.6.1 → python_calamine-0.6.2}/src/types/mod.rs +0 -0
- {python_calamine-0.6.1 → python_calamine-0.6.2}/src/types/workbook.rs +0 -0
- {python_calamine-0.6.1 → python_calamine-0.6.2}/tests/__init__.py +0 -0
- {python_calamine-0.6.1 → python_calamine-0.6.2}/tests/conftest.py +0 -0
- {python_calamine-0.6.1 → python_calamine-0.6.2}/tests/data/any_sheets.ods +0 -0
- {python_calamine-0.6.1 → python_calamine-0.6.2}/tests/data/any_sheets.xls +0 -0
- {python_calamine-0.6.1 → python_calamine-0.6.2}/tests/data/any_sheets.xlsb +0 -0
- {python_calamine-0.6.1 → python_calamine-0.6.2}/tests/data/any_sheets.xlsx +0 -0
- {python_calamine-0.6.1 → python_calamine-0.6.2}/tests/data/base.ods +0 -0
- {python_calamine-0.6.1 → python_calamine-0.6.2}/tests/data/base.xls +0 -0
- {python_calamine-0.6.1 → python_calamine-0.6.2}/tests/data/base.xlsb +0 -0
- {python_calamine-0.6.1 → python_calamine-0.6.2}/tests/data/base.xlsx +0 -0
- {python_calamine-0.6.1 → python_calamine-0.6.2}/tests/data/empty_file.ods +0 -0
- {python_calamine-0.6.1 → python_calamine-0.6.2}/tests/data/empty_file.xlsb +0 -0
- {python_calamine-0.6.1 → python_calamine-0.6.2}/tests/data/empty_file.xlsx +0 -0
- {python_calamine-0.6.1 → python_calamine-0.6.2}/tests/data/issue139.xlsx +0 -0
- {python_calamine-0.6.1 → python_calamine-0.6.2}/tests/data/password.ods +0 -0
- {python_calamine-0.6.1 → python_calamine-0.6.2}/tests/data/password.xls +0 -0
- {python_calamine-0.6.1 → python_calamine-0.6.2}/tests/data/password.xlsb +0 -0
- {python_calamine-0.6.1 → python_calamine-0.6.2}/tests/data/password.xlsx +0 -0
- {python_calamine-0.6.1 → python_calamine-0.6.2}/tests/data/table-multiple.xlsx +0 -0
- {python_calamine-0.6.1 → python_calamine-0.6.2}/tests/test_base.py +0 -0
- {python_calamine-0.6.1 → python_calamine-0.6.2}/tests/test_pandas.py +0 -0
- {python_calamine-0.6.1 → python_calamine-0.6.2}/tests/test_sheet_type.py +0 -0
- {python_calamine-0.6.1 → python_calamine-0.6.2}/tests/test_tables.py +0 -0
|
@@ -65,7 +65,7 @@ jobs:
|
|
|
65
65
|
|
|
66
66
|
- id: cache-py
|
|
67
67
|
name: cache python
|
|
68
|
-
uses: actions/cache@
|
|
68
|
+
uses: actions/cache@v5
|
|
69
69
|
with:
|
|
70
70
|
path: ${{ env.pythonLocation }}
|
|
71
71
|
key: >
|
|
@@ -108,7 +108,7 @@ jobs:
|
|
|
108
108
|
with:
|
|
109
109
|
python-version: "3.14"
|
|
110
110
|
|
|
111
|
-
- uses: actions/cache@
|
|
111
|
+
- uses: actions/cache@v5
|
|
112
112
|
id: cache-py
|
|
113
113
|
name: cache python
|
|
114
114
|
with:
|
|
@@ -191,6 +191,7 @@ jobs:
|
|
|
191
191
|
# windows
|
|
192
192
|
- os: windows
|
|
193
193
|
target: x86_64
|
|
194
|
+
interpreter: 3.10 3.11 3.12 3.13 3.13t 3.14 3.14t
|
|
194
195
|
- os: windows
|
|
195
196
|
target: i686
|
|
196
197
|
interpreter: 3.10 3.11 3.12 3.13 3.14
|
|
@@ -237,7 +238,7 @@ jobs:
|
|
|
237
238
|
|
|
238
239
|
- run: twine check --strict dist/*
|
|
239
240
|
|
|
240
|
-
- uses: actions/upload-artifact@
|
|
241
|
+
- uses: actions/upload-artifact@v6
|
|
241
242
|
with:
|
|
242
243
|
name: wheels-${{ matrix.os }}-${{ matrix.target }}-${{ matrix.manylinux || 'auto' }}
|
|
243
244
|
path: dist
|
|
@@ -257,7 +258,7 @@ jobs:
|
|
|
257
258
|
|
|
258
259
|
steps:
|
|
259
260
|
- name: Download All Artifacts
|
|
260
|
-
uses: actions/download-artifact@
|
|
261
|
+
uses: actions/download-artifact@v7
|
|
261
262
|
with:
|
|
262
263
|
path: dist
|
|
263
264
|
pattern: wheels-*
|
|
@@ -277,7 +278,7 @@ jobs:
|
|
|
277
278
|
|
|
278
279
|
steps:
|
|
279
280
|
- name: Download All Artifacts
|
|
280
|
-
uses: actions/download-artifact@
|
|
281
|
+
uses: actions/download-artifact@v7
|
|
281
282
|
with:
|
|
282
283
|
path: dist
|
|
283
284
|
pattern: wheels-*
|
|
@@ -17,20 +17,11 @@ dependencies = [
|
|
|
17
17
|
"libc",
|
|
18
18
|
]
|
|
19
19
|
|
|
20
|
-
[[package]]
|
|
21
|
-
name = "arbitrary"
|
|
22
|
-
version = "1.4.2"
|
|
23
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
24
|
-
checksum = "c3d036a3c4ab069c7b410a2ce876bd74808d2d0888a82667669f8e783a898bf1"
|
|
25
|
-
dependencies = [
|
|
26
|
-
"derive_arbitrary",
|
|
27
|
-
]
|
|
28
|
-
|
|
29
20
|
[[package]]
|
|
30
21
|
name = "atoi_simd"
|
|
31
|
-
version = "0.
|
|
22
|
+
version = "0.17.0"
|
|
32
23
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
33
|
-
checksum = "
|
|
24
|
+
checksum = "8ad17c7c205c2c28b527b9845eeb91cf1b4d008b438f98ce0e628227a822758e"
|
|
34
25
|
dependencies = [
|
|
35
26
|
"debug_unsafe",
|
|
36
27
|
]
|
|
@@ -67,9 +58,9 @@ checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b"
|
|
|
67
58
|
|
|
68
59
|
[[package]]
|
|
69
60
|
name = "calamine"
|
|
70
|
-
version = "0.
|
|
61
|
+
version = "0.33.0"
|
|
71
62
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
72
|
-
checksum = "
|
|
63
|
+
checksum = "96ae094b353c7810cd5efd2e69413ebb9354816138a387c09f7b90d4e826a49f"
|
|
73
64
|
dependencies = [
|
|
74
65
|
"atoi_simd",
|
|
75
66
|
"byteorder",
|
|
@@ -132,9 +123,9 @@ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
|
|
|
132
123
|
|
|
133
124
|
[[package]]
|
|
134
125
|
name = "chrono"
|
|
135
|
-
version = "0.4.
|
|
126
|
+
version = "0.4.43"
|
|
136
127
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
137
|
-
checksum = "
|
|
128
|
+
checksum = "fac4744fb15ae8337dc853fee7fb3f4e48c0fbaa23d0afe49c447b4fab126118"
|
|
138
129
|
dependencies = [
|
|
139
130
|
"iana-time-zone",
|
|
140
131
|
"js-sys",
|
|
@@ -174,17 +165,6 @@ version = "0.1.3"
|
|
|
174
165
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
175
166
|
checksum = "85d3cef41d236720ed453e102153a53e4cc3d2fde848c0078a50cf249e8e3e5b"
|
|
176
167
|
|
|
177
|
-
[[package]]
|
|
178
|
-
name = "derive_arbitrary"
|
|
179
|
-
version = "1.4.2"
|
|
180
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
181
|
-
checksum = "1e567bd82dcff979e4b03460c307b3cdc9e96fde3d73bed1496d2bc75d9dd62a"
|
|
182
|
-
dependencies = [
|
|
183
|
-
"proc-macro2",
|
|
184
|
-
"quote",
|
|
185
|
-
"syn",
|
|
186
|
-
]
|
|
187
|
-
|
|
188
168
|
[[package]]
|
|
189
169
|
name = "encoding_rs"
|
|
190
170
|
version = "0.8.35"
|
|
@@ -312,15 +292,6 @@ dependencies = [
|
|
|
312
292
|
"hashbrown",
|
|
313
293
|
]
|
|
314
294
|
|
|
315
|
-
[[package]]
|
|
316
|
-
name = "indoc"
|
|
317
|
-
version = "2.0.7"
|
|
318
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
319
|
-
checksum = "79cf5c93f93228cf8efb3ba362535fb11199ac548a09ce117c9b1adc3030d706"
|
|
320
|
-
dependencies = [
|
|
321
|
-
"rustversion",
|
|
322
|
-
]
|
|
323
|
-
|
|
324
295
|
[[package]]
|
|
325
296
|
name = "itoa"
|
|
326
297
|
version = "1.0.15"
|
|
@@ -370,15 +341,6 @@ version = "2.7.6"
|
|
|
370
341
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
371
342
|
checksum = "f52b00d39961fc5b2736ea853c9cc86238e165017a493d1d5c8eac6bdc4cc273"
|
|
372
343
|
|
|
373
|
-
[[package]]
|
|
374
|
-
name = "memoffset"
|
|
375
|
-
version = "0.9.1"
|
|
376
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
377
|
-
checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"
|
|
378
|
-
dependencies = [
|
|
379
|
-
"autocfg",
|
|
380
|
-
]
|
|
381
|
-
|
|
382
344
|
[[package]]
|
|
383
345
|
name = "miniz_oxide"
|
|
384
346
|
version = "0.8.9"
|
|
@@ -432,27 +394,24 @@ dependencies = [
|
|
|
432
394
|
|
|
433
395
|
[[package]]
|
|
434
396
|
name = "pyo3"
|
|
435
|
-
version = "0.
|
|
397
|
+
version = "0.28.2"
|
|
436
398
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
437
|
-
checksum = "
|
|
399
|
+
checksum = "cf85e27e86080aafd5a22eae58a162e133a589551542b3e5cee4beb27e54f8e1"
|
|
438
400
|
dependencies = [
|
|
439
401
|
"chrono",
|
|
440
|
-
"indoc",
|
|
441
402
|
"libc",
|
|
442
|
-
"memoffset",
|
|
443
403
|
"once_cell",
|
|
444
404
|
"portable-atomic",
|
|
445
405
|
"pyo3-build-config",
|
|
446
406
|
"pyo3-ffi",
|
|
447
407
|
"pyo3-macros",
|
|
448
|
-
"unindent",
|
|
449
408
|
]
|
|
450
409
|
|
|
451
410
|
[[package]]
|
|
452
411
|
name = "pyo3-build-config"
|
|
453
|
-
version = "0.
|
|
412
|
+
version = "0.28.2"
|
|
454
413
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
455
|
-
checksum = "
|
|
414
|
+
checksum = "8bf94ee265674bf76c09fa430b0e99c26e319c945d96ca0d5a8215f31bf81cf7"
|
|
456
415
|
dependencies = [
|
|
457
416
|
"python3-dll-a",
|
|
458
417
|
"target-lexicon",
|
|
@@ -460,9 +419,9 @@ dependencies = [
|
|
|
460
419
|
|
|
461
420
|
[[package]]
|
|
462
421
|
name = "pyo3-ffi"
|
|
463
|
-
version = "0.
|
|
422
|
+
version = "0.28.2"
|
|
464
423
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
465
|
-
checksum = "
|
|
424
|
+
checksum = "491aa5fc66d8059dd44a75f4580a2962c1862a1c2945359db36f6c2818b748dc"
|
|
466
425
|
dependencies = [
|
|
467
426
|
"libc",
|
|
468
427
|
"pyo3-build-config",
|
|
@@ -470,8 +429,8 @@ dependencies = [
|
|
|
470
429
|
|
|
471
430
|
[[package]]
|
|
472
431
|
name = "pyo3-file"
|
|
473
|
-
version = "0.
|
|
474
|
-
source = "git+https://github.com/
|
|
432
|
+
version = "0.15.0"
|
|
433
|
+
source = "git+https://github.com/dimastbk/pyo3-file.git?rev=b0a5b260d13c6df14ea021b06c071a6f389fa805#b0a5b260d13c6df14ea021b06c071a6f389fa805"
|
|
475
434
|
dependencies = [
|
|
476
435
|
"pyo3",
|
|
477
436
|
"skeptic",
|
|
@@ -479,9 +438,9 @@ dependencies = [
|
|
|
479
438
|
|
|
480
439
|
[[package]]
|
|
481
440
|
name = "pyo3-macros"
|
|
482
|
-
version = "0.
|
|
441
|
+
version = "0.28.2"
|
|
483
442
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
484
|
-
checksum = "
|
|
443
|
+
checksum = "f5d671734e9d7a43449f8480f8b38115df67bef8d21f76837fa75ee7aaa5e52e"
|
|
485
444
|
dependencies = [
|
|
486
445
|
"proc-macro2",
|
|
487
446
|
"pyo3-macros-backend",
|
|
@@ -491,9 +450,9 @@ dependencies = [
|
|
|
491
450
|
|
|
492
451
|
[[package]]
|
|
493
452
|
name = "pyo3-macros-backend"
|
|
494
|
-
version = "0.
|
|
453
|
+
version = "0.28.2"
|
|
495
454
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
496
|
-
checksum = "
|
|
455
|
+
checksum = "22faaa1ce6c430a1f71658760497291065e6450d7b5dc2bcf254d49f66ee700a"
|
|
497
456
|
dependencies = [
|
|
498
457
|
"heck",
|
|
499
458
|
"proc-macro2",
|
|
@@ -504,7 +463,7 @@ dependencies = [
|
|
|
504
463
|
|
|
505
464
|
[[package]]
|
|
506
465
|
name = "python-calamine"
|
|
507
|
-
version = "0.6.
|
|
466
|
+
version = "0.6.2"
|
|
508
467
|
dependencies = [
|
|
509
468
|
"calamine",
|
|
510
469
|
"chrono",
|
|
@@ -691,6 +650,12 @@ dependencies = [
|
|
|
691
650
|
"windows-sys",
|
|
692
651
|
]
|
|
693
652
|
|
|
653
|
+
[[package]]
|
|
654
|
+
name = "typed-path"
|
|
655
|
+
version = "0.12.2"
|
|
656
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
657
|
+
checksum = "3015e6ce46d5ad8751e4a772543a30c7511468070e98e64e20165f8f81155b64"
|
|
658
|
+
|
|
694
659
|
[[package]]
|
|
695
660
|
name = "unicase"
|
|
696
661
|
version = "2.8.1"
|
|
@@ -703,12 +668,6 @@ version = "1.0.22"
|
|
|
703
668
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
704
669
|
checksum = "9312f7c4f6ff9069b165498234ce8be658059c6728633667c526e27dc2cf1df5"
|
|
705
670
|
|
|
706
|
-
[[package]]
|
|
707
|
-
name = "unindent"
|
|
708
|
-
version = "0.2.4"
|
|
709
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
710
|
-
checksum = "7264e107f553ccae879d21fbea1d6724ac785e8c3bfc762137959b5802826ef3"
|
|
711
|
-
|
|
712
671
|
[[package]]
|
|
713
672
|
name = "version_check"
|
|
714
673
|
version = "0.9.5"
|
|
@@ -864,15 +823,15 @@ checksum = "f17a85883d4e6d00e8a97c586de764dabcc06133f7f1d55dce5cdc070ad7fe59"
|
|
|
864
823
|
|
|
865
824
|
[[package]]
|
|
866
825
|
name = "zip"
|
|
867
|
-
version = "
|
|
826
|
+
version = "7.3.0"
|
|
868
827
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
869
|
-
checksum = "
|
|
828
|
+
checksum = "268bf6f9ceb991e07155234071501490bb41fd1e39c6a588106dad10ae2a5804"
|
|
870
829
|
dependencies = [
|
|
871
|
-
"arbitrary",
|
|
872
830
|
"crc32fast",
|
|
873
831
|
"flate2",
|
|
874
832
|
"indexmap",
|
|
875
833
|
"memchr",
|
|
834
|
+
"typed-path",
|
|
876
835
|
"zopfli",
|
|
877
836
|
]
|
|
878
837
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "python-calamine"
|
|
3
|
-
version = "0.6.
|
|
3
|
+
version = "0.6.2"
|
|
4
4
|
edition = "2021"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
|
|
@@ -9,14 +9,14 @@ name = "python_calamine"
|
|
|
9
9
|
crate-type = ["cdylib"]
|
|
10
10
|
|
|
11
11
|
[dependencies]
|
|
12
|
-
calamine = { version = "0.
|
|
13
|
-
pyo3 = { version = "0.
|
|
12
|
+
calamine = { version = "0.33.0", features = ["chrono"] }
|
|
13
|
+
pyo3 = { version = "0.28.2", features = [
|
|
14
14
|
"extension-module",
|
|
15
15
|
"chrono",
|
|
16
16
|
"generate-import-lib",
|
|
17
17
|
] }
|
|
18
18
|
chrono = { version = "0.4.42", features = ["serde"] }
|
|
19
|
-
pyo3-file = { git = "https://github.com/
|
|
19
|
+
pyo3-file = { git = "https://github.com/dimastbk/pyo3-file.git", rev = "b0a5b260d13c6df14ea021b06c071a6f389fa805" }
|
|
20
20
|
|
|
21
21
|
[build-dependencies]
|
|
22
|
-
pyo3-build-config = "0.
|
|
22
|
+
pyo3-build-config = "0.28.2"
|
|
@@ -17,7 +17,7 @@ fn load_workbook(
|
|
|
17
17
|
CalamineWorkbook::from_object(py, path_or_filelike, load_tables)
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
#[pymodule
|
|
20
|
+
#[pymodule]
|
|
21
21
|
fn _python_calamine(py: Python, m: &Bound<'_, PyModule>) -> PyResult<()> {
|
|
22
22
|
m.add_function(wrap_pyfunction!(load_workbook, m)?)?;
|
|
23
23
|
m.add_class::<CalamineWorkbook>()?;
|
|
@@ -8,7 +8,7 @@ use pyo3::types::PyList;
|
|
|
8
8
|
|
|
9
9
|
use crate::CellValue;
|
|
10
10
|
|
|
11
|
-
#[pyclass(eq, eq_int)]
|
|
11
|
+
#[pyclass(eq, eq_int, from_py_object)]
|
|
12
12
|
#[derive(Clone, Debug, PartialEq)]
|
|
13
13
|
pub enum SheetTypeEnum {
|
|
14
14
|
/// WorkSheet
|
|
@@ -41,7 +41,7 @@ impl From<SheetType> for SheetTypeEnum {
|
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
#[pyclass(eq, eq_int)]
|
|
44
|
+
#[pyclass(eq, eq_int, from_py_object)]
|
|
45
45
|
#[derive(Clone, Debug, PartialEq)]
|
|
46
46
|
pub enum SheetVisibleEnum {
|
|
47
47
|
/// Visible
|
|
@@ -70,7 +70,7 @@ impl From<SheetVisible> for SheetVisibleEnum {
|
|
|
70
70
|
|
|
71
71
|
type MergedCellRange = ((u32, u32), (u32, u32));
|
|
72
72
|
|
|
73
|
-
#[pyclass]
|
|
73
|
+
#[pyclass(from_py_object)]
|
|
74
74
|
#[derive(Clone, PartialEq)]
|
|
75
75
|
pub struct SheetMetadata {
|
|
76
76
|
#[pyo3(get)]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|