Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
heroku-buildpack-python
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Python-Dev
heroku-buildpack-python
Commits
65648fb7
Commit
65648fb7
authored
Mar 16, 2017
by
Kenneth Reitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix tests
parent
45b0d185
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
24 deletions
+8
-24
compile
bin/compile
+3
-3
pipenv
bin/steps/pipenv
+1
-0
python
bin/steps/python
+4
-20
run
test/run
+0
-1
No files found.
bin/compile
View file @
65648fb7
...
@@ -158,9 +158,6 @@ source $BIN_DIR/steps/python
...
@@ -158,9 +158,6 @@ source $BIN_DIR/steps/python
# Sanity check for setuptools/distribute.
# Sanity check for setuptools/distribute.
source
$BIN_DIR
/steps/setuptools
source
$BIN_DIR
/steps/setuptools
# Fix egg-links.
source
$BIN_DIR
/steps/eggpath-fix
# Pipenv support.
# Pipenv support.
source
$BIN_DIR
/steps/pipenv
source
$BIN_DIR
/steps/pipenv
...
@@ -169,6 +166,9 @@ if [ ! -f requirements.txt ] && [ ! -f Pipfile ]; then
...
@@ -169,6 +166,9 @@ if [ ! -f requirements.txt ] && [ ! -f Pipfile ]; then
echo
"-e ."
>
requirements.txt
echo
"-e ."
>
requirements.txt
fi
fi
# Fix egg-links.
source
$BIN_DIR
/steps/eggpath-fix
# Mercurial support.
# Mercurial support.
source
$BIN_DIR
/steps/mercurial
source
$BIN_DIR
/steps/mercurial
...
...
bin/steps/pipenv
View file @
65648fb7
...
@@ -4,6 +4,7 @@ if [[ -f Pipfile ]]; then
...
@@ -4,6 +4,7 @@ if [[ -f Pipfile ]]; then
puts-step "Generating 'requirements.txt' with pipenv"
puts-step "Generating 'requirements.txt' with pipenv"
/app/.heroku/python/bin/pip install pipenv --upgrade &> /dev/null
/app/.heroku/python/bin/pip install pipenv --upgrade &> /dev/null
/app/.heroku/python/bin/pipenv lock --requirements --no-hashes > $BUILD_DIR/requirements.txt 2> /dev/null
/app/.heroku/python/bin/pipenv lock --requirements --no-hashes > $BUILD_DIR/requirements.txt 2> /dev/null
fi
fi
fi
fi
\ No newline at end of file
bin/steps/python
View file @
65648fb7
...
@@ -56,28 +56,12 @@ if [ "$FRESH_PYTHON" ] || [[ ! $(pip --version) == *$PIP_VERSION* ]]; then
...
@@ -56,28 +56,12 @@ if [ "$FRESH_PYTHON" ] || [[ ! $(pip --version) == *$PIP_VERSION* ]]; then
trap "rm -rf $TMPTARDIR" RETURN
trap "rm -rf $TMPTARDIR" RETURN
puts-step "Installing pip"
puts-step "Installing pip"
/app/.heroku/python/bin/python $ROOT_DIR/vendor/get-pip.py &> /dev/null
# bpwatch start install_setuptools
# # Prepare it for the real world
# puts-step "Installing Setuptools ($SETUPTOOLS_VERSION)"
# tar zxf $ROOT_DIR/vendor/setuptools-$SETUPTOOLS_VERSION.tar.gz -C $TMPTARDIR
# cd $TMPTARDIR/setuptools-$SETUPTOOLS_VERSION/
# /app/.heroku/python/bin/python setup.py install &> /dev/null
# 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/
# /app/.heroku/python/bin/python setup.py install &> /dev/null
# cd $WORKING_DIR
# bpwatch stop install_pip
# Remove old installations.
rm -fr /app/.heroku/python/lib/python2.7/site-packages/pip-*
rm -fr /app/.heroku/python/lib/python2.7/site-packages/setuptools-*
/app/.heroku/python/bin/python $ROOT_DIR/vendor/get-pip.py &> /dev/null
bpwatch stop prepare_environment
bpwatch stop prepare_environment
fi
fi
...
...
test/run
View file @
65648fb7
...
@@ -3,7 +3,6 @@
...
@@ -3,7 +3,6 @@
testPipenv
()
{
testPipenv
()
{
compile
"pipenv"
compile
"pipenv"
debug
assertCapturedSuccess
assertCapturedSuccess
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment