diff --git a/pyproject.toml b/pyproject.toml index 8c34d49..af58bc2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,7 @@ build-backend = "setuptools.build_meta" requires = [ "setuptools>=42", - "setuptools_scm[toml]>=3.4", + "setuptools-scm[toml]>=3.4", "wheel", ] @@ -10,33 +10,40 @@ requires = [ name = "rechunker" description = "A library for rechunking arrays" readme = "README.md" -license = {file = "LICENSE"} +license = { file = "LICENSE" } authors = [ - {name = "Pangeo developers", email = "ryan.abernathey@gmail.com"}, + { name = "Pangeo developers", email = "ryan.abernathey@gmail.com" }, ] requires-python = ">=3.8" +classifiers = [ + "Programming Language :: Python :: 3 :: Only", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", +] dynamic = [ "version", ] dependencies = [ "dask[array,diagnostics]", - "mypy_extensions", + "mypy-extensions", "zarr>=2.11", ] -[project.optional-dependencies] -complete = [ - "apache_beam", +optional-dependencies.complete = [ + "apache-beam", "fsspec", "prefect<2", "pyyaml", "xarray>=2022.3", ] -dev = [ +optional-dependencies.dev = [ "black", "codecov", "flake8", "hypothesis", - "IPython", + "ipython", "mypy==0.782", "nbsphinx", "numpydoc", @@ -46,25 +53,26 @@ dev = [ "sphinx-pangeo-theme", "sphinxcontrib-srclinks", ] -docs = [ - "IPython", +optional-dependencies.docs = [ + "ipython", "nbsphinx", "numpydoc", "sphinx", "sphinx-pangeo-theme", "sphinxcontrib-srclinks", ] -test = [ +optional-dependencies.test = [ "hypothesis", "pytest", ] -[project.urls] -documentation = "https://rechunker.readthedocs.io" -homepage = "https://pypi.org/project/rechunker/" -repository = "https://github.com/pangeo-data/rechunker" +urls.documentation = "https://rechunker.readthedocs.io" +urls.homepage = "https://pypi.org/project/rechunker/" +urls.repository = "https://github.com/pangeo-data/rechunker" [tool.setuptools] -packages = ["rechunker"] +packages = [ + "rechunker", +] [tool.setuptools_scm] write_to = "rechunker/_version.py" diff --git a/rechunker/__init__.py b/rechunker/__init__.py index a006adb..dbc5c71 100644 --- a/rechunker/__init__.py +++ b/rechunker/__init__.py @@ -1,4 +1,5 @@ """Top-level package for Zarr Rechunker.""" + try: from ._version import __version__ # type: ignore except ImportError: diff --git a/rechunker/algorithm.py b/rechunker/algorithm.py index ae2c327..70f8d9f 100644 --- a/rechunker/algorithm.py +++ b/rechunker/algorithm.py @@ -1,4 +1,5 @@ """Core rechunking algorithm stuff.""" + import logging import warnings from math import ceil, floor, prod diff --git a/rechunker/api.py b/rechunker/api.py index 0b3ced7..a0a350b 100644 --- a/rechunker/api.py +++ b/rechunker/api.py @@ -1,4 +1,5 @@ """User-facing functions.""" + import html import textwrap from collections import defaultdict diff --git a/rechunker/types.py b/rechunker/types.py index e1ef210..0fdaa1c 100644 --- a/rechunker/types.py +++ b/rechunker/types.py @@ -1,4 +1,5 @@ """Types definitions used by executors.""" + from dataclasses import dataclass from typing import ( Any,