-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathpixi.toml
More file actions
120 lines (98 loc) · 3.48 KB
/
pixi.toml
File metadata and controls
120 lines (98 loc) · 3.48 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
[project]
name = "panel-graphic-walker"
channels = ["pyviz/label/dev", "conda-forge"]
platforms = ["osx-arm64", "osx-64", "linux-64", "win-64"]
[tasks]
install = "pip install --no-build-isolation --no-deps --disable-pip-version-check -e ."
serve = { cmd = "panel serve examples/*/*.py --port 0 --show", depends-on = ["install"] }
serve-dev = { cmd = "panel serve examples/*/*.py --dev --port 0 --show", env = { PYTHONPATH = "./src:$PYTHONPATH" } }
[dependencies]
python = ">=3.10"
panel = ">=1.6.1"
packaging = "*"
narwhals = "*"
watchfiles = "*"
aiohttp = "*"
dask = "*"
duckdb = "*"
ibis-framework = "*"
fastparquet = "*"
polars = "*"
pygwalker = "*"
[pypi-dependencies]
gw-dsl-parser = "*"
[host-dependencies]
pip = "*"
setuptools = ">=61"
setuptools-scm = "*"
hatchling = "*"
hatch-vcs = "*"
nodejs = ">=18"
esbuild = "*"
[environments]
test-310 = ["py310", "test", "test-unit-task"]
test-311 = ["py311", "test", "test-unit-task"]
test-312 = ["py312", "test", "test-unit-task"]
test-ui = ["py312", "test", "test-ui"]
test-compiled = ["py312", "compile", "test", "test-unit-task"]
build = ["py312", "build", "compile"]
compile = ["py312", "compile", "compile-task"]
lint = { features = ["lint"], no-default-feature = true }
[feature.py310.dependencies]
python = "3.10.*"
[feature.py311.dependencies]
python = "3.11.*"
[feature.py312.dependencies]
python = "3.12.*"
# =============================================
# ================== TEST =====================
# =============================================
[feature.test.dependencies]
pytest = ">=6"
pytest-asyncio = "*"
pytest-cov = "*"
pytest-rerunfailures = "*"
pytest-xdist = "*"
mypy = "*"
[feature.test-unit-task.tasks]
_install = "pip install --no-build-isolation --no-deps --disable-pip-version-check -e ."
test = { cmd = "pytest", depends-on = ["_install"] }
test-coverage = { cmd = "pytest --cov=panel_gwalker --cov-report=xml --cov-report=term-missing", depends-on = ["_install"] }
[feature.test-ui]
channels = ["microsoft"]
[feature.test-ui.dependencies]
playwright = { version = "*", channel = "microsoft" }
pytest-playwright = { version = "*", channel = "microsoft" }
[feature.test-ui.tasks]
_install = "pip install --no-build-isolation --no-deps --disable-pip-version-check -e ."
_install-ui = 'playwright install chromium'
[feature.test-ui.tasks.test-ui]
cmd = 'pytest ./tests/ui --ui --browser chromium -n logical --dist loadgroup --reruns 3 --reruns-delay 10'
depends-on = ["_install", "_install-ui"]
# =============================================
# ================== BUILD ====================
# =============================================
[feature.build.dependencies]
python-build = "*"
twine = "*"
wheel = "*"
[feature.build.tasks]
build-wheel = "python -m build --no-isolation ."
check-wheel = "twine check dist/*"
# =============================================
# ================= COMPILE ===================
# =============================================
[feature.compile.dependencies]
nodejs = ">=18"
esbuild = "*"
[feature.compile-task.tasks]
compile = { cmd = "panel compile panel_gwalker", env = { PYTHONPATH = "./src:$PYTHONPATH" } }
compile-dev = { cmd = "panel compile panel_gwalker --build-dir build --watch", env = { PYTHONPATH = "./src:$PYTHONPATH" } }
# =============================================
# ================== LINT =====================
# =============================================
[feature.lint.dependencies]
pre-commit = "*"
[feature.lint.tasks]
pre-commit-install = "pre-commit install"
pre-commit-run = "pre-commit run -a"