mirror of
https://github.com/kennethreitz/heroku-buildpack-python.git
synced 2026-06-05 23:10:16 +00:00
fix tests
This commit is contained in:
+4
-14
@@ -54,23 +54,13 @@ if [ "$FRESH_PYTHON" ] || [[ ! $(pip --version) == *$PIP_VERSION* ]]; then
|
||||
TMPTARDIR=$(mktemp -d)
|
||||
trap "rm -rf $TMPTARDIR" RETURN
|
||||
|
||||
bpwatch start install_setuptools
|
||||
# Prepare it for the real world
|
||||
puts-step "Installing Setuptools ($SETUPTOOLS_VERSION)"
|
||||
unzip $ROOT_DIR/vendor/setuptools-$SETUPTOOLS_VERSION.zip -d $TMPTARDIR
|
||||
cd $TMPTARDIR/setuptools-$SETUPTOOLS_VERSION/
|
||||
python setup.py install
|
||||
cd $WORKING_DIR
|
||||
bpwatch stop install_setuptoools
|
||||
|
||||
bpwatch start install_pip
|
||||
puts-step "Installing Pip ($PIP_VERSION)"
|
||||
tar zxf $ROOT_DIR/vendor/pip-$PIP_VERSION.tar.gz -C $TMPTARDIR
|
||||
cd $TMPTARDIR/pip-$PIP_VERSION/
|
||||
python setup.py install
|
||||
cd $WORKING_DIR
|
||||
|
||||
puts-step "Bootstrapping pip"
|
||||
python $ROOT_DIR/vendor/get-pip.py
|
||||
|
||||
bpwatch stop install_pip
|
||||
|
||||
bpwatch stop prepare_environment
|
||||
fi
|
||||
|
||||
|
||||
Vendored
+1
-1
@@ -1,2 +1,2 @@
|
||||
[packages]
|
||||
requests = "*"
|
||||
maya = "*"
|
||||
|
||||
@@ -5,6 +5,14 @@ testNoRequirements() {
|
||||
assertCapturedError
|
||||
}
|
||||
|
||||
|
||||
testPipenv() {
|
||||
compile "pipenv"
|
||||
assertCaptured "maya"
|
||||
assertCapturedSuccess
|
||||
}
|
||||
|
||||
|
||||
testSetupPy() {
|
||||
compile "setup-py"
|
||||
assertCaptured "maya"
|
||||
|
||||
Vendored
+20061
File diff suppressed because it is too large
Load Diff
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Reference in New Issue
Block a user