Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
heroku-buildpack-python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Evili del Rio i Silvan
heroku-buildpack-python
Commits
7b26f0df
Commit
7b26f0df
authored
7 years ago
by
Kenneth Reitz
Browse files
Options
Downloads
Patches
Plain Diff
set -e
Signed-off-by:
Kenneth Reitz
<
me@kennethreitz.org
>
parent
96df073b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/steps/pipenv
+4
-3
4 additions, 3 deletions
bin/steps/pipenv
with
4 additions
and
3 deletions
bin/steps/pipenv
+
4
−
3
View file @
7b26f0df
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
# export PIPENV_FORCE_COLOR=1
# export PIPENV_FORCE_COLOR=1
# shellcheck source=bin/utils
# shellcheck source=bin/utils
source
$BIN_DIR
/utils
source
$BIN_DIR
/utils
set
-e
if
[[
-f
Pipfile.lock
]]
;
then
if
[[
-f
Pipfile.lock
]]
;
then
if
[[
-f
.heroku/python/Pipfile.lock.sha256
]]
;
then
if
[[
-f
.heroku/python/Pipfile.lock.sha256
]]
;
then
...
@@ -15,7 +15,7 @@ if [[ -f Pipfile.lock ]]; then
...
@@ -15,7 +15,7 @@ if [[ -f Pipfile.lock ]]; then
echo
""
echo
""
echo
"
$
heroku config:set PIPENV_ALWAYS_INSTALL=1"
| indent
echo
"
$
heroku config:set PIPENV_ALWAYS_INSTALL=1"
| indent
SKIP_PIPENV_INSTALL
=
1
export
SKIP_PIPENV_INSTALL
=
1
fi
fi
fi
fi
fi
fi
...
@@ -27,7 +27,6 @@ if [ ! "$SKIP_PIPENV_INSTALL" ]; then
...
@@ -27,7 +27,6 @@ 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
if
[[
!
-f
requirements.txt
]]
;
then
puts-step
"Installing requirements with latest Pipenv…"
# Measure that we're using Pipenv.
# Measure that we're using Pipenv.
mcount
"tool.pipenv"
mcount
"tool.pipenv"
...
@@ -43,6 +42,7 @@ if [ ! "$SKIP_PIPENV_INSTALL" ]; then
...
@@ -43,6 +42,7 @@ if [ ! "$SKIP_PIPENV_INSTALL" ]; then
# Install the dependencies.
# Install the dependencies.
if
[[
!
-f
Pipfile.lock
]]
;
then
if
[[
!
-f
Pipfile.lock
]]
;
then
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
...
@@ -50,6 +50,7 @@ if [ ! "$SKIP_PIPENV_INSTALL" ]; then
...
@@ -50,6 +50,7 @@ if [ ! "$SKIP_PIPENV_INSTALL" ]; then
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…"
/app/.heroku/python/bin/pipenv
install
--system
--deploy
2>&1 | indent
/app/.heroku/python/bin/pipenv
install
--system
--deploy
2>&1 | indent
fi
fi
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment