From f365324c8211e80167c05014b3e7a0883e61bec1 Mon Sep 17 00:00:00 2001 From: Stefano Rivera <stefanor@debian.org> Date: Fri, 24 Feb 2023 16:30:32 -0400 Subject: [PATCH] Use virtualenvs in testfe-setuptools autopgktest, fixing a regression now that pip refuses --user installs. (Closes: #1031757) --- debian/changelog | 7 +++++++ debian/tests/control | 2 +- debian/tests/testfe-setuptools | 8 +++----- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/debian/changelog b/debian/changelog index 5772b28..ae05356 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +python-formencode (2.0.1-2) UNRELEASED; urgency=medium + + * Use virtualenvs in testfe-setuptools autopgktest, fixing a regression now + that pip refuses --user installs. (Closes: #1031757) + + -- Stefano Rivera <stefanor@debian.org> Fri, 24 Feb 2023 16:20:19 -0400 + python-formencode (2.0.1-1) unstable; urgency=low [ Neil Muller ] diff --git a/debian/tests/control b/debian/tests/control index 7a03a04..e6781e1 100644 --- a/debian/tests/control +++ b/debian/tests/control @@ -2,4 +2,4 @@ Tests: testfe Depends: python3-formencode, python3-all Tests: testfe-setuptools -Depends: python3-formencode, python3-setuptools, python3-all, python3-pip +Depends: python3-formencode, python3-all, python3-virtualenv diff --git a/debian/tests/testfe-setuptools b/debian/tests/testfe-setuptools index 55f528e..3f635a4 100644 --- a/debian/tests/testfe-setuptools +++ b/debian/tests/testfe-setuptools @@ -80,9 +80,7 @@ touch __init__.py cd $WORKDIR for py in $(py3versions -s) python3; do - $py -m pip install --user --no-warn-script-location ./mypkg - cd ~/.local/bin - ./testfe - cd $WORKDIR - $py -m pip uninstall -y testlib + virtualenv -p $py testve + testve/bin/python -m pip install --no-warn-script-location ./mypkg + testve/bin/testfe done -- GitLab