python-calamine 0.1.7__tar.gz → 0.2.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.
Files changed (44) hide show
  1. {python_calamine-0.1.7 → python_calamine-0.2.2}/.github/workflows/CI.yml +25 -14
  2. {python_calamine-0.1.7 → python_calamine-0.2.2}/.pre-commit-config.yaml +12 -5
  3. {python_calamine-0.1.7 → python_calamine-0.2.2}/Cargo.lock +288 -301
  4. {python_calamine-0.1.7 → python_calamine-0.2.2}/Cargo.toml +10 -6
  5. {python_calamine-0.1.7 → python_calamine-0.2.2}/PKG-INFO +13 -3
  6. {python_calamine-0.1.7 → python_calamine-0.2.2}/README.md +11 -1
  7. {python_calamine-0.1.7 → python_calamine-0.2.2}/pyproject.toml +7 -1
  8. {python_calamine-0.1.7 → python_calamine-0.2.2}/python/python_calamine/__init__.py +8 -0
  9. {python_calamine-0.1.7 → python_calamine-0.2.2}/python/python_calamine/_python_calamine.pyi +35 -13
  10. {python_calamine-0.1.7 → python_calamine-0.2.2}/python/python_calamine/pandas.py +12 -6
  11. python_calamine-0.2.2/src/lib.rs +32 -0
  12. python_calamine-0.2.2/src/types/cell.rs +100 -0
  13. {python_calamine-0.1.7 → python_calamine-0.2.2}/src/types/mod.rs +4 -0
  14. {python_calamine-0.1.7 → python_calamine-0.2.2}/src/types/sheet.rs +8 -11
  15. {python_calamine-0.1.7 → python_calamine-0.2.2}/src/types/workbook.rs +59 -51
  16. python_calamine-0.2.2/src/utils.rs +46 -0
  17. {python_calamine-0.1.7 → python_calamine-0.2.2}/tests/conftest.py +0 -8
  18. python_calamine-0.2.2/tests/data/empty_file.ods +0 -0
  19. python_calamine-0.2.2/tests/data/empty_file.xlsb +0 -0
  20. python_calamine-0.2.2/tests/data/empty_file.xlsx +0 -0
  21. python_calamine-0.2.2/tests/data/password.ods +0 -0
  22. python_calamine-0.2.2/tests/data/password.xls +0 -0
  23. python_calamine-0.2.2/tests/data/password.xlsb +0 -0
  24. python_calamine-0.2.2/tests/data/password.xlsx +0 -0
  25. {python_calamine-0.1.7 → python_calamine-0.2.2}/tests/test_base.py +66 -4
  26. {python_calamine-0.1.7 → python_calamine-0.2.2}/tests/test_pandas.py +21 -8
  27. python_calamine-0.1.7/src/lib.rs +0 -25
  28. python_calamine-0.1.7/src/types/cell.rs +0 -85
  29. python_calamine-0.1.7/src/utils.rs +0 -12
  30. {python_calamine-0.1.7 → python_calamine-0.2.2}/.gitignore +0 -0
  31. {python_calamine-0.1.7 → python_calamine-0.2.2}/LICENSE +0 -0
  32. {python_calamine-0.1.7 → python_calamine-0.2.2}/build.rs +0 -0
  33. {python_calamine-0.1.7 → python_calamine-0.2.2}/poetry.lock +0 -0
  34. {python_calamine-0.1.7 → python_calamine-0.2.2}/python/python_calamine/py.typed +0 -0
  35. {python_calamine-0.1.7 → python_calamine-0.2.2}/tests/__init__.py +0 -0
  36. {python_calamine-0.1.7 → python_calamine-0.2.2}/tests/data/any_sheets.ods +0 -0
  37. {python_calamine-0.1.7 → python_calamine-0.2.2}/tests/data/any_sheets.xls +0 -0
  38. {python_calamine-0.1.7 → python_calamine-0.2.2}/tests/data/any_sheets.xlsb +0 -0
  39. {python_calamine-0.1.7 → python_calamine-0.2.2}/tests/data/any_sheets.xlsx +0 -0
  40. {python_calamine-0.1.7 → python_calamine-0.2.2}/tests/data/base.ods +0 -0
  41. {python_calamine-0.1.7 → python_calamine-0.2.2}/tests/data/base.xls +0 -0
  42. {python_calamine-0.1.7 → python_calamine-0.2.2}/tests/data/base.xlsb +0 -0
  43. {python_calamine-0.1.7 → python_calamine-0.2.2}/tests/data/base.xlsx +0 -0
  44. {python_calamine-0.1.7 → python_calamine-0.2.2}/tests/test_sheet_type.py +0 -0
@@ -13,7 +13,7 @@ on:
13
13
 
14
14
  jobs:
15
15
  test:
16
- name: test ${{ matrix.python-version }} pandas ${{ matrix.pandas-version }}
16
+ name: test ${{ matrix.python-version }} pandas ${{ matrix.pandas-version }} ${{ matrix.disable-gil && 'free-threaded' || '' }}
17
17
  strategy:
18
18
  fail-fast: false
19
19
  matrix:
@@ -21,15 +21,11 @@ jobs:
21
21
  - '3.9'
22
22
  - '3.10'
23
23
  - '3.11'
24
+ - '3.12'
24
25
  pandas-version:
25
- - '2.0.*'
26
26
  - '2.1.*'
27
+ - '2.2.*'
27
28
  include:
28
- - python-version: '3.8'
29
- pandas-version: '2.0.*'
30
- # https://github.com/pandas-dev/pandas/issues/53665
31
- - python-version: '3.12'
32
- pandas-version: 'none'
33
29
  # https://github.com/pandas-dev/pandas/issues/42509
34
30
  - python-version: 'pypy3.8'
35
31
  pandas-version: 'none'
@@ -39,6 +35,13 @@ jobs:
39
35
  # https://github.com/pandas-dev/pandas/issues/42509
40
36
  - python-version: 'pypy3.10'
41
37
  pandas-version: 'none'
38
+ # https://github.com/pandas-dev/pandas/issues/58734
39
+ - python-version: '3.13'
40
+ pandas-version: 'none'
41
+ # https://github.com/pandas-dev/pandas/issues/58734
42
+ # - python-version: '3.13'
43
+ # pandas-version: 'none'
44
+ # disable-gil: true
42
45
 
43
46
  runs-on: ubuntu-latest
44
47
 
@@ -60,11 +63,19 @@ jobs:
60
63
  key: v3
61
64
 
62
65
  - name: set up python
63
- uses: actions/setup-python@v4
66
+ uses: actions/setup-python@v5
67
+ if: "${{ !matrix.disable-gil }}"
64
68
  with:
65
69
  python-version: ${{ matrix.python-version }}
66
70
  allow-prereleases: true
67
71
 
72
+ - name: set up python (free-threaded)
73
+ uses: deadsnakes/action@v3.1.0
74
+ if: "${{ matrix.disable-gil }}"
75
+ with:
76
+ python-version: ${{ matrix.python-version }}
77
+ nogil: ${{ matrix.disable-gil }}
78
+
68
79
  - id: cache-py
69
80
  name: cache python
70
81
  uses: actions/cache@v3
@@ -157,11 +168,11 @@ jobs:
157
168
  ls: dir
158
169
  target: i686
159
170
  python-architecture: x86
160
- interpreter: 3.8 3.9 3.10 3.11 3.12
171
+ interpreter: 3.8 3.9 3.10 3.11 3.12 3.13
161
172
  - os: windows
162
173
  ls: dir
163
174
  target: aarch64
164
- interpreter: 3.11 3.12
175
+ interpreter: 3.11 3.12 3.13
165
176
  - os: ubuntu
166
177
  platform: linux
167
178
  target: i686
@@ -171,7 +182,7 @@ jobs:
171
182
  - os: ubuntu
172
183
  platform: linux
173
184
  target: armv7
174
- interpreter: 3.8 3.9 3.10 3.11 3.12
185
+ interpreter: 3.8 3.9 3.10 3.11 3.12 3.13
175
186
  # musllinux
176
187
  - os: ubuntu
177
188
  platform: linux
@@ -184,11 +195,11 @@ jobs:
184
195
  - os: ubuntu
185
196
  platform: linux
186
197
  target: ppc64le
187
- interpreter: 3.8 3.9 3.10 3.11 3.12
198
+ interpreter: 3.8 3.9 3.10 3.11 3.12 3.13
188
199
  - os: ubuntu
189
200
  platform: linux
190
201
  target: s390x
191
- interpreter: 3.8 3.9 3.10 3.11 3.12
202
+ interpreter: 3.8 3.9 3.10 3.11 3.12 3.13
192
203
  exclude:
193
204
  # Windows on arm64 only supports Python 3.11+
194
205
  - os: windows
@@ -219,7 +230,7 @@ jobs:
219
230
  with:
220
231
  target: ${{ matrix.target }}
221
232
  manylinux: ${{ matrix.manylinux || 'auto' }}
222
- args: --release --out dist --interpreter ${{ matrix.interpreter || '3.8 3.9 3.10 3.11 3.12 pypy3.8 pypy3.9 pypy3.10' }}
233
+ args: --release --out dist --interpreter ${{ matrix.interpreter || '3.8 3.9 3.10 3.11 3.12 3.13 pypy3.8 pypy3.9 pypy3.10' }}
223
234
  rust-toolchain: stable
224
235
 
225
236
  - run: ${{ matrix.ls || 'ls -lh' }} dist/
@@ -1,6 +1,6 @@
1
1
  repos:
2
2
  - repo: https://github.com/pre-commit/pre-commit-hooks
3
- rev: v4.4.0
3
+ rev: v4.5.0
4
4
  hooks:
5
5
  - id: check-added-large-files
6
6
  - id: check-toml
@@ -10,20 +10,20 @@ repos:
10
10
  - id: end-of-file-fixer
11
11
  - id: trailing-whitespace
12
12
  - repo: https://github.com/asottile/pyupgrade
13
- rev: v3.6.0
13
+ rev: v3.15.0
14
14
  hooks:
15
15
  - id: pyupgrade
16
16
  args:
17
17
  - --py3-plus
18
18
  - --keep-runtime-typing
19
19
  - repo: https://github.com/charliermarsh/ruff-pre-commit
20
- rev: v0.0.272
20
+ rev: v0.2.1
21
21
  hooks:
22
22
  - id: ruff
23
23
  args:
24
24
  - --fix
25
25
  - repo: https://github.com/pycqa/isort
26
- rev: 5.12.0
26
+ rev: 5.13.2
27
27
  hooks:
28
28
  - id: isort
29
29
  name: isort (python)
@@ -31,9 +31,16 @@ repos:
31
31
  name: isort (pyi)
32
32
  types: [pyi]
33
33
  - repo: https://github.com/psf/black
34
- rev: 23.3.0
34
+ rev: 24.1.1
35
35
  hooks:
36
36
  - id: black
37
+ - repo: https://github.com/pre-commit/mirrors-mypy
38
+ rev: v1.8.0
39
+ hooks:
40
+ - id: mypy
41
+ additional_dependencies:
42
+ - pandas-stubs
43
+ exclude: ^tests/.*$
37
44
  - repo: local
38
45
  hooks:
39
46
  - id: rust-linting