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
7cbca2f5
Commit
7cbca2f5
authored
Mar 07, 2018
by
Kenneth Reitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
always use pipenv if it's there
Signed-off-by:
Kenneth Reitz
<
me@kennethreitz.org
>
parent
fe302d87
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
30 deletions
+27
-30
pipenv
bin/steps/pipenv
+27
-30
No files found.
bin/steps/pipenv
View file @
7cbca2f5
...
@@ -26,42 +26,39 @@ if [ ! "$SKIP_PIPENV_INSTALL" ]; then
...
@@ -26,42 +26,39 @@ if [ ! "$SKIP_PIPENV_INSTALL" ]; then
# Pipenv support (Generate requriements.txt with pipenv).
# Pipenv support (Generate requriements.txt with pipenv).
if
[[
-f
Pipfile
]]
;
then
if
[[
-f
Pipfile
]]
;
then
if
[[
!
-f
requirements.txt
]]
;
then
# Measure that we're using Pipenv.
mcount
"tool.pipenv"
# Measure that we're using Pipenv
.
# Skip pip install, later
.
mcount
"tool.pipenv"
export
SKIP_PIP_INSTALL
=
1
# Skip pip install, later.
# Set PIP_EXTRA_INDEX_URL
export
SKIP_PIP_INSTALL
=
1
if
[[
-r
$ENV_DIR
/PIP_EXTRA_INDEX_URL
]]
;
then
PIP_EXTRA_INDEX_URL
=
"
$(
cat
"
$ENV_DIR
/PIP_EXTRA_INDEX_URL"
)
"
# Set PIP_EXTRA_INDEX_URL
export
PIP_EXTRA_INDEX_URL
if
[[
-r
$ENV_DIR
/PIP_EXTRA_INDEX_URL
]]
;
then
fi
PIP_EXTRA_INDEX_URL
=
"
$(
cat
"
$ENV_DIR
/PIP_EXTRA_INDEX_URL"
)
"
export
PIP_EXTRA_INDEX_URL
fi
# Install pipenv.
# Install pipenv.
/app/.heroku/python/bin/pip
install
pipenv
--upgrade
&> /dev/null
/app/.heroku/python/bin/pip
install
pipenv
--upgrade
&> /dev/null
# Install the dependencies.
# Install the dependencies.
if
[[
!
-f
Pipfile.lock
]]
;
then
if
[[
!
-f
Pipfile.lock
]]
;
then
puts-step
"Installing dependencies with latest Pipenv…"
puts-step
"Installing dependencies with latest Pipenv…"
/app/.heroku/python/bin/pipenv
install
--system
--skip-lock
2>&1 | indent
/app/.heroku/python/bin/pipenv
install
--system
--skip-lock
2>&1 | indent
else
else
pipenv-to-pip Pipfile.lock
>
requirements.txt
pipenv-to-pip Pipfile.lock
>
requirements.txt
"
$BIN_DIR
/steps/pip-uninstall"
"
$BIN_DIR
/steps/pip-uninstall"
cp
requirements.txt .heroku/python/requirements-declared.txt
cp
requirements.txt .heroku/python/requirements-declared.txt
openssl dgst
-sha256
Pipfile.lock
>
.heroku/python/Pipfile.lock.sha256
openssl dgst
-sha256
Pipfile.lock
>
.heroku/python/Pipfile.lock.sha256
puts-step
"Installing dependencies with latest Pipenv…"
puts-step
"Installing dependencies with latest Pipenv…"
/app/.heroku/python/bin/pipenv
install
--system
--deploy
2>&1 | indent
/app/.heroku/python/bin/pipenv
install
--system
--deploy
2>&1 | indent
fi
fi
# Install the test dependencies, for CI.
# Install the test dependencies, for CI.
if
[
"
$INSTALL_TEST
"
]
;
then
if
[
"
$INSTALL_TEST
"
]
;
then
puts-step
"Installing test dependencies…"
puts-step
"Installing test dependencies…"
/app/.heroku/python/bin/pipenv
install
--dev
--system
--deploy
2>&1 | cleanup | indent
/app/.heroku/python/bin/pipenv
install
--dev
--system
--deploy
2>&1 | cleanup | indent
fi
fi
fi
fi
fi
else
else
...
...
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