Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
121 lines (97 loc) · 2.55 KB
/
Copy pathpyproject.toml
File metadata and controls
121 lines (97 loc) · 2.55 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
112
113
114
115
116
117
118
119
120
121
[project]
name = "live_data_server"
description = "Data server for data plots"
dynamic = ["version"]
requires-python = ">=3.6"
dependencies = [
# list all runtime dependencies here
]
license = { text = "BSD-3" }
[project.urls]
homepage = "https://livedata-ornl.readthedocs.io" # if no homepage, use repo url
[build-system]
requires = ["hatchling", "versioningit"]
build-backend = "hatchling.build"
[tool.hatch.version]
source = "versioningit"
[tool.hatch.build.targets.wheel]
packages = ["src/live_data_server"]
[tool.black]
line-length = 119
[tool.versioningit.vcs]
method = "git"
default-tag = "0.0.1"
[tool.versioningit.next-version]
method = "minor"
[tool.versioningit.format]
distance = "{next_version}.dev{distance}"
dirty = "{version}+d{build_date:%Y%m%d}"
distance-dirty = "{next_version}.dev{distance}+d{build_date:%Y%m%d%H%M}"
[tool.versioningit.write]
file = "src/live_data_server/live_data_server/_version.py"
[tool.setuptools.packages.find]
where = ["src"]
exclude = ["tests*", "scripts*", "docs*"]
[tool.pytest.ini_options]
pythonpath = [".", "src", "scripts"]
testpaths = ["tests"]
python_files = ["test*.py"]
[tool.ruff]
line-length = 120
lint.select = [
"A",
"ARG",
"ASYNC",
"BLE",
"C90",
"E",
"F",
"I",
"N",
"UP032",
"W",
]
[tool.pixi.workspace]
platforms = ["linux-64"]
channels = [
"conda-forge",
"https://prefix.dev/pixi-build-backends",
]
# Required until the build feature becomes stable
preview = ["pixi-build"]
[tool.pixi.dependencies]
python = ">=3.6"
django = "=4.2"
django-cors-headers = "=4.4"
psycopg = "=3.2"
coverage = ">=7"
[tool.pixi.tasks]
test = "python -m pytest tests"
[tool.pixi.tasks.docker-up]
description = "Copy the local compose file into place and start the containers, waiting until they are healthy"
cmd = "cp ./deploy/docker-compose.envlocal.yml docker-compose.yml && docker compose up --build --detach --wait --wait-timeout 300"
[tool.pixi.tasks.docker-down]
description = "Stop and remove the containers"
cmd = "docker compose down"
[tool.pixi.environments]
default = { features = [
"dev",
"docs",
"test",
], solve-group = "default" }
docs = { features = ["docs"]}
deploy = { features = ["deploy"]}
[tool.pixi.feature.dev.dependencies]
pre-commit = ">=4.2.0"
versioningit = ">=3.2.0"
ruff = "*"
[tool.pixi.feature.test.dependencies]
pytest = ">=8.4.1"
[tool.pixi.feature.docs.dependencies]
sphinx = ">=8"
sphinx_rtd_theme = ">=3.0.1"
[tool.pixi.feature.docs.pypi-dependencies]
live_data_server = { path = ".", editable = true }
[tool.pixi.feature.deploy.dependencies]
gunicorn = ">=23"
postgresql = "=16"