python-calamine 0.5.0__tar.gz → 0.5.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.
Files changed (42) hide show
  1. {python_calamine-0.5.0 → python_calamine-0.5.1}/Cargo.lock +1 -1
  2. {python_calamine-0.5.0 → python_calamine-0.5.1}/Cargo.toml +1 -1
  3. {python_calamine-0.5.0 → python_calamine-0.5.1}/PKG-INFO +1 -1
  4. {python_calamine-0.5.0 → python_calamine-0.5.1}/src/types/sheet.rs +9 -6
  5. {python_calamine-0.5.0 → python_calamine-0.5.1}/.github/workflows/CI.yml +0 -0
  6. {python_calamine-0.5.0 → python_calamine-0.5.1}/.gitignore +0 -0
  7. {python_calamine-0.5.0 → python_calamine-0.5.1}/.pre-commit-config.yaml +0 -0
  8. {python_calamine-0.5.0 → python_calamine-0.5.1}/LICENSE +0 -0
  9. {python_calamine-0.5.0 → python_calamine-0.5.1}/README.md +0 -0
  10. {python_calamine-0.5.0 → python_calamine-0.5.1}/build.rs +0 -0
  11. {python_calamine-0.5.0 → python_calamine-0.5.1}/pyproject.toml +0 -0
  12. {python_calamine-0.5.0 → python_calamine-0.5.1}/python/python_calamine/__init__.py +0 -0
  13. {python_calamine-0.5.0 → python_calamine-0.5.1}/python/python_calamine/_python_calamine.pyi +0 -0
  14. {python_calamine-0.5.0 → python_calamine-0.5.1}/python/python_calamine/py.typed +0 -0
  15. {python_calamine-0.5.0 → python_calamine-0.5.1}/renovate.json +0 -0
  16. {python_calamine-0.5.0 → python_calamine-0.5.1}/src/lib.rs +0 -0
  17. {python_calamine-0.5.0 → python_calamine-0.5.1}/src/types/cell.rs +0 -0
  18. {python_calamine-0.5.0 → python_calamine-0.5.1}/src/types/errors.rs +0 -0
  19. {python_calamine-0.5.0 → python_calamine-0.5.1}/src/types/mod.rs +0 -0
  20. {python_calamine-0.5.0 → python_calamine-0.5.1}/src/types/workbook.rs +0 -0
  21. {python_calamine-0.5.0 → python_calamine-0.5.1}/src/utils.rs +0 -0
  22. {python_calamine-0.5.0 → python_calamine-0.5.1}/tests/__init__.py +0 -0
  23. {python_calamine-0.5.0 → python_calamine-0.5.1}/tests/conftest.py +0 -0
  24. {python_calamine-0.5.0 → python_calamine-0.5.1}/tests/data/any_sheets.ods +0 -0
  25. {python_calamine-0.5.0 → python_calamine-0.5.1}/tests/data/any_sheets.xls +0 -0
  26. {python_calamine-0.5.0 → python_calamine-0.5.1}/tests/data/any_sheets.xlsb +0 -0
  27. {python_calamine-0.5.0 → python_calamine-0.5.1}/tests/data/any_sheets.xlsx +0 -0
  28. {python_calamine-0.5.0 → python_calamine-0.5.1}/tests/data/base.ods +0 -0
  29. {python_calamine-0.5.0 → python_calamine-0.5.1}/tests/data/base.xls +0 -0
  30. {python_calamine-0.5.0 → python_calamine-0.5.1}/tests/data/base.xlsb +0 -0
  31. {python_calamine-0.5.0 → python_calamine-0.5.1}/tests/data/base.xlsx +0 -0
  32. {python_calamine-0.5.0 → python_calamine-0.5.1}/tests/data/empty_file.ods +0 -0
  33. {python_calamine-0.5.0 → python_calamine-0.5.1}/tests/data/empty_file.xlsb +0 -0
  34. {python_calamine-0.5.0 → python_calamine-0.5.1}/tests/data/empty_file.xlsx +0 -0
  35. {python_calamine-0.5.0 → python_calamine-0.5.1}/tests/data/issue139.xlsx +0 -0
  36. {python_calamine-0.5.0 → python_calamine-0.5.1}/tests/data/password.ods +0 -0
  37. {python_calamine-0.5.0 → python_calamine-0.5.1}/tests/data/password.xls +0 -0
  38. {python_calamine-0.5.0 → python_calamine-0.5.1}/tests/data/password.xlsb +0 -0
  39. {python_calamine-0.5.0 → python_calamine-0.5.1}/tests/data/password.xlsx +0 -0
  40. {python_calamine-0.5.0 → python_calamine-0.5.1}/tests/test_base.py +0 -0
  41. {python_calamine-0.5.0 → python_calamine-0.5.1}/tests/test_pandas.py +0 -0
  42. {python_calamine-0.5.0 → python_calamine-0.5.1}/tests/test_sheet_type.py +0 -0
@@ -495,7 +495,7 @@ dependencies = [
495
495
 
496
496
  [[package]]
497
497
  name = "python-calamine"
498
- version = "0.5.0"
498
+ version = "0.5.1"
499
499
  dependencies = [
500
500
  "calamine",
501
501
  "chrono",
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "python-calamine"
3
- version = "0.5.0"
3
+ version = "0.5.1"
4
4
  edition = "2021"
5
5
  readme = "README.md"
6
6
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-calamine
3
- Version: 0.5.0
3
+ Version: 0.5.1
4
4
  Classifier: Development Status :: 4 - Beta
5
5
  Classifier: Programming Language :: Rust
6
6
  Classifier: Programming Language :: Python :: 3.10
@@ -209,12 +209,15 @@ impl CalamineSheet {
209
209
  Arc::clone(&slf.range)
210
210
  };
211
211
 
212
- PyList::new(
213
- slf.py(),
214
- range.rows().take(nrows as usize).map(|row| {
215
- PyList::new(slf.py(), row.iter().map(<&Data as Into<CellValue>>::into)).unwrap()
216
- }),
217
- )
212
+ let py_list = PyList::empty(slf.py());
213
+
214
+ for row in range.rows().take(nrows as usize) {
215
+ let py_row = PyList::new(slf.py(), row.iter().map(<&Data as Into<CellValue>>::into))?;
216
+
217
+ py_list.append(py_row)?;
218
+ }
219
+
220
+ Ok(py_list)
218
221
  }
219
222
 
220
223
  fn iter_rows(&self) -> CalamineCellIterator {
File without changes