forked from Iota-School/notebooks-for-all
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpixi.toml
123 lines (102 loc) · 2.96 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
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
# "$schema" = "https://pixi.sh/v0.21.1/schema/manifest/schema.json"
[project]
name = "test-nbconvert-a11y"
version = "0.1.0"
description = "Add a short description here"
authors = ["tonyfast <[email protected]>"]
channels = ["conda-forge", "microsoft", "nodefaults"]
platforms = ["linux-64", "osx-64", "win-64", "osx-arm64"]
[feature.test-python.tasks.test]
depends-on = ["pip", "install-axe", "pw-install-ff"]
inputs = [
"pyproject.toml",
"{tests,nbconvert_a11y}/*.py",
"{tests,nbconvert_a11y}/**/*.py",
]
cmd = """PLAYWRIGHT_BROWSERS_PATH=.pixi/.local-browsers pytest --browser firefox"""
[feature.test-axe.tasks.install-axe]
inputs = ["package.json"]
outputs = ["node_modules/axe-core", "package-lock.json"]
cmd = "npm install"
[feature.test-axe.tasks.vendor-axe]
depends-on = ["install-axe"]
inputs = ["package-lock.json"]
outputs = ["nbconvert_a11y/axe/axe-core"]
cmd = "cp node_modules/axe-core nbconvert_a11y/axe/axe-core/"
[feature.test-axe.tasks.pw-install-ff]
outputs = [".pixi/.local-browsers/firefox-*"]
cmd = "PLAYWRIGHT_BROWSERS_PATH=.pixi/.local-browsers playwright install firefox"
[feature.test-axe.dependencies]
playwright = "*"
pytest-playwright = "*"
[feature.test-nu-validator.dependencies]
openjdk = "*"
vnu-validator = "*"
[feature.docs.dependencies]
mkdocs-material = ">=9.5.24,<9.6"
mkdocstrings = ">=0.25.1,<0.26"
[feature.docs.tasks.build]
inputs = [
"mkdocs.yml",
"{tests,nbconvert_a11y}/*.{ipynb,md,py}",
"{tests,nbconvert_a11y}/**/*.{ipynb,md,py}",
]
outputs = ["site"]
cmd = "mkdocs build -v"
[dependencies]
# run in CI with --with-deps
python = ">=3.10,<3.13"
pip = "*"
accessible-pygments = "*"
exceptiongroup = "*"
html5lib = "*"
nbconvert = "*"
python-slugify = "*"
mdit-py-plugins = "*"
linkify-it-py = ">=1,<3"
markdown-it-py = "*"
beautifulsoup4 = "*"
[feature.test-python.dependencies]
doit = "*"
ipywidgets = "*"
matplotlib-base = "*"
numpy = "*"
pytest = "*"
pytest-html = "*"
pytest-sugar = "*"
pytest-xdist = "*"
pytest-flask = "*"
requests-cache = "*"
scipy = "*"
pandas = "*"
[environments]
# lint = { features = ["lint"], solve-group = "default" }
build = { features = ["build"], solve-group = "default" }
test = { features = [
"test-python",
"test-axe",
"test-nu-validator",
], solve-group = "default" }
docs = { features = ["docs"], solve-group = "default" }
[tasks.pip]
inputs = ["pyproject.toml", "nbconvert_a11y/templates"]
outputs = ["build/pip-freeze/*.txt"]
cmd = """
python -m pip install -vv --no-deps --ignore-installed --disable-pip-version-check
-e .
&& mkdir -p build/pip-freeze
&& pip freeze > build/pip-freeze/$PIXI_ENVIRONMENT_NAME.txt"""
[feature.build.dependencies]
python-build = "*"
[feature.build.tasks.build]
inputs = [
"LICENSE",
"pyproject.toml",
"README.md",
"nbconvert_a11y/**/*.{py,j2}",
"nbconvert_a11y/*.{py,j2}",
]
outputs = ["dist/nbconvert_a11y-*.tar.gz", "dist/nbconvert_a11y-*.whl"]
cmd = "rm -rf dist && pyproject-build . -vv"
[feature.test.dependencies]
pytest-asyncio = ">=0.14.0,<0.24"