-
Notifications
You must be signed in to change notification settings - Fork 5
/
pixi.toml
87 lines (76 loc) · 2.5 KB
/
pixi.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
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
81
82
83
84
85
86
87
[project]
name = "reproducible-builds-rattler-build"
version = "0.1.0"
description = "Add a short description here"
authors = ["nichmor <[email protected]>"]
channels = ["conda-forge"]
platforms = ["osx-arm64", "linux-64", "osx-64", "win-64"]
[tasks]
# Rewrite the html with the updated data
generate-html = { cmd = "repror generate-html", inputs = [
"src/repror/**",
"repro.local.db",
], outputs = [
"docs.local/index.html",
] }
generate-html-prod = { cmd = "repror generate-html", env = { REPRO_DB_NAME = "repro.db" }, inputs = [
"src/repror/**",
"repro.db",
], outputs = [
"docs.local/index.html",
] }
# Used to generate build matrix for githubgenerate-html = "repror generate-html"
generate-recipes = "repror --no-output generate-recipes"
# Build recipes in the recipes folder
build-recipe = "repror build-recipe"
# Same as above but skip rattler-build setup
build-recipe-skip = "repror --skip-setup-rattler-build build-recipe"
# Build an rebuild a recipe
reproduce = "repror build-recipe --rebuild"
# Check recipe status
check = "repror check"
# Rebuild a single recipe using the python script
rebuild-recipe = "repror rebuild-recipe"
# Same as above but skip rattler-build setup
rebuild-recipe-skip = "repror --skip-setup-rattler-build rebuild-recipe"
# Convert a meta.yaml to a recipe.yaml
convert-recipe = "convert-conda-recipe"
# Run tests
test = "pytest tests"
[feature.html.dependencies]
livereload = ">=2.6.3,<2.7"
[feature.html.tasks]
# Serve html locally
serve-html = { cmd = "livereload -d ./docs.local/", depends-on = "generate-html" }
serve-html-prod = { cmd = "livereload -d ./docs.local/", depends-on = "generate-html-prod" }
[feature.fmt.dependencies]
# Formatting python
ruff = ">=0.4.7,<0.5"
[feature.profile.dependencies]
# Profiling in python
pyinstrument = ">=4.6.2,<4.7"
[feature.fmt.tasks]
# Format recipes using ruff
fmt = "ruff format"
check-fmt = "ruff check --fix"
# Default dependencies
[dependencies]
python = "~=3.12"
rattler-build = "*"
pyyaml = "*"
pytest = "*"
typer = ">=0.12.3,<0.13"
jinja2 = "*"
python-dotenv = "*"
pandas = "*"
sqlmodel = "*"
pydantic = "*"
[pypi-dependencies]
repror = { path = ".", editable = true }
conda-recipe-manager = { git = "https://github.com/conda-incubator/conda-recipe-manager.git" }
pytest-depends = "*"
[environments]
default = { features = [], solve-group = "default" }
fmt = { features = ["fmt"], no-default-feature = true }
profile = { features = ["profile"], solve-group = "default" }
html = { features = ["html"], no-default-feature = true }