-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
84 lines (70 loc) · 2.1 KB
/
pyproject.toml
File metadata and controls
84 lines (70 loc) · 2.1 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
[project]
name = "py-cluster-api"
version = "0.5.0"
description = "Generic Python library for running jobs on HPC clusters"
readme = "README.md"
license = { file = "LICENSE" }
authors = [
{ name = "Konrad Rokicki", email = "rokicki@janelia.hhmi.org" }
]
classifiers = [
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Intended Audience :: Science/Research",
"Topic :: Software Development :: Libraries :: Python Modules",
]
requires-python = ">=3.10"
dependencies = ["pyyaml"]
[project.optional-dependencies]
test = [
"pytest",
"pytest-asyncio",
"pytest-cov",
]
release = [
"build",
"twine",
]
[project.urls]
Homepage = "https://github.com/JaneliaSciComp/py-cluster-api"
Repository = "https://github.com/JaneliaSciComp/py-cluster-api"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["cluster_api"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
markers = ["integration: tests that submit real jobs to the cluster (deselected by default)"]
addopts = "-m 'not integration'"
[tool.pixi.workspace]
channels = ["conda-forge"]
platforms = ["linux-64"]
[tool.pixi.dependencies]
python = ">=3.10"
[tool.pixi.pypi-dependencies]
py-cluster-api = { path = ".", editable = true }
[tool.pixi.tasks]
test = "pytest tests/"
test-v = "pytest tests/ -v"
test-cov = "pytest tests/ --cov=cluster_api --cov-report=term-missing"
lint = "ruff check cluster_api/ tests/"
fmt = "ruff format cluster_api/ tests/"
check = { depends-on = ["lint", "test"] }
test-integration = "pytest tests/ -m integration -v -s"
[tool.pixi.feature.test.dependencies]
pytest = "*"
pytest-asyncio = "*"
pytest-cov = "*"
[tool.pixi.feature.dev.dependencies]
ruff = "*"
[tool.pixi.feature.release.dependencies]
python-build = "*"
twine = "*"
[tool.pixi.feature.release.tasks]
pypi-build = "python -m build"
pypi-upload = "twine upload dist/*"
[tool.pixi.environments]
default = { features = ["test", "dev"], solve-group = "default" }
release = { features = ["release"], solve-group = "default" }