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
ffb89feb
Commit
ffb89feb
authored
9 years ago
by
Kenneth Reitz
Browse files
Options
Downloads
Patches
Plain Diff
improvements to buildpack output
parent
45b00e32
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
bin/steps/collectstatic
+1
-1
1 addition, 1 deletion
bin/steps/collectstatic
bin/steps/pip-install
+1
-1
1 addition, 1 deletion
bin/steps/pip-install
bin/utils
+10
-0
10 additions, 0 deletions
bin/utils
with
12 additions
and
2 deletions
bin/steps/collectstatic
+
1
−
1
View file @
ffb89feb
...
...
@@ -27,7 +27,7 @@ bpwatch start collectstatic # metrics collection
if
[
!
"
$DISABLE_COLLECTSTATIC
"
]
&&
[
-f
"
$MANAGE_FILE
"
]
&&
[
"
$DJANGO_INSTALLED
"
]
;
then
set
+e
echo
"----->
$
python
$MANAGE_FILE
collectstatic --noinput"
puts-cmd
"
python
$MANAGE_FILE
collectstatic --noinput"
# Run collectstatic, cleanup some of the noisy output.
python
$MANAGE_FILE
collectstatic
--noinput
--traceback
2>&1 |
sed
'/^Post-processed/d;/^Copying/d;/^$/d'
| indent
...
...
This diff is collapsed.
Click to expand it.
bin/steps/pip-install
+
1
−
1
View file @
ffb89feb
# Install dependencies with Pip.
puts-
step "Installing dependencies with pip
"
puts-
cmd "pip install -r requirements.txt
"
[ ! "$FRESH_PYTHON" ] && bpwatch start pip_install
[ "$FRESH_PYTHON" ] && bpwatch start pip_install_first
...
...
This diff is collapsed.
Click to expand it.
bin/utils
+
10
−
0
View file @
ffb89feb
...
...
@@ -26,6 +26,11 @@ cleanup() {
sed -e 's/\.\.\.\+/.../g' | sed -e '/already satisfied/Id' | sed -e '/Overwriting/Id' | sed -e '/python executable/Id' | sed -e '/no previously-included files/Id'
}
# Buildpack Indented line.
puts-line() {
echo " $@"
}
# Buildpack Steps.
puts-step() {
echo "-----> $@"
...
...
@@ -36,6 +41,11 @@ puts-warn() {
echo " ! $@"
}
# Buildpack Commands.
puts-cmd() {
echo " $ $@"
}
# Usage: $ set-env key value
set-env() {
echo "export $1=$2" >> $PROFILE_PATH
...
...
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