From fa9eb8f4828e5714961f94d21a07a335536aa17b Mon Sep 17 00:00:00 2001 From: Aurelien Lourot Date: Thu, 10 Dec 2020 22:14:32 +0100 Subject: [PATCH] Sync release-tools Sync release-tools boilerplate containing these changes in order to pin pip < 20.3: https://github.com/openstack-charmers/release-tools/pull/125 https://github.com/openstack-charmers/release-tools/pull/126 Change-Id: I7a341efcacce56a8cfcf5dcc9ec60f2ae576f7b9 --- src/tox.ini | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/tox.ini b/src/tox.ini index 8a91d50..c69aad7 100644 --- a/src/tox.ini +++ b/src/tox.ini @@ -11,6 +11,18 @@ skipsdist = True sitepackages = False # NOTE: Avoid false positives by not skipping missing interpreters. skip_missing_interpreters = False +# NOTES: +# * We avoid the new dependency resolver by pinning pip < 20.3, see +# https://github.com/pypa/pip/issues/9187 +# * Pinning dependencies requires tox >= 3.2.0, see +# https://tox.readthedocs.io/en/latest/config.html#conf-requires +# * It is also necessary to pin virtualenv as a newer virtualenv would still +# lead to fetching the latest pip in the func* tox targets, see +# https://stackoverflow.com/a/38133283 +requires = pip < 20.3 + virtualenv < 20.0 +# NOTE: https://wiki.canonical.com/engineering/OpenStack/InstallLatestToxOnOsci +minversion = 3.2.0 [testenv] setenv = VIRTUAL_ENV={envdir}