File: install_hug.sh

package info (click to toggle)
python-falcon 3.1.1-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,204 kB
  • sloc: python: 28,455; makefile: 184; sh: 139; javascript: 66
file content (23 lines) | stat: -rwxr-xr-x 522 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env bash

HUG_PATH=.ecosystem/hug

# Clean up in case we are running locally and not in CI
rm -rf $HUG_PATH

mkdir -p .ecosystem
git clone https://github.com/timothycrosley/hug.git $HUG_PATH
virtualenv $HUG_PATH/.venv
source $HUG_PATH/.venv/bin/activate

pip install hug

pushd $HUG_PATH
git checkout master
git pull
HUG_VERSION=$(pip freeze | grep hug | cut -c 6-)
git checkout tags/$HUG_VERSION
pip install -rrequirements/build.txt
popd

pip install .  # Override Hug's Falcon version with the one under test