-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathpixi.toml
More file actions
89 lines (77 loc) · 3.01 KB
/
pixi.toml
File metadata and controls
89 lines (77 loc) · 3.01 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
81
82
83
84
85
86
87
88
89
[workspace]
name = "vl-convert"
# This version is not used for publishing packages and doesn't need to be kept in sync
version = "0.0.1"
description = "Dependency free static image export for Vega and Vega-Lite"
authors = ["Jon Mease <jonmmease@gmail.com>"]
channels = ["conda-forge"]
platforms = ["osx-arm64", "osx-64", "win-64", "linux-64"]
[system-requirements]
macos = "12.0"
[tasks]
dev-py = "maturin develop -m vl-convert-python/Cargo.toml -E test"
test-py = { cmd = ["pytest", "vl-convert-python/tests"]}
test-cli = "cargo test -p vl-convert"
test-rs = "cargo test -p vl-convert-rs -- --test-threads=1"
test-html = { cmd = ["pytest", "vl-convert-python/tests/test_html_rendering.py", "-v"] }
test-html-update = { cmd = ["pytest", "vl-convert-python/tests/test_html_rendering.py", "-v", "--update-baselines"] }
install-browsers = "playwright install chromium"
fmt-py = "ruff format vl-convert-python"
build-node-canvas = { cmd = "cd vl-convert-canvas2d/tests/node_baseline && PKG_CONFIG_PATH=$CONDA_PREFIX/lib/pkgconfig npm install" }
fmt-py-check = "ruff format vl-convert-python --check"
fmt-rs = "cargo fmt --all"
fmt-rs-check = "cargo fmt --all -- --check"
check-rs = "cargo check --tests"
clippy = "cargo clippy"
build-rs = "cargo build -p vl-convert-rs"
build-cli = "cargo build -p vl-convert"
build-py = "maturin build -m vl-convert-python/Cargo.toml --sdist --release"
vendor = "cargo run -p vl-convert-vendor"
bundle-licenses = """
cargo install --locked cargo-bundle-licenses &&
cargo bundle-licenses --format yaml --output thirdparty_rust.yaml &&
cp thirdparty_*.* vl-convert-python/ &&
cp thirdparty_*.* vl-convert-rs/ &&
cp thirdparty_*.* vl-convert/
"""
[pypi-dependencies]
playwright = ">=1.40"
# Development Dependencies
[dependencies]
python = "3.11.*"
maturin = "1.8.*"
rust = "1.91.*"
protobuf = ">=4.25.3,<5"
ruff = ">=0.8,<1"
pip = ">=24.2,<25"
deno = ">=2.3,<3" # For vendoring JavaScript dependencies
# macOS 15.4 tightened the dynamic-loader rules and now rejects binaries
# with duplicate LC_RPATH entries. Older conda-forge builds of OpenBLAS /
# libgfortran trigger this, which breaks NumPy & SciPy imports on Apple Silicon
# (see prefix-dev/pixi#3479, conda-forge/libgfortran-feedstock#69,
# conda-forge/openblas-feedstock#196). Pinning libgfortran5 to ≥ 14 pulls in
# the rebuilt runtime that removes the duplicate RPATH and fixes the error.
libgfortran5 = ">=14.0.0"
# Dependencies not required for development or testing,
# but useful when trying out vl-convert-python by hand
altair = ">=5.3.0,<5.4"
vega_datasets = ">=0.9.0,<0.10"
altair_tiles = ">=0.3.0,<0.4"
geopandas = ">=0.14.3,<0.15"
jupyterlab = ">=4.0.11,<4.1"
libffi = ">=3.4.6,<4"
nodejs = ">=20,<21"
[target.osx-arm64.dependencies]
# These dependencies are for building node-canvas from source on Apple Silicon
pkg-config = ">=0.29,<1"
cairo = ">=1.16,<2"
pango = ">=1.50,<2"
libpng = ">=1.6,<2"
libjpeg-turbo = ">=3,<4"
giflib = ">=5.2,<6"
libglib = ">=2.76,<3"
glib = ">=2.76,<3"
expat = ">=2.5,<3"
fontconfig = ">=2.14,<3"
freetype = ">=2.12,<3"
pixman = ">=0.42,<1"