Skip to content

Commit

Permalink
Add Python 3.13, drop Python 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
dstansby committed Oct 12, 2024
1 parent eaf5d7a commit 67515ec
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 31 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ body:
attributes:
label: Python Version
description: Version of Python interpreter
placeholder: 3.10, 3.11, 3.12 etc.
placeholder: 3.11, 3.12, 3.13 etc.
validations:
required: true
- type: input
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10', '3.11', '3.12']
python-version: ['3.11', '3.12', '3.13']
numpy_version: ['>=2.1', '==1.24.*']
exclude:
- python-version: '3.12'
Expand Down
4 changes: 3 additions & 1 deletion docs/release.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@ Release notes

Enhancements
~~~~~~~~~~~~
* Added testing on Python 3.13.

Maintenance
~~~~~~~~~~~
* Dropped support for Python 3.10.

Deprecations
~~~~~~~~~~~~
Expand All @@ -41,7 +43,7 @@ Enhancements
~~~~~~~~~~~~
* Added support for creating a copy of data when converting a `zarr.Array`
to a numpy array.
By :user:`David Stansby <dstansby>` (:issue:`2106`) and
By :user:`David Stansby <dstansby>` (:issue:`2106`) and
:user:`Joe Hamman <jhamman>` (:issue:`2123`).

Maintenance
Expand Down
41 changes: 13 additions & 28 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,15 @@ build-backend = "setuptools.build_meta"
name = "zarr"
description = "An implementation of chunked, compressed, N-dimensional arrays for Python"
readme = { file = "README.md", content-type = "text/markdown" }
maintainers = [
{ name = "Alistair Miles", email = "alimanfoo@googlemail.com" }
]
requires-python = ">=3.10"
maintainers = [{ name = "Alistair Miles", email = "alimanfoo@googlemail.com" }]
requires-python = ">=3.11"
dependencies = [
'asciitree',
'numpy>=1.24',
'fasteners; sys_platform != "emscripten"',
'numcodecs>=0.10.0',
]
dynamic = [
"version",
]
dynamic = ["version"]
classifiers = [
'Development Status :: 6 - Mature',
'Intended Audience :: Developers',
Expand All @@ -30,18 +26,14 @@ classifiers = [
'Topic :: Software Development :: Libraries :: Python Modules',
'Operating System :: Unix',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
]
license = { text = "MIT" }

[project.optional-dependencies]
jupyter = [
'notebook',
'ipytree>=0.2.2',
'ipywidgets>=8.0.0',
]
jupyter = ['notebook', 'ipytree>=0.2.2', 'ipywidgets>=8.0.0']
docs = [
'sphinx',
'sphinx-automodapi',
Expand All @@ -64,14 +56,11 @@ Homepage = "https://github.com/zarr-developers/zarr-python"
exclude_lines = [
"pragma: no cover",
"pragma: ${PY_MAJOR_VERSION} no cover",
'.*\.\.\.' # Ignore "..." lines
'.*\.\.\.', # Ignore "..." lines
]

[tool.coverage.run]
omit = [
"zarr/meta_v1.py",
"bench/compress_normal.py",
]
omit = ["zarr/meta_v1.py", "bench/compress_normal.py"]

[tool.setuptools]
packages = ["zarr", "zarr._storage", "zarr.tests"]
Expand Down Expand Up @@ -100,14 +89,12 @@ exclude = [
"build",
"dist",
"venv",
"docs"
"docs",
]

[tool.ruff.lint]
extend-select = [
"B"
]
ignore = ["B905"] # zip-without-explicit-strict
extend-select = ["B"]
ignore = ["B905"] # zip-without-explicit-strict

[tool.black]
line-length = 100
Expand Down Expand Up @@ -136,19 +123,17 @@ doctest_optionflags = [
"ELLIPSIS",
"IGNORE_EXCEPTION_DETAIL",
]
addopts = [
"--durations=10",
]
addopts = ["--durations=10"]
filterwarnings = [
"error:::zarr.*",
"ignore:PY_SSIZE_T_CLEAN will be required.*:DeprecationWarning",
"ignore:The loop argument is deprecated since Python 3.8.*:DeprecationWarning",
"ignore:The .* is deprecated and will be removed in a Zarr-Python version 3*:FutureWarning",
"ignore:The experimental Zarr V3 implementation in this version .*:FutureWarning",
]
doctest_subpackage_requires =[
doctest_subpackage_requires = [
"zarr/core.py = numpy>=2",
"zarr/creation.py = numpy>=2"
"zarr/creation.py = numpy>=2",
]


Expand Down

0 comments on commit 67515ec

Please sign in to comment.