Skip to content

Commit 4d0dfc1

Browse files
committed
setup mise
install `mise` once with ~~sh curl https://mise.run | sh ~~ then just run ~~sh mise run test tests/misc/test_basic_without_ssh.py --hosts=gln-xcpng ~~ to install all the required dependencies, including `xo-cli`, `python`, and required python modules, and run the selected tests. If you prefer not to use `mise run`, you can tell mise to install the dependencies and then set up the shell environment to have them accessible in the shell: ~~sh mise install mise activate | source ~~ `mise` deactivates itself as soon as you leave the project directory, and reactivates when you enter a directory with a `mise` configuration, so you may even put that last command in your global shell configuration. Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
1 parent cbfcd2e commit 4d0dfc1

3 files changed

Lines changed: 374 additions & 0 deletions

File tree

mise.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[tools]
2+
"npm:xo-cli" = "0.32.1"
3+
python = "3.13"
4+
uv = "0.6"
5+
6+
[env]
7+
_.python.venv = { path = ".venv", create = true }
8+
9+
[tasks.test]
10+
description = "run tests"
11+
run = "pytest"

pyproject.toml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
[project]
2+
name = "xcp-ng-tests"
3+
version = "0.1.0"
4+
description = "Add your description here"
5+
readme = "README.md"
6+
requires-python = ">=3.12"
7+
dependencies = [
8+
"cryptography>=3.3.1",
9+
"packaging>=20.7",
10+
"pluggy>=1.1.0",
11+
"pytest>=8.0.0",
12+
]
13+
14+
[dependency-groups]
15+
dev = [
16+
"ansible>=5.0.1",
17+
"bs4>=0.0.1",
18+
"cryptography>=3.3.1",
19+
"packaging>=20.7",
20+
"pluggy>=1.1.0",
21+
"pycodestyle>=2.6.0",
22+
"pytest>=8.0.0",
23+
"pyyaml>=6.0",
24+
]

0 commit comments

Comments
 (0)