forked from Mojo-Numerics-and-Algorithms-group/NuMojo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpixi.toml
More file actions
61 lines (53 loc) · 2.67 KB
/
pixi.toml
File metadata and controls
61 lines (53 loc) · 2.67 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
[project]
channels = [
"conda-forge",
"https://conda.modular.com/max",
"https://repo.prefix.dev/modular-community",
]
platforms = ["osx-arm64", "linux-64"]
name = "NuMojo"
version = "0.7.0"
description = "NuMojo is a library for numerical computing written in Mojo 🔥"
authors = [
"Shivasankar <shivasankar.ka@gmail.com>",
"MadAlex1997 <>",
"Yuhao Zhu (朱宇浩) <dr.yuhao.zhu@outlook.com>",
"mmenendezg <>",
"sandstromviktor <>",
"durnwalder <>",
]
license = "Apache-2.0"
readme = "README.MD"
[tasks]
# compile the package and copy it to the tests folder
package = "pixi run mojo package numojo && cp numojo.mojopkg tests/"
p = "clear && pixi run package"
# format the package
format = "pixi run mojo format ./"
# test whether tests pass on the built package
test = "pixi run package && pixi run mojo test tests -I tests/ && rm tests/numojo.mojopkg"
t = "clear && pixi run test"
# run individual tests to avoid overheat
test_core = "pixi run package && pixi run mojo test tests/core -I tests/ && rm tests/numojo.mojopkg"
test_creation = "pixi run package && pixi run mojo test tests/routines/test_creation.mojo -I tests/ && rm tests/numojo.mojopkg"
test_functional = "pixi run package && pixi run mojo test tests/routines/test_functional.mojo -I tests/ && rm tests/numojo.mojopkg"
test_indexing = "pixi run package && pixi run mojo test tests/routines/test_indexing.mojo -I tests/ && rm tests/numojo.mojopkg"
test_linalg = "pixi run package && pixi run mojo test tests/routines/test_linalg.mojo -I tests/ && rm tests/numojo.mojopkg"
test_manipulation = "pixi run package && pixi run mojo test tests/routines/test_manipulation.mojo -I tests/ && rm tests/numojo.mojopkg"
test_math = "pixi run package && pixi run mojo test tests/routines/test_math.mojo -I tests/ && rm tests/numojo.mojopkg"
test_random = "pixi run package && pixi run mojo test tests/routines/test_random.mojo -I tests/ && rm tests/numojo.mojopkg"
test_statistics = "pixi run package && pixi run mojo test tests/routines/test_statistics.mojo -I tests/ && rm tests/numojo.mojopkg"
test_sorting = "pixi run package && pixi run mojo test tests/routines/test_sorting.mojo -I tests/ && rm tests/numojo.mojopkg"
test_searching = "pixi run package && pixi run mojo test tests/routines/test_searching.mojo -I tests/ && rm tests/numojo.mojopkg"
# run all final checks before a commit
final = "pixi run format && pixi run test"
f = "clear && pixi run final"
# Automatically Generate doc pages
doc_pages = "mojo doc numojo/ -o docs.json"
# run everything and generate docs before release
release = "clear && pixi run final && pixi run doc_pages"
[dependencies]
max = "==25.3"
python = ">=3.11"
numpy = ">=2.0"
scipy = ">=1.14"