-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
126 lines (114 loc) · 2.79 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
[build-system]
requires = ["setuptools>=45", "setuptools_scm[toml]>=6.2", "wheel"]
build-backend = "setuptools.build_meta"
###############################################################################
# Project
###############################################################################
[project]
name = "spinspg"
dynamic = ["version"]
readme = "README.md"
description = "Python package for detecting spin space group on top of spglib"
authors = [
{name = "Kohei Shinohara", email = "[email protected]"},
]
requires-python = ">=3.9.0"
license = {file = "LICENSE"}
classifiers = [
# Full list: https://pypi.python.org/pypi?%3Aaction=list_classifiers
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Mathematics",
"Topic :: Scientific/Engineering :: Physics",
]
dependencies = [
"setuptools",
"setuptools_scm",
"wheel",
"typing_extensions",
"numpy>=1.20.1",
"spglib>=2.0.2",
"hsnf>=0.3.15", # Hermite normal form
"spgrep>=0.3.2",
]
[project.urls]
homepage = "https://github.com/spglib/spinspg"
repository = "https://github.com/spglib/spinspg"
[project.optional-dependencies]
dev = [
"spgrep-modulation>=0.2.5",
"pytest",
"pytest-cov",
"pre-commit",
"black",
"mypy",
"toml",
]
docs = [
"importlib-metadata",
"sphinx",
"sphinx-autobuild",
"myst-parser",
"sphinx-book-theme",
"linkify-it-py",
"enum-tools[sphinx]",
]
###############################################################################
# Setuptools
###############################################################################
[tool.setuptools]
zip-safe = false
# packages = find
# package-dir = {"" = "src"}
#
# [tool.setuptools.packages.find]
# where = ["src"]
# include = ["spinspg"]
###############################################################################
# Other tools
###############################################################################
# Enable version inference
[tool.setuptools_scm]
[tool.pytest.ini_options]
testpaths = ["tests"]
[tool.ruff]
src = ["src", "tests", "exp"]
line-length = 99
ignore = [
"E501",
"W605",
]
exclude = [
'docs',
]
[tool.black]
line-length = 99
target-version = ['py38', 'py39', 'py310', 'py311']
include = '\.pyi?$'
exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
| docs
)/
'''
[tool.mypy]
exclude = [
'docs',
]
warn_no_return = false