zarrs 0.2.0__tar.gz → 0.2.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.

Potentially problematic release.


This version of zarrs might be problematic. Click here for more details.

Files changed (49) hide show
  1. {zarrs-0.2.0 → zarrs-0.2.1}/.github/workflows/cd.yml +16 -15
  2. {zarrs-0.2.0 → zarrs-0.2.1}/.github/workflows/ci.yml +2 -2
  3. {zarrs-0.2.0 → zarrs-0.2.1}/.pre-commit-config.yaml +10 -6
  4. {zarrs-0.2.0 → zarrs-0.2.1}/Cargo.lock +413 -555
  5. {zarrs-0.2.0 → zarrs-0.2.1}/Cargo.toml +5 -5
  6. {zarrs-0.2.0 → zarrs-0.2.1}/PKG-INFO +6 -3
  7. {zarrs-0.2.0 → zarrs-0.2.1}/README.md +4 -2
  8. {zarrs-0.2.0 → zarrs-0.2.1}/pyproject.toml +5 -0
  9. {zarrs-0.2.0 → zarrs-0.2.1}/python/zarrs/__init__.py +0 -4
  10. {zarrs-0.2.0 → zarrs-0.2.1}/python/zarrs/_internal.pyi +4 -13
  11. {zarrs-0.2.0 → zarrs-0.2.1}/python/zarrs/pipeline.py +10 -29
  12. {zarrs-0.2.0 → zarrs-0.2.1}/python/zarrs/utils.py +1 -1
  13. {zarrs-0.2.0 → zarrs-0.2.1}/src/chunk_item.rs +8 -1
  14. {zarrs-0.2.0 → zarrs-0.2.1}/src/concurrency.rs +3 -3
  15. {zarrs-0.2.0 → zarrs-0.2.1}/src/lib.rs +58 -25
  16. zarrs-0.2.1/src/store/filesystem.rs +40 -0
  17. {zarrs-0.2.0 → zarrs-0.2.1}/src/store/http.rs +1 -5
  18. {zarrs-0.2.0 → zarrs-0.2.1}/src/store.rs +15 -2
  19. {zarrs-0.2.0 → zarrs-0.2.1}/src/utils.rs +23 -0
  20. {zarrs-0.2.0 → zarrs-0.2.1}/tests/conftest.py +2 -8
  21. zarrs-0.2.1/tests/data/check-registry.py +23 -0
  22. {zarrs-0.2.0 → zarrs-0.2.1}/tests/test_pipeline.py +43 -8
  23. zarrs-0.2.1/tests/test_registry.py +17 -0
  24. zarrs-0.2.0/hatch.toml +0 -13
  25. zarrs-0.2.0/src/metadata_v2.rs +0 -56
  26. zarrs-0.2.0/src/store/filesystem.rs +0 -31
  27. {zarrs-0.2.0 → zarrs-0.2.1}/.github/workflows/version-cmp.py +0 -0
  28. {zarrs-0.2.0 → zarrs-0.2.1}/.gitignore +0 -0
  29. {zarrs-0.2.0 → zarrs-0.2.1}/.readthedocs.yml +0 -0
  30. {zarrs-0.2.0 → zarrs-0.2.1}/LICENSE +0 -0
  31. {zarrs-0.2.0 → zarrs-0.2.1}/docs/Makefile +0 -0
  32. {zarrs-0.2.0 → zarrs-0.2.1}/docs/conf.py +0 -0
  33. {zarrs-0.2.0 → zarrs-0.2.1}/docs/contributing.md +0 -0
  34. {zarrs-0.2.0 → zarrs-0.2.1}/docs/index.md +0 -0
  35. {zarrs-0.2.0 → zarrs-0.2.1}/docs/make.bat +0 -0
  36. {zarrs-0.2.0 → zarrs-0.2.1}/python/zarrs/py.typed +0 -0
  37. {zarrs-0.2.0 → zarrs-0.2.1}/src/bin/stub_gen.rs +0 -0
  38. {zarrs-0.2.0 → zarrs-0.2.1}/src/runtime.rs +0 -0
  39. {zarrs-0.2.0 → zarrs-0.2.1}/src/tests.rs +0 -0
  40. {zarrs-0.2.0 → zarrs-0.2.1}/tests/test_codecs.py +0 -0
  41. {zarrs-0.2.0 → zarrs-0.2.1}/tests/test_endian.py +0 -0
  42. {zarrs-0.2.0 → zarrs-0.2.1}/tests/test_gzip.py +0 -0
  43. {zarrs-0.2.0 → zarrs-0.2.1}/tests/test_sharding.py +0 -0
  44. {zarrs-0.2.0 → zarrs-0.2.1}/tests/test_transpose.py +0 -0
  45. {zarrs-0.2.0 → zarrs-0.2.1}/tests/test_v2.py +0 -0
  46. {zarrs-0.2.0 → zarrs-0.2.1}/tests/test_version.py +0 -0
  47. {zarrs-0.2.0 → zarrs-0.2.1}/tests/test_vlen.py +0 -0
  48. {zarrs-0.2.0 → zarrs-0.2.1}/tests/test_zarrs_http.py +0 -0
  49. {zarrs-0.2.0 → zarrs-0.2.1}/tests/test_zstd.py +0 -0
@@ -24,7 +24,6 @@ jobs:
24
24
  manylinux: ['2_28']
25
25
  include:
26
26
  # manylinux for various platforms
27
- #- { os: linux, manylinux: '2_28', target: i686 }
28
27
  - { os: linux, manylinux: '2_28', target: armv7 }
29
28
  - { os: linux, manylinux: '2_28', target: ppc64le }
30
29
  #- { os: linux, manylinux: '2_28', target: s390x }
@@ -32,20 +31,18 @@ jobs:
32
31
  - { os: linux, manylinux: musllinux_1_2, target: x86_64 }
33
32
  - { os: linux, manylinux: musllinux_1_2, target: aarch64 }
34
33
  - { os: linux, manylinux: musllinux_1_2, target: armv7 }
35
- # windows
36
- - { os: windows, target: i686, python-architecture: x86 }
37
34
  exclude:
38
- # https://github.com/rust-cross/cargo-xwin/issues/76
35
+ # Fails with “LINK : fatal error LNK1181: cannot open input file 'python3.lib'”
39
36
  - os: windows
40
37
  target: aarch64
41
38
  runs-on: ${{ (matrix.os == 'linux' && 'ubuntu') || matrix.os }}-latest
42
39
  steps:
43
- - uses: actions/checkout@v4
44
- - uses: actions/setup-python@v5
40
+ - uses: actions/checkout@v5
41
+ - uses: actions/setup-python@v6
45
42
  with:
46
43
  python-version: '3.13'
47
44
  architecture: ${{ matrix.python-architecture || 'x64' }}
48
- - run: pip install twine
45
+ - run: pipx install twine abi3audit
49
46
  - uses: PyO3/maturin-action@v1
50
47
  with:
51
48
  target: ${{ matrix.target }}
@@ -53,8 +50,7 @@ jobs:
53
50
  args: --release --out dist --interpreter '3.11 3.12 3.13'
54
51
  rust-toolchain: stable
55
52
  docker-options: -e CI
56
- # https://github.com/PyO3/maturin/issues/2336#issuecomment-2507418846
57
- maturin-version: 1.7.4
53
+ maturin-version: 1.9.4
58
54
  before-script-linux: |
59
55
  # If we're running on rhel centos, install needed packages.
60
56
  if command -v yum &> /dev/null; then
@@ -66,6 +62,7 @@ jobs:
66
62
  fi
67
63
  - run: ${{ (matrix.os == 'windows' && 'dir') || 'ls -lh' }} dist/
68
64
  - run: twine check --strict dist/*
65
+ - run: abi3audit dist/*.whl
69
66
  - uses: actions/upload-artifact@v4
70
67
  with:
71
68
  name: pypi-files-${{ matrix.os }}-${{ matrix.target }}-${{ matrix.manylinux }}
@@ -76,8 +73,8 @@ jobs:
76
73
  # keep condition in sync with `build` job
77
74
  runs-on: ubuntu-latest
78
75
  steps:
79
- - uses: actions/checkout@v4
80
- - uses: actions/setup-python@v5
76
+ - uses: actions/checkout@v5
77
+ - uses: actions/setup-python@v6
81
78
  with:
82
79
  python-version: '3.13'
83
80
  - uses: PyO3/maturin-action@v1
@@ -93,16 +90,20 @@ jobs:
93
90
  path: dist
94
91
 
95
92
  inspect:
93
+ if: always()
96
94
  needs: [build, build-sdist]
97
95
  runs-on: ubuntu-latest
98
96
  steps:
99
- - uses: actions/download-artifact@v4
97
+ # https://github.com/re-actors/alls-green#why
98
+ - uses: re-actors/alls-green@release/v1
99
+ with:
100
+ jobs: ${{ toJSON(needs) }}
101
+ - uses: actions/download-artifact@v5
100
102
  with:
101
103
  pattern: pypi-files-*
102
104
  merge-multiple: true
103
105
  path: dist/
104
106
  - run: ls -lh dist/
105
- # TODO: some more checks? `twine` is already run above
106
107
 
107
108
  # If git tag is a version, verify that it matches the package metadata version (or fail job and skip `publish`)
108
109
  # If git tag is not a version, set output `version` to "" (also skipping `publish`)
@@ -114,8 +115,8 @@ jobs:
114
115
  is_prerelease: ${{ steps.version.outputs.is_prerelease }}
115
116
  runs-on: ubuntu-latest
116
117
  steps:
117
- - uses: actions/checkout@v4
118
- - uses: actions/setup-python@v5
118
+ - uses: actions/checkout@v5
119
+ - uses: actions/setup-python@v6
119
120
  with:
120
121
  python-version: '3.13'
121
122
  - uses: actions/download-artifact@v4
@@ -23,7 +23,7 @@ jobs:
23
23
  rust_toolchain: ["stable"] # "nightly"
24
24
  runs-on: ubuntu-latest
25
25
  steps:
26
- - uses: actions/checkout@v4
26
+ - uses: actions/checkout@v5
27
27
 
28
28
  # Rust in GH runner images can lag behind stable releases + act does not include Rust
29
29
  - name: Install Rust
@@ -36,7 +36,7 @@ jobs:
36
36
  uses: Swatinem/rust-cache@v2
37
37
 
38
38
  - name: Install Python
39
- uses: actions/setup-python@v5
39
+ uses: actions/setup-python@v6
40
40
  with:
41
41
  python-version: "3.x"
42
42
 
@@ -1,6 +1,10 @@
1
+ ci:
2
+ skip:
3
+ - rustfmt
4
+
1
5
  repos:
2
6
  - repo: https://github.com/pre-commit/pre-commit-hooks
3
- rev: v5.0.0
7
+ rev: v6.0.0
4
8
  hooks:
5
9
  - id: trailing-whitespace
6
10
  - id: end-of-file-fixer
@@ -21,12 +25,12 @@ repos:
21
25
  language: system
22
26
  pass_filenames: false
23
27
  - repo: https://github.com/astral-sh/ruff-pre-commit
24
- rev: v0.11.9
28
+ rev: v0.14.0
25
29
  hooks:
26
- - id: ruff
30
+ - id: ruff
27
31
  args: ["--fix"]
28
- - id: ruff-format
29
- # The following can be removed once PLR0917 is out of preview
30
- - name: ruff preview rules
32
+ - id: ruff-format
33
+ # The following can be removed once PLR0917 is out of preview
34
+ - name: ruff preview rules
31
35
  id: ruff
32
36
  args: ["--preview", "--select=PLR0917"]