Skip to content

Commit 69edc37

Browse files
committed
Setup uv
install `uv` once with one of these commands: pip install uv pipx install uv curl -LsSf https://astral.sh/uv/install.sh | sh then just run uv run pytest tests/misc/test_basic_without_ssh.py --hosts=gln-xcpng to install all the required python dependencies and run the selected tests. If you prefer not to use `uv run`, you can tell uv to install the dependencies and then set up the shell environment to have them accessible in the shell: uv sync source .venv/bin/activate Run `deactivate` to deactivate the virtual environment. Signed-off-by: Gaëtan Lehmann <[email protected]>
1 parent 39009b2 commit 69edc37

File tree

3 files changed

+1257
-0
lines changed

3 files changed

+1257
-0
lines changed

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.8.20

pyproject.toml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,29 @@
1+
[project]
2+
name = "xcp-ng-tests"
3+
version = "0.1.0"
4+
description = "Testing scripts for XCP-ng"
5+
readme = "README.md"
6+
requires-python = "~=3.8"
7+
dependencies = [
8+
"cryptography>=3.3.1",
9+
"gitpython",
10+
"legacycrypt",
11+
"packaging>=20.7",
12+
"pluggy>=1.1.0",
13+
"pytest>=8.0.0",
14+
"pytest-dependency",
15+
"requests",
16+
]
17+
18+
[dependency-groups]
19+
dev = [
20+
"ansible>=5.0.1",
21+
"bs4>=0.0.1",
22+
"mypy",
23+
"flake8",
24+
"pyyaml>=6.0",
25+
"typing-extensions",
26+
]
27+
128
[tool.pyright]
229
typeCheckingMode = "standard"

0 commit comments

Comments
 (0)