-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy pathmojoproject.toml
38 lines (31 loc) · 1.49 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
[project]
authors = ["saviorand"]
channels = ["conda-forge", "https://conda.modular.com/max", "https://repo.prefix.dev/mojo-community"]
description = "Simple and fast HTTP framework for Mojo!"
name = "lightbug_http"
platforms = ["osx-arm64", "linux-64"]
version = "0.1.13"
[tasks]
build = { cmd = "rattler-build build --recipe recipes -c https://conda.modular.com/max -c conda-forge --skip-existing=all", env = {MODULAR_MOJO_IMPORT_PATH = "$CONDA_PREFIX/lib/mojo"} }
publish = { cmd = "bash scripts/publish.sh", env = { PREFIX_API_KEY = "$PREFIX_API_KEY" } }
format = { cmd = "magic run mojo format -l 120 lightbug_http" }
[feature.unit-tests.tasks]
test = { cmd = "magic run mojo test -I . tests/lightbug_http" }
[feature.integration-tests.tasks]
integration_tests_py = { cmd = "bash scripts/integration_test.sh" }
integration_tests_external = { cmd = "magic run mojo test -I . tests/integration" }
integration_tests_udp = { cmd = "bash scripts/udp_test.sh" }
[feature.bench.tasks]
bench = { cmd = "magic run mojo -I . benchmark/bench.mojo" }
bench_server = { cmd = "bash scripts/bench_server.sh" }
[dependencies]
max = ">=25.1.0,<26"
small_time = "==0.1.8"
[feature.integration-tests.dependencies]
requests = ">=2.32.3,<3"
fastapi = ">=0.115.8,<0.116"
[environments]
default = { solve-group = "default" }
unit-tests = { features = ["unit-tests"], solve-group = "default" }
integration-tests = { features = ["integration-tests"], solve-group = "default" }
bench = { features = ["bench"], solve-group = "default" }