Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.12"]
python-version: ["3.10", "3.12"]
runs-on: [ubuntu-latest, macos-latest, windows-latest]

include:
- python-version: pypy-3.10
runs-on: ubuntu-latest
# include:
# - python-version: pypy-3.10
# runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 0 additions & 2 deletions CMakeLists.txt

This file was deleted.

86 changes: 34 additions & 52 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[build-system]
requires = ["scikit-build-core"]
build-backend = "scikit_build_core.build"

build-backend = "setuptools.build_meta"
requires = ["setuptools>=42", "setuptools-scm>=7"]

[project]
name = "xarray-pschdf5"
Expand Down Expand Up @@ -30,21 +29,11 @@ classifiers = [
"Typing :: Typed",
]
dynamic = ["version"]
dependencies = [
"pugixml >= 0.5.0",
"h5py",
"xarray",
]
dependencies = ["pugixml >= 0.5.0", "h5py", "xarray"]

[project.optional-dependencies]
test = [
"pytest >=6",
"pytest-cov >=3",
]
dev = [
"pytest >=6",
"pytest-cov >=3",
]
test = ["pytest >=6", "pytest-cov >=3", "typing-extensions"]
dev = ["pytest >=6", "pytest-cov >=3", "typing-extensions"]
docs = [
"sphinx>=7.0",
"myst_parser>=0.13",
Expand All @@ -60,7 +49,7 @@ Discussions = "https://github.com/psc-code/xarray-pschdf5/discussions"
Changelog = "https://github.com/psc-code/xarray-pschdf5/releases"

[project.entry-points."xarray.backends"]
pschdf5 = "xarray_pschdf5:PscHdf5Entrypoint"
pschdf5 = "xarray_pschdf5.pschdf5_backend:PscHdf5Entrypoint"

[tool.scikit-build]
minimum-version = "0.4"
Expand All @@ -83,21 +72,14 @@ test-skip = ["*universal2:arm64"]
minversion = "6.0"
addopts = ["-ra", "--showlocals", "--strict-markers", "--strict-config"]
xfail_strict = true
filterwarnings = [
"error",
]
filterwarnings = ["error"]
log_cli_level = "INFO"
testpaths = [
"tests",
]
testpaths = ["tests"]


[tool.coverage]
run.source = ["xarray_pschdf5"]
report.exclude_also = [
'\.\.\.',
'if typing.TYPE_CHECKING:',
]
report.exclude_also = ['\.\.\.', 'if typing.TYPE_CHECKING:']

[tool.mypy]
files = ["src", "tests"]
Expand All @@ -120,33 +102,33 @@ src = ["src"]

[tool.ruff.lint]
extend-select = [
"B", # flake8-bugbear
"I", # isort
"ARG", # flake8-unused-arguments
"C4", # flake8-comprehensions
"EM", # flake8-errmsg
"ICN", # flake8-import-conventions
"G", # flake8-logging-format
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"PL", # pylint
"PT", # flake8-pytest-style
"PTH", # flake8-use-pathlib
"RET", # flake8-return
"RUF", # Ruff-specific
"SIM", # flake8-simplify
"T20", # flake8-print
"UP", # pyupgrade
"YTT", # flake8-2020
"EXE", # flake8-executable
"NPY", # NumPy specific rules
"PD", # pandas-vet
"B", # flake8-bugbear
"I", # isort
"ARG", # flake8-unused-arguments
"C4", # flake8-comprehensions
"EM", # flake8-errmsg
"ICN", # flake8-import-conventions
"G", # flake8-logging-format
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"PL", # pylint
"PT", # flake8-pytest-style
"PTH", # flake8-use-pathlib
"RET", # flake8-return
"RUF", # Ruff-specific
"SIM", # flake8-simplify
"T20", # flake8-print
"UP", # pyupgrade
"YTT", # flake8-2020
"EXE", # flake8-executable
"NPY", # NumPy specific rules
"PD", # pandas-vet
]
ignore = [
"PLR09", # Too many <...>
"PLR2004", # Magic value used in comparison
"ISC001", # Conflicts with formatter
"C408", # like my dict() calls
"PLR09", # Too many <...>
"PLR2004", # Magic value used in comparison
"ISC001", # Conflicts with formatter
"C408", # like my dict() calls
"RET504",
]
isort.required-imports = ["from __future__ import annotations"]
Expand Down
28 changes: 0 additions & 28 deletions src/main.cpp

This file was deleted.

6 changes: 5 additions & 1 deletion src/xarray_pschdf5/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

from __future__ import annotations

import pathlib

from ._version import version as __version__

__all__ = ["__version__"]
sample_dir = pathlib.Path(__file__).parent / "sample"

__all__ = ["__version__", "sample_dir"]
Loading
Loading