Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 27 additions & 27 deletions pixi.toml
Original file line number Diff line number Diff line change
@@ -1,58 +1,58 @@
[project]
authors = [
"Shivasankar <[email protected]>",
"MadAlex1997 <>",
"Yuhao Zhu (朱宇浩) <[email protected]>",
"mmenendezg <>",
"sandstromviktor <>",
"durnwalder <>",
]
channels = [
"conda-forge",
"https://conda.modular.com/max",
"https://repo.prefix.dev/modular-community",
"conda-forge",
"https://conda.modular.com/max",
"https://repo.prefix.dev/modular-community",
]
platforms = ["osx-arm64", "linux-64"]
preview = ["pixi-build"]
name = "NuMojo"
version = "0.7.0"
description = "NuMojo is a library for numerical computing written in Mojo 🔥"
authors = [
"Shivasankar <[email protected]>",
"MadAlex1997 <>",
"Yuhao Zhu (朱宇浩) <[email protected]>",
"mmenendezg <>",
"sandstromviktor <>",
"durnwalder <>",
]
license = "Apache-2.0"
name = "NuMojo"
platforms = ["osx-arm64", "linux-64"]
preview = ["pixi-build"]
readme = "README.MD"
version = "0.7.0"

[package]
name = "numojo"
version = "0.7.0"

[package.build]
backend = {name = "pixi-build-mojo", version = "0.*", channels = [
"https://prefix.dev/pixi-build-backends",
"https://prefix.dev/conda-forge",
"https://prefix.dev/pixi-build-backends",
"https://prefix.dev/conda-forge",
]}

[package.build.config.pkg]
name = "numojo"

[package.host-dependencies]
modular = ">=25.6.0,<26"
mojo = ">=25.6.0,<26"

[package.build-dependencies]
modular = ">=25.6.0,<26"
mojo = ">=25.6.0,<26"

[package.run-dependencies]
modular = ">=25.6.0,<26"
mojo = ">=25.6.0,<26"

[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"
package = "pixi run mojo package numojo && cp numojo.mojopkg tests/"

# 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"
test = "pixi run package && pixi run mojo test tests -I tests/ && rm tests/numojo.mojopkg"

# run individual tests to avoid overheat
test_core = "pixi run package && pixi run mojo test tests/core -I tests/ && rm tests/numojo.mojopkg"
Expand All @@ -63,13 +63,13 @@ test_linalg = "pixi run package && pixi run mojo test tests/routines/test_linalg
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"
test_sorting = "pixi run package && pixi run mojo test tests/routines/test_sorting.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"

# run all final checks before a commit
final = "pixi run format && pixi run test"
f = "clear && pixi run final"
final = "pixi run format && pixi run test"

# Automatically Generate doc pages
doc_pages = "mojo doc numojo/ -o docs.json"
Expand All @@ -78,7 +78,7 @@ doc_pages = "mojo doc numojo/ -o docs.json"
release = "clear && pixi run final && pixi run doc_pages"

[dependencies]
python = ">=3.13.5,<3.14"
mojo = ">=0.25.6,<0.26"
numpy = ">=2.3.2,<3"
python = ">=3.13.5,<3.14"
scipy = ">=1.16.0,<2"
modular = ">=25.6.0,<26"