phono3py/pyproject.toml

73 lines
1.8 KiB
TOML
Raw Normal View History

[build-system]
2024-07-07 09:55:19 +08:00
requires = ["scikit-build-core", "nanobind", "numpy"]
build-backend = "scikit_build_core.build"
[project]
name = "phono3py"
dynamic = ["version"]
readme = { file = "README.md", content-type = "text/markdown" }
description = "This is the phono3py module."
authors = [{ name = "Atsushi Togo", email = "atztogo@gmail.com" }]
requires-python = ">=3.8"
dependencies = [
"numpy>=1.17.0",
"scipy",
"PyYAML>=5.3",
"matplotlib>=2.2.2",
"h5py>=3.0",
"spglib>=2.3",
2024-08-23 21:22:28 +08:00
"phonopy>=2.27,<2.28",
2024-07-07 09:55:19 +08:00
]
license = { file = "LICENSE" }
[project.urls]
Homepage = "https://phonopy.github.io/phono3py/"
Repository = "https://github.com/phonopy/phono3py"
[project.scripts]
phono3py = "phono3py.scripts.phono3py:run"
2024-07-08 16:00:43 +08:00
phono3py-load = "phono3py.scripts.phono3py_load:run"
phono3py-coleigplot = "phono3py.scripts.phono3py_coleigplot:run"
phono3py-kaccum = "phono3py.scripts.phono3py_kaccum:run"
phono3py-kdeplot = "phono3py.scripts.phono3py_kdeplot:run"
2024-07-07 09:55:19 +08:00
[tool.scikit-build]
2024-07-08 16:00:43 +08:00
cmake.verbose = true
logging.level = "INFO"
2024-07-07 09:55:19 +08:00
metadata.version.provider = "scikit_build_core.metadata.setuptools_scm"
sdist.exclude = ["*"]
sdist.include = [
"test",
"LICENSE",
"c",
"example",
"phono3py",
"pyproject.toml",
"CMakeLists.txt",
"README.md",
]
2024-07-07 10:52:56 +08:00
[tool.scikit-build.cmake.define]
2024-07-08 16:00:43 +08:00
PHONO3PY_USE_MTBLAS = {env="PHONO3PY_USE_MTBLAS", default="ON"}
USE_CONDA_PATH = {env="USE_CONDA_PATH", default="ON"}
2024-07-08 10:19:55 +08:00
PHONO3PY_USE_OMP = {env="PHONO3PY_USE_OMP", default="ON"}
2024-07-07 10:52:56 +08:00
2024-07-07 09:55:19 +08:00
[tool.setuptools_scm]
write_to = "phono3py/_version.py"
2024-06-21 12:49:24 +08:00
[tool.ruff]
2021-10-15 15:49:41 +08:00
line-length = 88
2024-06-28 14:45:12 +08:00
lint.select = [
2024-06-21 12:49:24 +08:00
"F", # Flake8
"B", # Black
"I", # isort
"E", # pycodestyle-errors
"D", # pydocstyle
]
2024-07-07 09:55:19 +08:00
lint.extend-ignore = ["D417", "D100"]
exclude = ["cmake-format.py"]
2021-10-23 10:35:40 +08:00
2024-06-21 12:49:24 +08:00
[tool.ruff.lint.pydocstyle]
convention = "numpy"