curtin-dev team mailing list archive
-
curtin-dev team
-
Mailing list archive
-
Message #03925
[Merge] ~dbungert/curtin:fix-ci-ubuntu-noble into curtin:ubuntu/noble
Dan Bungert has proposed merging ~dbungert/curtin:fix-ci-ubuntu-noble into curtin:ubuntu/noble.
Commit message:
tox: sitepackages = false
If we pull python3-apt from git we can drop sitepackages, which helps
insulate against CI problems. We need libapt-pkg-dev for that though.
(cherry picked from commit 3d87b591dedee45def0304e0bb31b91743ba80ba)
Requested reviews:
curtin developers (curtin-dev)
For more details, see:
https://code.launchpad.net/~dbungert/curtin/+git/curtin/+merge/481671
--
Your team curtin developers is requested to review the proposed merge of ~dbungert/curtin:fix-ci-ubuntu-noble into curtin:ubuntu/noble.
diff --git a/test-requirements.txt b/test-requirements.txt
index 29f264d..5ff8f3e 100644
--- a/test-requirements.txt
+++ b/test-requirements.txt
@@ -7,3 +7,4 @@ pip
pyflakes
virtualenv
wheel
+git+https://salsa.debian.org/apt-team/python-apt@2.4.y
diff --git a/tools/vmtest-system-setup b/tools/vmtest-system-setup
index bdd1fdc..7d416b6 100755
--- a/tools/vmtest-system-setup
+++ b/tools/vmtest-system-setup
@@ -16,6 +16,7 @@ DEPS=(
cloud-image-utils
cryptsetup
git
+ libapt-pkg-dev
make
net-tools
python3
diff --git a/tox.ini b/tox.ini
index 228dab0..61357bd 100644
--- a/tox.ini
+++ b/tox.ini
@@ -25,7 +25,7 @@ commands = {envpython} {toxinidir}/tools/noproxy {envpython} -m nose \
[testenv:py3]
basepython = python3
-sitepackages = true
+sitepackages = false
[testenv:py3-flake8]
basepython = python3
@@ -40,7 +40,7 @@ commands = {envpython} -m pyflakes {posargs:curtin/ tests/ tools/}
[testenv:py3-pylint]
# set basepython because tox 1.6 (trusty) does not support generated environments
basepython = python3
-sitepackages = true
+sitepackages = false
deps = {[testenv]deps}
pylint==2.17.4
git+https://git.launchpad.net/simplestreams
Follow ups