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
58e9c843
Commit
58e9c843
authored
Mar 14, 2017
by
Kenneth Reitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix tests
parent
dcfff151
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
7 deletions
+13
-7
pipenv-python-version
bin/steps/pipenv-python-version
+6
-2
run
test/run
+7
-5
No files found.
bin/steps/pipenv-python-version
View file @
58e9c843
...
...
@@ -5,9 +5,12 @@ if [[ -f $BUILD_DIR/Pipfile ]]; then
if [[ ! -f $BUILD_DIR/runtime.txt ]]; then
if [[ ! -f Pipfile.lock ]]; then
puts-warn "Pipfile.lock not found!"
else
echo '{}' > Pipfile.lock
fi
if [[ -f Pipfile.lock ]]; then
set +e
PYTHON=$(cat $BUILD_DIR/Pipfile.lock | jq '._meta.requires.python_version' -r)
2>&1 /dev/null
PYTHON=$(cat $BUILD_DIR/Pipfile.lock | jq '._meta.requires.python_version' -r)
set -e
if [ "$PYTHON" = 2.7 ]; then
...
...
@@ -17,6 +20,7 @@ if [[ -f $BUILD_DIR/Pipfile ]]; then
echo "python-3.6.0" > $BUILD_DIR/runtime.txt
fi
fi
fi
fi
test/run
View file @
58e9c843
#!/usr/bin/env bash
testPipenvVersion
()
{
compile
"pipenv-version"
assertCaptured
"3.6.0"
assertCapturedSuccess
}
testPipenv
()
{
compile
"pipenv"
assertCapturedSuccess
...
...
@@ -21,11 +27,7 @@ testNLTK() {
testPipenvVersion
()
{
compile
"pipenv-version"
assertCaptured
"3.6.0"
assertCapturedSuccess
}
testNewlineRuntime
()
{
compile
"newline-runtime"
...
...
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