File: test-setup.sh

package info (click to toggle)
network-runner 0.3.6-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 700 kB
  • sloc: python: 1,356; makefile: 8; sh: 2
file content (11 lines) | stat: -rwxr-xr-x 477 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

# NOTE(pabelanger): Default to pip3, when possible this is becaue python2
# support is EOL.
PIP=$(command -v pip3) || PIP=$(command -v pip2)

# NOTE(pabelanger): Tox on centos-7 is old, so upgrade it across all distros
# to the latest version
# NOTE(pabelanger): Cap zipp<0.6.0 due to python2.7 issue with more-iterrtools
# https://github.com/jaraco/zipp/issues/14
sudo $PIP install -U tox "configparser<5;python_version=='2.7'" "zipp<0.6.0;python_version=='2.7'"