-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpixi.toml
More file actions
64 lines (54 loc) · 2.88 KB
/
Copy pathpixi.toml
File metadata and controls
64 lines (54 loc) · 2.88 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
[workspace]
description = "Requests like HTTP client leveraging libcurl under the hood."
authors = ["Mikhail Tavarez <miktavarez@gmail.com>"]
channels = ["conda-forge", "https://conda.modular.com/max"]
platforms = ["osx-arm64", "linux-64", "linux-aarch64"]
license = "MIT"
license-file = "LICENSE"
readme = "README.md"
homepage = "https://github.com/thatstoasty/floki"
repository = "https://github.com/thatstoasty/floki"
preview = ["pixi-build"]
[feature.util.tasks]
# `find -exec ... \;` reports success regardless of what the commands do, which hid
# crashing tests from CI. Run every file, then fail if any of them did.
tests = "sh -c 'status=0; for f in test/test_*.mojo; do echo \"== $f\"; mojo -D ASSERT=all -I . \"$f\" || status=1; done; exit $status'"
examples = "sh -c 'status=0; for f in $(find examples -name \"*.mojo\"); do echo \"== $f\"; mojo -D ASSERT=all -I . \"$f\" || status=1; done; exit $status'"
# Linting and Formatting
lint_docs = "mojo doc --Werror --diagnose-missing-doc-strings -o /dev/null ./floki"
mojo_format = "mojo format floki test examples --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" }]
api_server = "fastapi run utils/test_server.py"
[package]
name = "floki"
version = "0.4.0"
publish = true
[package.build]
backend = { name = "pixi-build-mojo", version = "0.*" }
[dependencies]
mojo = ">=1.0.0,<1.1.0"
emberjson = { git = "https://github.com/bgreni/EmberJson.git", tag = "0.3.4" }
mojo-curl = { git = "https://github.com/thatstoasty/mojo-curl.git", tag = "v0.4.4" }
curl_wrapper = { git = "https://github.com/thatstoasty/mojo-curl.git", subdirectory = "shim", tag = "v0.4.4" }
mojo_datetime = { git = "https://github.com/martinvuyk/mojo-datetime.git", rev = "1.0.0" }
[package.build-dependencies]
mojo-compiler = ">=1.0.0,<1.1.0"
emberjson = { git = "https://github.com/bgreni/EmberJson.git", tag = "0.3.4" }
mojo-curl = { git = "https://github.com/thatstoasty/mojo-curl.git", tag = "v0.4.4" }
curl_wrapper = { git = "https://github.com/thatstoasty/mojo-curl.git", subdirectory = "shim", tag = "v0.4.4" }
mojo_datetime = { git = "https://github.com/martinvuyk/mojo-datetime.git", rev = "1.0.0" }
[package.host-dependencies]
mojo-compiler = ">=1.0.0,<1.1.0"
[package.run-dependencies]
mojo-compiler = ">=1.0.0,<1.1.0"
emberjson = { git = "https://github.com/bgreni/EmberJson.git", tag = "0.3.4" }
mojo-curl = { git = "https://github.com/thatstoasty/mojo-curl.git", tag = "v0.4.4" }
curl_wrapper = { git = "https://github.com/thatstoasty/mojo-curl.git", subdirectory = "shim", tag = "v0.4.4" }
mojo_datetime = { git = "https://github.com/martinvuyk/mojo-datetime.git", rev = "1.0.0" }
[feature.util.dependencies]
isort = ">=8.0.1,<9"
fastapi = ">=0.138.1,<0.139"
[environments]
default = { solve-group = "default" }
util = { features = ["util"], solve-group = "default" }