-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathmojoproject.toml
56 lines (48 loc) · 2.2 KB
/
mojoproject.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
[project]
name = "NuMojo"
version = "0.6"
description = "NuMojo is a library for numerical computing written in Mojo 🔥"
authors = [
"Shivasankar <[email protected]>",
"MadAlex1997 <>",
"Yuhao Zhu (朱宇浩) <[email protected]>",
"mmenendezg <>",
"sandstromviktor <>",
"durnwalder <>"
]
channels = ["https://conda.modular.com/max", "https://repo.prefix.dev/modular-community", "conda-forge"]
platforms = ["osx-arm64", "linux-64"]
license = "Apache-2.0"
readme = "README.MD"
[tasks]
# compile the package
package = "magic run mojo package numojo"
p = "clear && magic run package"
# format the package
format = "magic run mojo format ./ && magic run mojo format docs/readthedocs/docs.py"
# test whether tests pass and the package can be built
test = "magic run mojo test tests -I ./ -I ./tests/ && magic run package"
t = "clear && magic run test"
# run individual tests to avoid overheat
test_core = "magic run mojo test tests/core -I ./ -I ./tests/"
test_creation = "magic run mojo test tests/routines/test_creation.mojo -I ./ -I ./tests/"
test_functional = "magic run mojo test tests/routines/test_functional.mojo -I ./ -I ./tests/"
test_indexing = "magic run mojo test tests/routines/test_indexing.mojo -I ./ -I ./tests/"
test_linalg = "magic run mojo test tests/routines/test_linalg.mojo -I ./ -I ./tests/"
test_manipulation = "magic run mojo test tests/routines/test_manipulation.mojo -I ./ -I ./tests/"
test_math = "magic run mojo test tests/routines/test_math.mojo -I ./ -I ./tests/"
test_random = "magic run mojo test tests/routines/test_random.mojo -I ./ -I ./tests/"
test_statistics = "magic run mojo test tests/routines/test_statistics.mojo -I ./ -I ./tests/"
test_sorting = "magic run mojo test tests/routines/test_sorting.mojo -I ./ -I ./tests/"
# run all final checks before a commit
final = "magic run test && magic run format && magic run package"
f = "clear && magic run test && magic run format && magic run package"
# Automatically Generate doc pages
doc_pages = "mojo doc numojo/ -o docs.json"
# run everything and generate docs before release
release = "clear && magic run final && magic run doc_pages"
[dependencies]
max = "=25.1"
python = ">=3.11"
numpy = ">=1.19"
scipy = ">=1.14"