-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathpixi.toml
More file actions
91 lines (76 loc) · 2.74 KB
/
Copy pathpixi.toml
File metadata and controls
91 lines (76 loc) · 2.74 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
85
86
87
88
89
90
91
[workspace]
authors = [
"Shivasankar <shivasankar.ka@gmail.com>",
"MadAlex1997 <>",
"Yuhao Zhu (朱宇浩) <dr.yuhao.zhu@outlook.com>",
"mmenendezg <>",
"sandstromviktor <>",
"durnwalder <>",
"sauterp <>",
]
channels = [
"https://conda.modular.com/max",
"conda-forge",
"https://conda.modular.com/max-nightly/",
"https://repo.prefix.dev/modular-community",
]
description = "NuMojo is a library for numerical computing written in Mojo 🔥"
license = "Apache-2.0"
name = "NuMojo"
platforms = ["osx-arm64", "linux-64"]
preview = ["pixi-build"]
readme = "README.MD"
version = "0.10.0"
[package]
name = "numojo"
version = "0.10.0"
[package.build]
backend = {name = "pixi-build-mojo", version = "0.*", channels = [
"https://prefix.dev/pixi-build-backends",
"https://prefix.dev/conda-forge",
]}
[package.build.config.pkg]
name = "numojo"
[package.host-dependencies]
mojo = "==1.0.0"
max-core = "==26.5.0"
[package.build-dependencies]
mojo = "==1.0.0"
max-core = "==26.5.0"
[package.run-dependencies]
mojo = "==1.0.0"
max-core = "==26.5.0"
[tasks]
# compile the package and copy it to the tests folder
p = "clear && pixi run package"
package = "pixi run mojo precompile numojo -o numojo.mojoc && cp numojo.mojoc tests/ "
# format the package
format = "pixi run mojo format ./numojo/ && pixi run mojo format ./tests/ && pixi run mojo format ./examples/"
# to run individual test files
run-test = {cmd = "pixi run mojo run -I tests/ $TEST_FILE", env = {TEST_FILE = ""}}
# Test by category (using shell scripts that auto-discover test files)
test = "pixi run package && bash tests/test_core.sh && bash tests/test_routines.sh"
test_accelerator = "pixi run package && bash tests/test_accelerator.sh"
test_all = """pixi run package && bash tests/test_core.sh && bash tests/test_routines.sh \
&& bash tests/test_accelerator.sh"""
test_core = "pixi run package && bash tests/test_core.sh"
test_routines = "pixi run package && bash tests/test_routines.sh"
# check docstrings/headers/imports/error-handling.
# (reporting only, never rewrites files; see scripts/check_mojo_standards.py)
check_standards = "python3 scripts/check_mojo_standards.py numojo"
# group and sort imports under their Stdlib/External/NuMojo separators.
# (rewrites files; add --diff or --check for a dry run)
organize_imports = "python3 scripts/organize_mojo_imports.py numojo"
# run all final checks before a commit
f = "clear && pixi run final"
final = "pixi run format && pixi run test"
# 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]
mojo = ">=1.0.0, <1.1.0"
max-core = ">=26.5.0,<27"
numpy = ">=2.4.2,<3"
python = ">=3.13,<3.14"
scipy = ">=1.17.0,<2"