Skip to content

Commit

Permalink
testsuite: Merge python2.6 requirements file
Browse files Browse the repository at this point in the history
We can sepcify the required python version inside the requirements file.
  • Loading branch information
AlexanderS committed Jan 29, 2021
1 parent 41a9d42 commit 69aa3fc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 19 deletions.
8 changes: 1 addition & 7 deletions testsuite/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,7 @@ else
}

sudo apt-get install -y libxml2-dev libxml2-utils
if [[ $PYVER == "2.6" ]]; then
pip_wheel -r testsuite/requirements-26.txt
pip_wheel unittest2
else
pip_wheel -r testsuite/requirements.txt
fi

pip_wheel -r testsuite/requirements.txt

if [[ "$WITH_OPTIONAL_DEPS" == "yes" ]]; then
sudo apt-get install -y libaugeas-dev libacl1-dev libssl-dev
Expand Down
9 changes: 0 additions & 9 deletions testsuite/requirements-26.txt

This file was deleted.

9 changes: 6 additions & 3 deletions testsuite/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
lxml
python-daemon
lxml<4.3.0 ; python_version<'2.7'
lxml ; python_version>='2.7
python-daemon<2.0.0 ; python_version<'2.7'
python-daemon ; python_version>='2.7'
genshi
argparse
Expand All @@ -8,4 +10,5 @@ mock
pylint<0.29 ; python_version<'3'
pylint ; python_version>='3'
pep8
sphinx
sphinx ; python_version>='2.7'
unittest2 ; python_version<'2.7'

0 comments on commit 69aa3fc

Please sign in to comment.