Skip to content

Commit ea13af5

Browse files
ilan-golddcherian
andauthored
chore: spec0 compat (python 3.14 compat, python 3.12 min) (#3564)
* chore: spec0 compat (python 3.14 compat, numpy 2 min) * fix: point oh * fix: `universal_pathlib` min bound * fix: new generic syntax (leave `covariant` untouched) * feat: `uv` in `hatch` * fix: try covariance handling * fix: allow covariance in `ZDType` * fix: remove covariance in `common.py` * fix: remove covariance in `codec.py` * fix: remove unused `TypeVar` * fix: bye byte `covariant`! * fix: merge issue * fix: more merge issues * fix: universal_pathlib * fix: pre-commit * fix: no more needed to pin numpy * chore: relnote * `yaml` not `yml` * fix: some `NDArrayLike` fixes * fix: back to old numpy * Revert "fix: some `NDArrayLike` fixes" This reverts commit 73b72b1. * fix: try 3.12 * fix: oops * fix: ok that still produces some wierd output locally? * chore: try printing out full issue * fix: try skipping darwin build * fix: bring back `GetResult` --------- Co-authored-by: Deepak Cherian <dcherian@users.noreply.github.com>
1 parent 03e70f5 commit ea13af5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+212
-287
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ body:
6161
value: |
6262
```python
6363
# /// script
64-
# requires-python = ">=3.11"
64+
# requires-python = ">=3.12"
6565
# dependencies = [
6666
# "zarr@git+https://github.com/zarr-developers/zarr-python.git@main",
6767
# ]

.github/workflows/gpu_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
runs-on: gpu-runner
2828
strategy:
2929
matrix:
30-
python-version: ['3.11']
30+
python-version: ['3.12']
3131

3232
steps:
3333
- uses: actions/checkout@v6

.github/workflows/nightly_wheels.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- uses: actions/setup-python@v6
2424
name: Install Python
2525
with:
26-
python-version: '3.13'
26+
python-version: '3.14'
2727

2828
- name: Install Hatch
2929
uses: pypa/hatch@257e27e51a6a5616ed08a39a408a21c35c9931bc

.github/workflows/releases.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- uses: actions/setup-python@v6
3232
name: Install Python
3333
with:
34-
python-version: '3.11'
34+
python-version: '3.12'
3535

3636
- name: Install Hatch
3737
uses: pypa/hatch@257e27e51a6a5616ed08a39a408a21c35c9931bc

.github/workflows/test.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,23 @@ jobs:
2323

2424
strategy:
2525
matrix:
26-
python-version: ['3.11', '3.12', '3.13']
26+
python-version: ['3.12', '3.13', '3.14']
2727
dependency-set: ["minimal", "optional"]
2828
os: ["ubuntu-latest"]
2929
include:
30-
- python-version: '3.11'
30+
- python-version: '3.12'
3131
dependency-set: 'optional'
3232
os: 'macos-latest'
3333

34-
- python-version: '3.13'
34+
- python-version: '3.14'
3535
dependency-set: 'optional'
3636
os: 'macos-latest'
3737

38-
- python-version: '3.11'
38+
- python-version: '3.12'
3939
dependency-set: 'optional'
4040
os: 'windows-latest'
4141

42-
- python-version: '3.13'
42+
- python-version: '3.14'
4343
dependency-set: 'optional'
4444
os: 'windows-latest'
4545
runs-on: ${{ matrix.os }}
@@ -79,12 +79,12 @@ jobs:
7979
runs-on: ubuntu-latest
8080
strategy:
8181
matrix:
82-
python-version: ['3.11', "3.13"]
82+
python-version: ['3.12', "3.14"]
8383
dependency-set: ["upstream", "min_deps"]
8484
exclude:
85-
- python-version: "3.13"
85+
- python-version: "3.14"
8686
dependency-set: min_deps
87-
- python-version: "3.11"
87+
- python-version: "3.12"
8888
dependency-set: upstream
8989
steps:
9090
- uses: actions/checkout@v6

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ci:
77
default_stages: [pre-commit, pre-push]
88

99
default_language_version:
10-
python: python3.11
10+
python: python3.12
1111

1212
repos:
1313
- repo: https://github.com/astral-sh/ruff-pre-commit
@@ -38,7 +38,7 @@ repos:
3838
- donfig
3939
- numcodecs
4040
- google-crc32c>=1.5
41-
- numpy==2.1 # until https://github.com/numpy/numpy/issues/28034 is resolved
41+
- numpy==2.1 # https://github.com/zarr-developers/zarr-python/issues/3780 + https://github.com/zarr-developers/zarr-python/issues/3688
4242
- typing_extensions
4343
- universal-pathlib
4444
- obstore>=0.5.1

changes/3546.misc.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Upgrade to spec0 compat (python 3.14 max, python 3.12 min).

docs/contributing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ When submitting a pull request, coverage will also be collected across all suppo
205205

206206
### Documentation
207207

208-
Docstrings for user-facing classes and functions should follow the [numpydoc](https://numpydoc.readthedocs.io/en/stable/format.html#docstring-standard) standard, including sections for Parameters and Examples. All examples should run and pass as doctests under Python 3.11.
208+
Docstrings for user-facing classes and functions should follow the [numpydoc](https://numpydoc.readthedocs.io/en/stable/format.html#docstring-standard) standard, including sections for Parameters and Examples. All examples should run and pass as doctests under Python 3.12.
209209

210210
Zarr uses mkdocs for documentation, hosted on readthedocs.org. Documentation is written in the Markdown markup language (.md files) in the `docs` folder. The documentation consists both of prose and API documentation. All user-facing classes and functions are included in the API documentation, under the `docs/api` folder using the [mkdocstrings](https://mkdocstrings.github.io/) extension. Add any new public functions or classes to the relevant markdown file in `docs/api/*.md`. Any new features or important usage information should be included in the user-guide (`docs/user-guide`). Any changes should also be included as a new file in the `changes` directory.
211211

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Zarr-Python is a Python library for reading and writing Zarr groups and arrays.
2121

2222
## Installation
2323

24-
Zarr requires Python 3.11 or higher. You can install it via `pip`:
24+
Zarr requires Python 3.12 or higher. You can install it via `pip`:
2525

2626
```bash
2727
pip install zarr

docs/user-guide/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Required dependencies include:
66

7-
- [Python](https://docs.python.org/3/) (3.11 or later)
7+
- [Python](https://docs.python.org/3/) (3.12 or later)
88
- [packaging](https://packaging.pypa.io) (22.0 or later)
99
- [numpy](https://numpy.org) (2.0 or later)
1010
- [numcodecs](https://numcodecs.readthedocs.io) (0.14 or later)

0 commit comments

Comments
 (0)