diff --git a/pyproject.toml b/pyproject.toml index 9fa7199..415c37c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,8 +1,3 @@ -[build-system] -requires = ["pybind11", "scikit-build-core"] -build-backend = "scikit_build_core.build" - - [project] name = "pscpy" authors = [ @@ -21,8 +16,6 @@ classifiers = [ "Programming Language :: Python", "Programming Language :: Python :: 3", "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", @@ -30,21 +23,11 @@ classifiers = [ "Typing :: Typed", ] dynamic = ["version"] -dependencies = [ - "xarray", - "adios2", - "typing-extensions", -] +dependencies = ["xarray", "adios2", "typing-extensions"] [project.optional-dependencies] -test = [ - "pytest >=6", - "pytest-cov >=3", -] -dev = [ - "pytest >=6", - "pytest-cov >=3", -] +test = ["pytest >=6", "pytest-cov >=3"] +dev = ["pytest >=6", "pytest-cov >=3"] docs = [ "sphinx>=7.0", "myst_parser>=0.13", @@ -60,6 +43,10 @@ Discussions = "https://github.com/psc-code/pscpy/discussions" Changelog = "https://github.com/psc-code/pscpy/releases" +[build-system] +build-backend = "setuptools.build_meta" +requires = ["setuptools>=42", "setuptools-scm>=7"] + [tool.scikit-build] minimum-version = "0.4" build-dir = "build/{wheel_tag}" @@ -81,21 +68,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 = ["pscpy"] -report.exclude_also = [ - '\.\.\.', - 'if typing.TYPE_CHECKING:', -] +report.exclude_also = ['\.\.\.', 'if typing.TYPE_CHECKING:'] [tool.mypy] files = ["src", "tests"] @@ -119,32 +99,32 @@ line-length = 200 [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 + "PLR09", # Too many <...> + "PLR2004", # Magic value used in comparison + "ISC001", # Conflicts with formatter ] isort.required-imports = ["from __future__ import annotations"] # Uncomment if using a _compat.typing backport