This repository was archived by the owner on May 12, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy pathpixi.toml
More file actions
80 lines (65 loc) · 2.61 KB
/
pixi.toml
File metadata and controls
80 lines (65 loc) · 2.61 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
[workspace]
authors = ["saviorand"]
channels = ["conda-forge", "https://repo.prefix.dev/mojo-community", "https://conda.modular.com/max", "https://repo.prefix.dev/modular-community"]
description = "Simple and fast HTTP framework for Mojo!"
platforms = ["osx-arm64", "linux-64", "linux-aarch64"]
license = "MIT"
license-file = "LICENSE"
readme = "README.md"
homepage = "https://github.com/Lightbug-HQ/lightbug_http"
repository = "https://github.com/Lightbug-HQ/lightbug_http"
preview = ["pixi-build"]
[feature.unit-tests.tasks]
test = { cmd = "bash scripts/mojo_tests.sh tests/lightbug_http" }
[feature.integration-tests.tasks]
integration_tests_py = { cmd = "bash scripts/integration_test.sh" }
integration_tests_external = { cmd = "bash scripts/mojo_tests.sh tests/integration" }
[feature.bench.tasks]
bench = { cmd = "mojo -I . benchmark/bench.mojo" }
bench_server = { cmd = "bash scripts/bench_server.sh" }
[feature.util.tasks]
# Linting and Formatting
lint_docs = "mojo doc --Werror --diagnose-missing-doc-strings -o /dev/null ./lightbug_http"
mojo_format = "mojo format lightbug_http --line-length 120"
sort_imports = "isort **/*.mojo -m 3 --line-length 120 --lines-after-imports 2 --trailing-comma"
format = [{ task = "mojo_format" }, { task = "sort_imports" }]
build = { cmd = "pixi build -o ." }
publish = { cmd = "find . -name 'lightbug_http-*.conda' | xargs pixi upload prefix --channel mojo-community" }
build_and_publish = [{ task = "build" }, { task = "publish" }]
[package]
name = "lightbug_http"
version = "0.26.2.0"
[package.build]
backend = { name = "pixi-build-mojo", version = "*" }
[dependencies]
mojo = ">=0.26.2.0,<0.26.3.0"
small_time = ">=26.2.0,<26.3"
emberjson = ">=0.3.1,<0.4"
[package.host-dependencies]
mojo-compiler = ">=0.26.2.0,<0.26.3.0"
small_time = ">=26.2.0,<26.3"
emberjson = ">=0.3.1,<0.4"
[package.build-dependencies]
mojo-compiler = ">=0.26.2.0,<0.26.3.0"
small_time = ">=26.2.0,<26.3"
emberjson = ">=0.3.1,<0.4"
[package.run-dependencies]
mojo-compiler = ">=0.26.2.0,<0.26.3.0"
small_time = ">=26.2.0,<26.3"
emberjson = ">=0.3.1,<0.4"
[feature.util.dependencies]
isort = ">=7.0.0,<8"
[feature.integration-tests.dependencies]
requests = ">=2.32.5,<3"
fastapi = ">=0.127.0,<0.128"
python = ">=3.10"
poetry = ">=1.8.0,<2"
[feature.integration-tests.pypi-dependencies]
httpx = ">=0.24.0"
abnf = ">=2.0.0"
[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" }
util = { features = ["util"], solve-group = "default" }