forked from FAIRmat-NFDI/nomad-distro-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
111 lines (96 loc) · 3.71 KB
/
Copy pathpyproject.toml
File metadata and controls
111 lines (96 loc) · 3.71 KB
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
[project]
name = "nomad-distribution"
description = "nomad distribution template"
version = "0.1"
readme = "README.md"
requires-python = ">=3.10"
license = { file = "LICENSE" }
dependencies = [
"nomad-lab[parsing, infrastructure]>=1.3.10",
#"perovskite-solar-cell-database",
#'nomad-porous-materials; sys_platform != "win32"',
#"nomad-aitoolkit",
#"nomad-simulations>=0.3.2",
#"pynxtools[apm,ellips,mpes,raman,stm,xps,xrd]==0.10.0",
#"nomad-schema-plugin-run>=1.0.1",
#"nomad-normalizer-plugin-dos>=1.0",
#"nomad-normalizer-plugin-soap>=1.0",
#"nomad-normalizer-plugin-spectra>=1.0",
#"nomad-normalizer-plugin-system>=1.0",
#"nomad-parser-plugins-electronic>=1.0",
#"nomad-parser-plugins-atomistic>=1.0.6",
#"nomad-parser-plugins-database>=1.0",
#"nomad-external-eln-integrations",
"nomad-baseclasses",
"nomad-chemical-energy",
"httpx==0.27.2",
"nomad-material-processing",
]
[tool.uv.workspace]
members = ["packages/*"]
[tool.uv.sources]
nomad-lab = { workspace = true }
nomad-baseclasses = { workspace = true }
nomad-chemical-energy = { workspace = true }
nomad-material-processing = { workspace = true }
#nomad-aitoolkit = { git = "https://github.com/FAIRmat-NFDI/nomad-aitoolkit.git", rev = "b203f8eb28dc4b6771a39d5c5b7ad3d9d8583ac8" }
#nomad-porous-materials = { git = "https://github.com/FAIRmat-NFDI/nomad-porous-materials.git", rev = "522f4a3208077f534f1c5e886527ee2104283d0b" }
#perovskite-solar-cell-database = { git = "https://github.com/FAIRmat-NFDI/nomad-perovskite-solar-cells-database.git", tag = "v0.1.1" }
#nomad-external-eln-integrations = { git = "https://github.com/FAIRmat-NFDI/nomad-external-eln-integrations", rev = "de8050effb510fc2be0974cb08d44b475791b0a5" }
[tool.uv]
extra-index-url = [
"https://gitlab.mpcdf.mpg.de/api/v4/projects/2187/packages/pypi/simple",
]
dev-dependencies = [
"nomad-lab[parsing, infrastructure, dev]>=1.3.4",
"poethepoet>=0.29.0",
]
constraint-dependencies = ["hyperspy>=1.7.6"]
required-version = ">=0.5.14"
prerelease = "allow"
[tool.poe.tasks]
submodule = "git submodule update --init --recursive"
docker = "docker compose up -d"
start = "nomad admin run appworker"
setup = ["gui-env", "gui-setup", "docker", "config"]
lint = ["ruff-lint", "ruff-format"]
[tool.poe.tasks.config]
shell = """
import os;
if not os.path.exists("nomad.yaml"):
with open("nomad.yaml", "w") as f:
f.write("keycloak:\\n realm_name: \\"fairdi_nomad_test\\"\\n")
"""
interpreter = "python"
[tool.poe.tasks.gui-env]
cmd = "python -W ignore -m nomad.cli dev gui-env"
capture_stdout = "packages/nomad-FAIR/gui/.env.development"
[tool.poe.tasks.docs]
cmd = "mkdocs serve"
cwd = "packages/nomad-docs"
[tool.poe.tasks.ruff-lint]
cmd = "ruff check ."
[tool.poe.tasks.ruff-format]
cmd = "ruff format . --check"
[tool.poe.tasks.hub]
cmd = "nomad admin run hub"
cwd = "packages/nomad-FAIR"
[tool.poe.tasks.gui]
cmd = "yarn run"
cwd = "packages/nomad-FAIR/gui"
[tool.poe.tasks.gui-setup]
cmd = "yarn"
cwd = "packages/nomad-FAIR/gui"
[tool.poe.tasks.gen-gui-test-env]
cmd = "python -W ignore -m nomad.cli dev gui-config"
capture_stdout = "packages/nomad-FAIR/gui/tests/env.js"
env = { NOMAD_CONFIG = "packages/nomad-FAIR/gui/tests/nomad.yaml" }
[tool.poe.tasks.gen-nomad-lock]
cmd = "uv pip compile -U --universal -p 3.11 --extra parsing --extra infrastructure --extra dev --annotation-style=line pyproject.toml requirements.txt"
capture_stdout = "packages/nomad-FAIR/requirements-dev.txt"
cwd = "packages/nomad-FAIR"
deps = ["gen-nomad-lock-without-dev"]
[tool.poe.tasks.gen-nomad-lock-without-dev]
cmd = "uv pip compile -U --universal -p 3.11 --extra parsing --extra infrastructure --annotation-style=line pyproject.toml"
cwd = "packages/nomad-FAIR"
capture_stdout = "packages/nomad-FAIR/requirements.txt"