78 lines
1.3 KiB
TOML
78 lines
1.3 KiB
TOML
[project]
|
|
name = "agebd-master"
|
|
version = "0.1.0"
|
|
description = "AGEBD-MASTER Service"
|
|
requires-python = "==3.10.*"
|
|
dependencies = [
|
|
"agebd", # TODO: package in gitea?
|
|
"pyepics>=3.5.8",
|
|
"pyyaml>=6.0.3",
|
|
]
|
|
|
|
[dependency-groups]
|
|
dev = [
|
|
"pytest>=8.4.2",
|
|
"ruff>=0.15.20",
|
|
]
|
|
|
|
[tool.uv.sources]
|
|
# Path is relative to where agebd package is deployed on hla
|
|
# machines (see CI/CD in .gitea/workflows)
|
|
agebd = { path = "../../../../packages/agebd", editable = true }
|
|
|
|
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[tool.uv]
|
|
package = true
|
|
|
|
[tool.pytest.ini_options]
|
|
pythonpath = ["src"]
|
|
env = [
|
|
"AGEBD_ENV=local",
|
|
]
|
|
|
|
[tool.ruff]
|
|
include = [
|
|
"src/**/*.py",
|
|
"tests/**/*.py",
|
|
]
|
|
line-length = 100
|
|
|
|
[tool.ruff.lint]
|
|
# use isort to sort imports
|
|
extend-select = ["I"]
|
|
|
|
[tool.ruff.lint.isort]
|
|
known-first-party = ["agebd"]
|
|
|
|
### PIXI ###
|
|
|
|
[tool.pixi.workspace]
|
|
name = "agebd-master"
|
|
channels = ["conda-forge"]
|
|
platforms = ["linux-64"]
|
|
version = "0.1.0"
|
|
|
|
[tool.pixi.tasks]
|
|
|
|
[tool.pixi.dependencies]
|
|
python = "3.10.*"
|
|
pyepics = ">=3.5.10,<4"
|
|
pyyaml = ">=6.0.3,<7"
|
|
|
|
[tool.pixi.pypi-dependencies]
|
|
agebd-master = { path = ".", editable = true }
|
|
|
|
[tool.pixi.feature.dev.dependencies]
|
|
ruff = "*"
|
|
pytest = ">=9.1.1,<10"
|
|
|
|
[tool.pixi.feature.dev.tasks]
|
|
test = "pytest"
|
|
format = "ruff format"
|
|
|
|
[tool.pixi.environments]
|
|
dev = ["dev"]
|