-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpixi.toml
More file actions
138 lines (114 loc) · 4.09 KB
/
pixi.toml
File metadata and controls
138 lines (114 loc) · 4.09 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
[project]
name = "panel-splitjs"
channels = ["pyviz/label/dev", "conda-forge"]
platforms = ["osx-arm64", "osx-64", "linux-64", "win-64"]
[tasks]
postinstall = "pip install --no-build-isolation --no-deps --disable-pip-version-check -e ."
compile = { cmd = "panel compile panel_splitjs", env = { PYTHONPATH = "./src:$PYTHONPATH" } }
compile-dev = { cmd = "panel compile panel_splitjs --build-dir build --watch", env = { PYTHONPATH = "./src:$PYTHONPATH" } }
pre-commit-install = "pre-commit install"
pre-commit-run = "pre-commit run -a"
[dependencies]
python = ">=3.10"
panel = ">=1.8.3a0"
bokeh = ">=3.8.0"
packaging = "*"
watchfiles = "*"
pip = "*"
setuptools = ">=61"
setuptools-scm = "*"
hatchling = "*"
hatch-vcs = "*"
nodejs = ">=18"
esbuild = "*"
[feature.py310.dependencies]
python = "3.10.*"
[feature.py311.dependencies]
python = "3.11.*"
[feature.py312.dependencies]
python = "3.12.*"
[environments]
test-310 = ["py310", "compile", "test-core", "test-unit-task"]
test-311 = ["py311", "compile", "test-core", "test-unit-task"]
test-312 = ["py312", "compile", "test-core", "test-unit-task"]
test-ui = ["py312", "compile", "test-core", "test-ui"]
build = ["py312", "build", "compile"]
compile = ["py312", "compile"]
lint = { features = ["lint"], no-default-feature = true }
docs = ["py311", "doc"]
# =============================================
# ================== TEST =====================
# =============================================
[feature.test-core.dependencies]
pytest = ">=6"
pytest-asyncio = "*"
pytest-cov = "*"
pytest-rerunfailures = "<16"
pytest-xdist = "*"
mypy = "*"
[feature.test-unit-task.tasks]
_install = "pip install --no-deps --disable-pip-version-check -e ."
test = { cmd = "pytest", depends-on = ["_install"] }
test-coverage = { cmd = "pytest --cov=panel_splitjs --cov-report=xml --cov-report=term-missing", depends-on = ["_install"] }
[feature.test-ui]
channels = ["microsoft"]
[feature.test-ui.dependencies]
playwright = { version = "<1.51", channel = "microsoft" }
pytest-playwright = { version = "*", channel = "microsoft" }
[feature.test-ui.tasks]
_install = "pip install --no-deps --no-build-isolation --disable-pip-version-check -e ."
_install-ui = 'playwright install chromium'
[feature.test-ui.tasks.test-ui]
cmd = 'pytest ./tests/ --ui --browser chromium -n logical --dist loadgroup --reruns 3 --reruns-delay 10'
depends-on = ["_install", "_install-ui"]
# =============================================
# =================== DOCS ====================
# =============================================
[feature.doc.activation.env]
MOZ_HEADLESS = "1"
PANEL_IPYWIDGET = "1"
OBJC_DISABLE_INITIALIZE_FORK_SAFETY = "YES"
SPHINX_APIDOC_OPTIONS = "members,show-inheritance"
[feature.doc.dependencies]
nbsite = ">=0.9.0a1"
numpydoc = "*"
matplotlib = "*" # not optional in nbsite
hvplot = "*"
bokeh_sampledata = "*"
plotly = "*"
[feature.doc.tasks]
_docs-generate = 'nbsite build --what=html --output=builtdocs --org holoviz --project-name panel-material-ui --disable-parallel'
_docs-generate-parallel = 'nbsite build --what=html --output=builtdocs --org holoviz --project-name panel-material-ui'
docs-server = 'python -m http.server 5500 --directory ./builtdocs'
[feature.doc.tasks.docs-build]
depends-on = [
'_docs-generate',
]
[feature.doc.tasks.docs-build-parallel]
depends-on = [
'_docs-generate-parallel',
]
# =============================================
# ================== 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 = "*"
# =============================================
# ================== LINT =====================
# =============================================
[feature.lint.dependencies]
pre-commit = "*"
[feature.lint.tasks]
pre-commit-install = "pre-commit install"
pre-commit-run = "pre-commit run -a"