Skip to content

Commit a80b42e

Browse files
authored
Bump zarr-python which requires drop py3.11 (TGSAI#826)
1 parent 1623f89 commit a80b42e

8 files changed

Lines changed: 17 additions & 525 deletions

File tree

.github/workflows/tests.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,12 @@ jobs:
1515
- { python: "3.13", os: "ubuntu-latest", session: "pre-commit" }
1616
# - { python: "3.13", os: "ubuntu-latest", session: "mypy" }
1717
# - { python: "3.12", os: "ubuntu-latest", session: "mypy" }
18-
# - { python: "3.11", os: "ubuntu-latest", session: "mypy" }
1918
- { python: "3.13", os: "ubuntu-latest", session: "tests" }
2019
- { python: "3.12", os: "ubuntu-latest", session: "tests" }
21-
- { python: "3.11", os: "ubuntu-latest", session: "tests" }
2220
- { python: "3.13", os: "windows-latest", session: "tests" }
2321
- { python: "3.13", os: "macos-latest", session: "tests" }
2422
# - { python: "3.13", os: "ubuntu-latest", session: "typeguard" }
2523
# - { python: "3.12", os: "ubuntu-latest", session: "typeguard" }
26-
# - { python: "3.11", os: "ubuntu-latest", session: "typeguard" }
2724
# - { python: "3.13", os: "ubuntu-latest", session: "xdoctest" }
2825
- { python: "3.13", os: "ubuntu-latest", session: "docs-build" }
2926

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Request features on the [Issue Tracker].
3737

3838
## How to set up your development environment
3939

40-
You need Python 3.11+ and the following tools:
40+
You need Python 3.12+ and the following tools:
4141

4242
- [uv]
4343
- [Nox]

noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
raise SystemExit(dedent(message)) from None
2222

2323
package = "mdio"
24-
python_versions = ["3.13", "3.12", "3.11"]
24+
python_versions = ["3.13", "3.12"]
2525
nox.needs_version = ">=2025.2.9"
2626
nox.options.default_venv_backend = "uv"
2727
nox.options.reuse_venv = "yes"

pyproject.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@ name = "multidimio"
33
version = "1.1.3"
44
description = "Cloud-native, scalable, and user-friendly multi dimensional energy data!"
55
authors = [{ name = "Altay Sansal", email = "altay.sansal@tgs.com" }]
6-
requires-python = ">=3.11,<3.14"
6+
requires-python = ">=3.12,<3.14"
77
readme = "README.md"
88
license = "Apache-2.0"
99
license-files = ["LICEN[CS]E*"]
1010
keywords = ["mdio", "multidimio", "seismic", "wind", "data"]
1111
classifiers = [
1212
"Programming Language :: Python :: 3",
13-
"Programming Language :: Python :: 3.11",
1413
"Programming Language :: Python :: 3.12",
1514
"Programming Language :: Python :: 3.13",
1615
"License :: OSI Approved :: Apache Software License",
@@ -31,7 +30,7 @@ dependencies = [
3130
"tqdm>=4.67.1",
3231
"universal-pathlib>=0.3.3",
3332
"xarray>=2025.10.1",
34-
"zarr>=3.1.3,<=3.1.6",
33+
"zarr>=3.2.1",
3534
]
3635

3736
[project.optional-dependencies]
@@ -80,7 +79,7 @@ docs = [
8079
required-version = ">=0.8.17"
8180

8281
[tool.ruff]
83-
target-version = "py311"
82+
target-version = "py312"
8483
src = ["src"]
8584
line-length = 120
8685

src/mdio/builder/schemas/v1/stats.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818

1919
from __future__ import annotations
2020

21-
from typing import TypeAlias
22-
2321
from pydantic import Field
2422

2523
from mdio.builder.schemas.core import CamelCaseStrictModel
@@ -44,7 +42,7 @@ class EdgeDefinedHistogram(BaseHistogram):
4442
bin_widths: list[float | int] = Field(..., description="The widths of the histogram bins.")
4543

4644

47-
Histogram: TypeAlias = CenteredBinHistogram | EdgeDefinedHistogram
45+
type Histogram = CenteredBinHistogram | EdgeDefinedHistogram
4846

4947

5048
class SummaryStatistics(CamelCaseStrictModel):

src/mdio/builder/schemas/v1/units.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
from __future__ import annotations
44

5-
from typing import TypeAlias
6-
75
from pint import UnitRegistry
86

97
from mdio.builder.schemas.units import UnitEnum
@@ -97,7 +95,7 @@ class VoltageUnitEnum(UnitEnum):
9795

9896

9997
# Composite model types
100-
AllUnitModel: TypeAlias = (
98+
AllUnitModel = (
10199
LengthUnitModel
102100
| TimeUnitModel
103101
| AngleUnitModel

src/mdio/builder/templates/types.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
"""Type aliases and declarative specs for templates."""
22

33
from typing import Literal
4-
from typing import TypeAlias
54

65
from pydantic import BaseModel
76

87
from mdio.builder.schemas.dtype import ScalarType
98

10-
SeismicDataDomain: TypeAlias = Literal["depth", "time"]
9+
type SeismicDataDomain = Literal["depth", "time"]
1110

12-
CdpGatherDomain: TypeAlias = Literal["offset", "angle"]
11+
type CdpGatherDomain = Literal["offset", "angle"]
1312

14-
DimCoordinateTypes: TypeAlias = dict[str, ScalarType]
13+
type DimCoordinateTypes = dict[str, ScalarType]
1514

1615

1716
class CoordinateSpec(BaseModel):

uv.lock

Lines changed: 7 additions & 506 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)