-
Notifications
You must be signed in to change notification settings - Fork 6
/
pixi.toml
91 lines (77 loc) · 2.34 KB
/
pixi.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
[project]
name = "pixi-build"
version = "0.1.0"
description = "Binary for building pixi projects into packages"
authors = ["Tim de Jager <[email protected]>"]
channels = ["conda-forge"]
platforms = ["osx-arm64", "win-64", "linux-64", "osx-64"]
[tasks]
run-release = { cmd = "cargo run --release", inputs = [
"crates/**",
"Cargo.toml",
"Cargo.lock",
], outputs = [
"target/debug/**",
] }
build = { cmd = "cargo build", inputs = [
"crates/**",
"Cargo.toml",
"Cargo.lock",
], outputs = [
"target/debug/**",
] }
build-release = { cmd = "cargo build --release", inputs = [
"crates/**",
"Cargo.toml",
"Cargo.lock",
], outputs = [
"target/release/**",
] }
run = { cmd = "cargo run", inputs = [
"crates/**",
"Cargo.toml",
"Cargo.lock",
], outputs = [
"target/debug/**",
] }
install-pixi-build-python = { cmd = "cargo install --path crates/pixi-build --bin pixi-build-python --locked" }
install-pixi-build-cmake = { cmd = "cargo install --path crates/pixi-build --bin pixi-build-cmake --locked" }
install-pixi-backends = { depends-on = [
"install-pixi-build-python",
"install-pixi-build-cmake",
] }
[dependencies]
rust = "~=1.80.1"
python = ">=3.12.4,<4"
[feature.test.dependencies]
pytest = ">=8.3.2,<9"
[feature.test.tasks]
integration-test = { cmd = "pytest tests", depends-on = "build" }
[feature.schema.dependencies]
pydantic = ">=2.8.2,<3"
ruff = ">=0.5.7,<0.6"
[feature.build-self.dependencies]
rattler-build = ">=0.30.0,<1"
[feature.schema.tasks]
generate-schema = "python schema/model.py > schema/schema.json"
fmt-schema = "ruff format schema"
lint-schema = "ruff check schema --fix"
[feature.lint.dependencies]
actionlint = ">=1.7.4,<2"
pre-commit = ">=3.7.1,<4"
pre-commit-hooks = ">=4.6.0,<5"
shellcheck = ">=0.10.0,<0.11"
taplo = ">=0.9.1,<0.10"
typos = ">=1.23.1,<2"
[feature.lint.tasks]
actionlint = { cmd = "actionlint", env = { SHELLCHECK_OPTS = "-e SC2086" } }
lint = "pre-commit run --all-files --hook-stage=manual"
pre-commit-install = "pre-commit install"
pre-commit-run = "pre-commit run --all-files"
toml-format = { cmd = "taplo fmt", env = { RUST_LOG = "warn" } }
toml-lint = "taplo lint --verbose **/pixi.toml"
[environments]
test = ["test"]
schema = { no-default-feature = true, features = ["schema"] }
lint = { features = ["lint"], no-default-feature = true }
build-self = { no-default-feature = true, features = ["build-self"] }