-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
mojoproject.toml
25 lines (23 loc) · 1.18 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
[project]
authors = ["Brian Grenier <[email protected]>"]
channels = ["conda-forge", "https://conda.modular.com/max-nightly/"]
description = "A json library for Mojo"
name = "EmberJson"
platforms = ["osx-arm64", "linux-aarch64", "linux-64"]
version = "0.1.0"
license = "MIT"
license-file = "LICENSE"
homepage = "https://github.com/bgreni/EmberJson"
repository = "https://github.com/bgreni/EmberJson"
[tasks]
build = { cmd = "magic run template && rattler-build build --recipe recipes -c https://conda.modular.com/max-nightly -c conda-forge --skip-existing=all", env = {MODULAR_MOJO_IMPORT_PATH = "$CONDA_PREFIX/lib/mojo"} }
template = { cmd = "magic run python3 scripts/templater.py" }
format = { cmd = "magic run mojo format -l 120 emberjson" }
test = { cmd = "magic run clean ; magic run mojo test" }
bench = { cmd = "magic run mojo build bench.mojo && ./bench && rm bench" }
clean = { cmd = "rm -r output &> /dev/null" }
update_and_build = { cmd = "magic update && magic run test && magic run build" }
publish = { cmd = "./scripts/publish.sh", env = { PREFIX_API_KEY = "$PREFIX_API_KEY" }}
precommit = { cmd = "magic run format && magic run test" }
[dependencies]
max = ">=25.1.0.dev2024122105, <=26"