-
Notifications
You must be signed in to change notification settings - Fork 19
/
pyproject.toml
209 lines (191 loc) · 5.19 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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
[build-system]
requires = ["setuptools<69.3.0", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[project]
name = 'nomad-lab'
description = 'The NOvel MAterials Discovery (NOMAD) Python package'
readme = "README.md"
authors = [
{ name = "NOMAD Laboratory", email = '[email protected]' },
]
dynamic = ["version"]
license = { text = "Apache-2.0" }
requires-python = ">=3.9"
dependencies = [
'aniso8601>=7.0.0',
'ase~=3.22.0',
'bitarray>=2.3.5',
'cachetools>=4.2.4',
'click>=7.1.2',
'docstring-parser>=0.12',
'elasticsearch-dsl==7.4.0',
'h5py>=3.6.0',
'hjson>=3.0.2',
'httpx>=0.23.3,<0.28',
'importlib_metadata~=7.1.0',
'jmespath>=0.10.0',
'kaleido==0.2.1',
'lxml-html-clean>=0.1.0',
'lxml>=5.2',
'matid>=2.1.3',
'nptyping~=1.4.4',
'numpy>=1.22.4,<2.0.0',
'openpyxl>=3.0.0',
'orjson>=1.0',
'pandas>=2.0.0',
'panedr>=0.2',
'parmed>=3.0.0',
'pint==0.17',
'py-spy', # for on-server profiling
'pydantic>=1.10.8,<2.0.0',
'pyinstrument', # for endpoint profiling
'pymatgen>=2023.5.10',
'python-keycloak>=0.26.1',
'python-magic==0.4.24',
'pytz>=2022.7.1',
'pyyaml>=6.0',
'requests>=2.27.1,<2.32.0',
'rfc3161ng>=2.1.3',
'scikit-learn>=1.0.2',
'scipy>=1.7.1',
'toposort>=1.0',
'typing-extensions>=4.12',
'unidecode==1.3.2',
'wrapt>=1.12.1',
'xarray>=0.20.2',
]
[project.urls]
homepage = "https://nomad-lab.eu/"
documentation = "https://nomad-lab.eu/prod/v1/docs"
repository = 'https://gitlab.mpcdf.mpg.de/nomad-lab/nomad-FAIR'
[project.optional-dependencies]
parsing = [
'h5py==3.11.0',
'netCDF4==1.6.5',
'rdkit==2023.9.5',
'python-magic-bin >= 0.4; sys_platform == "win32"',
]
infrastructure = [
'asgiref~=3.5',
'bagit==1.8.1',
'basicauth==0.4.1',
'beautifulsoup4>=4.0',
'celery>=5.0',
'dockerspawner==13.0.0',
'elasticsearch>=7.0,<8',
'fastapi<0.100', # later versions pending pydantic v2 upgrade
'filelock==3.3.1',
'gitpython>=3.0',
'gunicorn>=21.2.0,<22.0.0',
'h5grove[fastapi]==1.3.0',
'html5lib==1.1',
'inflection==0.5.1',
'itsdangerous>=2.1.2',
'jsonschema[format]==4.17.3',
'jupyterhub==4.0.2',
'm2r==0.2.1',
'pymongo==4.6.3',
'mongoengine>=0.4',
'msgpack>=1.0',
'msgspec',
'oauthenticator==15.1.0',
'optimade[mongo]==0.22.1',
'pyjwt[crypto]==2.6.0',
'python-json-logger==2.0.2',
'python-logstash==0.4.6',
'python-multipart>=0.0.1',
'rdflib==5.0.0',
'recommonmark==0.7.1',
'runstats==2.0.0',
'structlog>=1.0',
'tabulate==0.8.9',
'uvicorn[standard]>=0.29',
'validators==0.18.2',
'zipstream-new==1.1.5',
]
dev = [
'aiosmtpd>=1.0',
'devtools>=0.6',
'essential-generators==1.0',
'markupsafe>=1.0',
'mkdocs-click>=0.1',
'mkdocs-git-revision-date-localized-plugin>=1.0',
'mkdocs-glightbox>=0.4',
'mkdocs-macros-plugin>=1.0',
'mkdocs-material-extensions>=1.0',
'mkdocs-material>=9.0',
'mkdocs-redirects>=1.0',
'mkdocs>=1.0',
'mypy==1.0.1', # bug: incompatible with derived models of pydantic v1
'names==0.3.0',
'uv>=0.2.35',
'pytest-asyncio>=0.23',
'pytest-cov>=2.7.1',
'pytest-timeout>=1.4.2',
'pytest-xdist>=1.30.0',
'pytest>= 5.3.0, <8',
'pytest-split>=0.9',
'python-gitlab==2.10.1',
'rope==0.21.0',
'ruamel.yaml>=0.1',
'ruff>=0.6',
'setuptools>=70', # py3.12 doesn't bundle in setuptools, but this is required by mongomock lib
]
[project.scripts]
nomad = "nomad.cli:run_cli"
[tool.ruff]
include = ["nomad/*.py", "tests/*.py"]
exclude = ["dependencies"]
# Same as Black.
line-length = 88
indent-width = 4
[tool.ruff.lint]
select = [
"E", # pycodestyle
"W", # pycodestyle
"PL", # pylint
]
ignore = [
"E501", # Line too long ({width} > {limit} characters)
"E701", # Multiple statements on one line (colon)
"E731", # Do not assign a lambda expression, use a def
"E402", # Module level import not at top of file
"PLR0911", # Too many return statements
"PLR0912", # Too many branches
"PLR0913", # Too many arguments in function definition
"PLR0915", # Too many statements
"PLR2004", # Magic value used instead of constant
"PLW0603", # Using the global statement
"PLW2901", # redefined-loop-name
"PLR1714", # consider-using-in
"PLR5501", # else-if-used
]
fixable = ["ALL"]
[tool.ruff.format]
# use single quotes for strings.
quote-style = "single"
# indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"
[tool.setuptools.packages.find]
where = ["."]
exclude = ["tests*"]
namespaces = false
[tool.mypy]
strict = false
ignore_missing_imports = true
follow_imports = "silent"
no_strict_optional = true
disable_error_code = "import, annotation-unchecked"
[tool.setuptools_scm]
[tool.uv]
extra-index-url = [
"https://gitlab.mpcdf.mpg.de/api/v4/projects/2187/packages/pypi/simple",
]
constraint-dependencies = [# can be removed once pynxtools removes kikuchipy restriction
"hyperspy>=1.7.6",
"pillow<10.1",
]