forked from sbhattlab/phylo2vec
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpixi.toml
115 lines (91 loc) · 2.81 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
[project]
name = "phylo2vec"
version = "0.1.0"
description = "Phylo2Vec"
authors = ["Don Setiawan"]
channels = ["conda-forge"]
platforms = ["linux-64", "osx-64", "osx-arm64"]
[tasks]
# We can build a project using cargo build
build = "cargo build"
# We can build and run a project in one step using cargo run
start = "cargo run"
test = "cargo test"
clean = "cargo clean"
fmt = "cargo fmt"
lint = { cmd = "cargo clippy", depends-on = ["fmt"] }
# We can build a project without producing a binary to check for errors using cargo check
check = "cargo check"
# Create an executable in target/release instead of target/debug,
# it will compile with optimizations
# This is why there are two different profiles: one for development,
# when you want to rebuild quickly and often,
# and another for building the final program
# and will run as fast as possible.
# **If you’re benchmarking your code’s running time, be sure to run this build**
build-release = "cargo build --release"
start-release = "cargo run --release"
open-doc = "cargo doc --open"
benchmark = "cargo bench"
# ======= CI Environments ==========
[environments]
py310 = ["python", "py310"]
py311 = ["python", "py311"]
py312 = ["python", "py312"]
# ======= py-phylo2vec ==========
# Default Python Phylo2vec environment
[environments.py-phylo2vec]
features = ["pydocs", "pydev", "python", "py310"]
solve-group = "default"
# ======= r-phylo2vec ==========
# Default R Phylo2vec environment
[environments.r-phylo2vec]
features = ["r"]
solve-group = "default"
# ====== Default Dependencies ======
[dependencies]
rust = ">=1.81.0,<2"
openssl = ">=3.3.1,<3.4"
pkg-config = ">=0.29.2,<0.30"
compilers = ">=1.7.0,<1.8"
clang = ">=16.0.6,<17"
rust-src = ">=1.81.0,<2"
pre-commit = ">=4.0.1,<5"
[target.linux-64.dependencies]
gcc = "*"
[target.osx-64.dependencies]
clang = "*"
[target.osx-arm64.dependencies]
clang = "*"
# ======= py-phylo2vec ==========
[feature.py310.dependencies]
python = "3.10.*"
[feature.py311.dependencies]
python = "3.11.*"
[feature.py312.dependencies]
python = "3.12.*"
[feature.pydev.dependencies]
pixi-kernel = ">=0.4.0,<0.5"
jupyterlab = ">=4.1,<4.2"
[feature.pydocs.dependencies]
jupyter-book = ">=0.11.0"
[feature.pydocs.tasks.build-docs]
cmd = "jupyter-book build docs"
depends-on = ["install-python"]
[feature.python.dependencies]
pip = ">=24.2,<25"
maturin = ">=1.7.4,<2"
pytest = ">=8.3.4,<9"
[feature.python.tasks.install-python]
cmd = "maturin develop --release --manifest-path ./py-phylo2vec/Cargo.toml"
[feature.python.tasks.test]
cmd = "pytest -vvv ./py-phylo2vec/tests"
depends-on = ["install-python"]
# ======== r-phylo2vec ===========
[feature.r.dependencies]
r = "4.*"
r-devtools = ">=2.4.5,<3"
[feature.r.tasks.install-r]
cmd = "Rscript ./r-phylo2vec/scripts/install-package.R"
[feature.r.tasks.test]
cmd = "Rscript ./r-phylo2vec/scripts/run-tests.R"