| 1 |
[build-system] |
| 2 |
requires = [ |
| 3 |
"setuptools>=77.0.3", |
| 4 |
"wheel", |
| 5 |
"scikit-build-core[pyproject]>=0.11.0", |
| 6 |
"nanobind>=1.3.2,<2.15", # Temporary cap on nanobind for stable dolfinx |
| 7 |
"packaging>=24.2", |
| 8 |
"pkgconfig" |
| 9 |
] |
| 10 |
build-backend = "setuptools.build_meta" |
| 11 |
|
| 12 |
[project] |
| 13 |
name = "io4dolfinx" |
| 14 |
version = "1.4.0" |
| 15 |
description = "Checkpointing functionality for DOLFINx meshes/functions with ADIOS2" |
| 16 |
authors = [ |
| 17 |
{ name = "Jørgen S. Dokken", email = "[email protected]" }, |
| 18 |
{ name = "Henrik N.T. Finsberg", email = "[email protected]" } |
| 19 |
] |
| 20 |
license = { file = "LICENSE" } |
| 21 |
readme = "README.md" |
| 22 |
requires-python = ">=3.12" |
| 23 |
dependencies = ["fenics-dolfinx>=0.10.0", "packaging"] |
| 24 |
|
| 25 |
[project.optional-dependencies] |
| 26 |
h5py = ["h5py"] |
| 27 |
pyvista = ["pyvista"] |
| 28 |
xdmf = ["h5py"] |
| 29 |
exodus = ["netcdf4"] |
| 30 |
|
| 31 |
[dependency-groups] |
| 32 |
build = [ |
| 33 |
"scikit-build-core[pyproject]>=0.11.0", |
| 34 |
"nanobind>=1.3.2,<3.0", |
| 35 |
"setuptools>=77.0.3", |
| 36 |
"packaging>=24.2", |
| 37 |
"pkgconfig" |
| 38 |
] |
| 39 |
|
| 40 |
test = [ |
| 41 |
"pytest", |
| 42 |
"coverage", |
| 43 |
"ipyparallel", |
| 44 |
"io4dolfinx[h5py]", |
| 45 |
"io4dolfinx[pyvista]", |
| 46 |
"io4dolfinx[xdmf]" |
| 47 |
] |
| 48 |
dev = [ |
| 49 |
"pdbpp", |
| 50 |
"ipython", |
| 51 |
"mypy", |
| 52 |
"ruff" |
| 53 |
] |
| 54 |
docs = [ |
| 55 |
"jupyter-book<2.0.0", |
| 56 |
"ipyparallel", |
| 57 |
"ipywidgets", |
| 58 |
"jupytext", |
| 59 |
"ipykernel", |
| 60 |
"sphinx-codeautolink", |
| 61 |
"io4dolfinx[h5py]", |
| 62 |
"io4dolfinx[pyvista]", |
| 63 |
"sphinx_external_toc<1.1.0", |
| 64 |
] |
| 65 |
all = [ |
| 66 |
{ include-group = "test" }, |
| 67 |
{ include-group = "dev" }, |
| 68 |
{ include-group = "docs" } |
| 69 |
] |
| 70 |
|
| 71 |
[tool.pytest.ini_options] |
| 72 |
addopts = ["--import-mode=importlib"] |
| 73 |
testpaths = ["tests"] |
| 74 |
|
| 75 |
[tool.mypy] |
| 76 |
ignore_missing_imports = true |
| 77 |
# Folders to exclude |
| 78 |
exclude = ["docs/", "build/"] |
| 79 |
# Folder to check with mypy |
| 80 |
files = ["src", "tests"] |
| 81 |
|
| 82 |
[tool.ruff] |
| 83 |
src = ["src", "tests", "docs"] |
| 84 |
line-length = 100 |
| 85 |
indent-width = 4 |
| 86 |
|
| 87 |
[tool.ruff.lint] |
| 88 |
select = [ |
| 89 |
# Pyflakes |
| 90 |
"F", |
| 91 |
# Pycodestyle |
| 92 |
"E", |
| 93 |
"W", |
| 94 |
# isort |
| 95 |
"I001", |
| 96 |
] |
| 97 |
|
| 98 |
[tool.ruff.lint.isort] |
| 99 |
known-first-party = ["io4dolfinx"] |
| 100 |
known-third-party = [ |
| 101 |
"basix", |
| 102 |
"dolfinx", |
| 103 |
"ffcx", |
| 104 |
"ufl", |
| 105 |
"gmsh", |
| 106 |
"numpy", |
| 107 |
"pytest", |
| 108 |
] |
| 109 |
section-order = [ |
| 110 |
"future", |
| 111 |
"standard-library", |
| 112 |
"mpi", |
| 113 |
"third-party", |
| 114 |
"first-party", |
| 115 |
"local-folder", |
| 116 |
] |
| 117 |
|
| 118 |
[tool.ruff.lint.isort.sections] |
| 119 |
"mpi" = ["mpi4py", "petsc4py"] |
| 120 |
|
| 121 |
[tool.bumpversion] |
| 122 |
allow_dirty = false |
| 123 |
commit = true |
| 124 |
message = "Bump version: {current_version} → {new_version}" |
| 125 |
tag = true |
| 126 |
sign_tags = false |
| 127 |
tag_name = "v{new_version}" |
| 128 |
tag_message = "Bump version: {current_version} → {new_version}" |
| 129 |
current_version = "1.4.0" |
| 130 |
|
| 131 |
[[tool.bumpversion.files]] |
| 132 |
filename = "pyproject.toml" |
| 133 |
search = 'version = "{current_version}"' |
| 134 |
replace = 'version = "{new_version}"' |