From 91020da470e25704788686834fff15d8da27e407 Mon Sep 17 00:00:00 2001 From: James Parker Date: Wed, 10 Feb 2021 11:57:35 -0500 Subject: [PATCH] Update iniparse for py2.7 deployments Current requirements when running with py2.7 on RHEL 7 systems results in an installation error, see below. Setting the minimum acceptable version for iniparse to 0.4 when using py2.7. Attempting uninstall: iniparse Found existing installation: iniparse 0.4 ERROR: Cannot uninstall 'iniparse'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall. Change-Id: I6109ae0dd67117875bd0b9011abb1c9d9c43ae14 --- requirements.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 67c5821a..df637a7c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,7 +5,8 @@ setuptools>=17.1 # setuptools needs to be upgraded below to ensure we have # a new enough setuptools version to support using >= # for the python_version marker -iniparse>=0.5 +iniparse>=0.4;python_version=='2.7' # MIT +iniparse>=0.5;python_version>='3.6' # MIT crudini>=0.9.3 paramiko>=2.7.0 sshtunnel<=0.1.3;python_version=='2.7' # MIT