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
724acf28
Commit
724acf28
authored
May 31, 2018
by
Liu Junxiao
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'upstream/master'
parents
5ca720c9
dbeca147
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
27 additions
and
42 deletions
+27
-42
.travis.yml
.travis.yml
+6
-9
compile
bin/compile
+5
-5
collectstatic
bin/steps/collectstatic
+1
-1
pip-install
bin/steps/pip-install
+1
-1
pip-uninstall
bin/steps/pip-uninstall
+1
-1
pipenv
bin/steps/pipenv
+2
-2
Pipfile.lock
test/fixtures/pipenv-lock/Pipfile.lock
+11
-23
No files found.
.travis.yml
View file @
724acf28
...
...
@@ -2,15 +2,12 @@ language: bash
dist
:
trusty
jobs
:
include
:
# - stage: "Bash linting (shellcheck)"
# sudo: false
# addons:
# apt:
# sources:
# - debian-sid # Grab shellcheck from the Debian repo (o_O)
# packages:
# - shellcheck
# script: make check
-
stage
:
"
Bash
linting
(shellcheck)"
sudo
:
false
before_install
:
-
wget -c https://goo.gl/ZzKHFv -O - | tar -xvJ -C /tmp/
-
PATH="/tmp/shellcheck-latest:$PATH"
script
:
make check
-
stage
:
"
Stack
Tests"
services
:
docker
...
...
bin/compile
View file @
724acf28
...
...
@@ -221,7 +221,7 @@ fi
# Download / Install Python, from pre-build binaries available on Amazon S3.
# This step also bootstraps pip / setuptools.
let
start
=
$(
nowms
)
((
start
=
$(
nowms
)
)
)
# shellcheck source=bin/steps/python
source
"
$BIN_DIR
/steps/python"
mtime
"python.install.time"
"
${
start
}
"
...
...
@@ -233,7 +233,7 @@ source "$BIN_DIR/steps/pipenv"
# Uninstall removed dependencies with Pip.
# The buildpack will automatically remove any declared dependencies (in requirements.txt)
# that were explicitly removed. This machinery is a bit complex, but it is not complicated.
let
start
=
$(
nowms
)
((
start
=
$(
nowms
)
)
)
# shellcheck source=bin/steps/pip-uninstall
source
"
$BIN_DIR
/steps/pip-uninstall"
mtime
"pip.uninstall.time"
"
${
start
}
"
...
...
@@ -277,7 +277,7 @@ source "$BIN_DIR/steps/gdal"
# -----------
# Install dependencies with pip (where the magic happens).
let
start
=
$(
nowms
)
((
start
=
$(
nowms
)
)
)
# shellcheck source=bin/steps/pip-install
source
"
$BIN_DIR
/steps/pip-install"
mtime
"pip.install.time"
"
${
start
}
"
...
...
@@ -286,7 +286,7 @@ mtime "pip.install.time" "${start}"
# Note: this may only work on Python 2.7. I don't think many customers use this functionality,
# and it should probably be undocumented.
# (there's an import error on 3.6 that should hopefully be fixed upstream at some point)
let
start
=
$(
nowms
)
((
start
=
$(
nowms
)
)
)
sub_env
"
$BIN_DIR
/steps/nltk"
mtime
"nltk.download.time"
"
${
start
}
"
...
...
@@ -304,7 +304,7 @@ fi
# This is the cause for the majority of build failures on the Python platform.
# These failures are intentional — if collectstatic (which can be tricky, at times) fails,
# your build fails.
let
start
=
$(
nowms
)
((
start
=
$(
nowms
)
)
)
sub_env
"
$BIN_DIR
/steps/collectstatic"
mtime
"collectstatic.time"
"
${
start
}
"
...
...
bin/steps/collectstatic
View file @
724acf28
...
...
@@ -11,7 +11,7 @@
# - $DEBUG_COLLECTSTATIC: upon failure, print out environment variables.
# shellcheck source=bin/utils
source
$BIN_DIR
/utils
source
"
$BIN_DIR
/utils"
# Location of 'manage.py', if it exists.
MANAGE_FILE
=
$(
find
.
-maxdepth
3
-type
f
-name
'manage.py'
-printf
'%d\t%P\n'
|
sort
-nk1
|
cut
-f2
|
head
-1
)
...
...
bin/steps/pip-install
View file @
724acf28
#!/usr/bin/env bash
# shellcheck source=bin/utils
source
$BIN_DIR
/utils
source
"
$BIN_DIR
/utils"
if
[
!
"
$SKIP_PIP_INSTALL
"
]
;
then
...
...
bin/steps/pip-uninstall
View file @
724acf28
...
...
@@ -3,7 +3,7 @@
set
+e
# Install dependencies with Pip.
# shellcheck source=bin/utils
source
$BIN_DIR
/utils
source
"
$BIN_DIR
/utils"
if
[
!
"
$SKIP_PIP_INSTALL
"
]
;
then
...
...
bin/steps/pipenv
View file @
724acf28
...
...
@@ -3,7 +3,7 @@
# export CLINT_FORCE_COLOR=1
# export PIPENV_FORCE_COLOR=1
# shellcheck source=bin/utils
source
$BIN_DIR
/utils
source
"
$BIN_DIR
/utils"
set
-e
if
[[
-f
Pipfile.lock
]]
;
then
...
...
@@ -38,7 +38,7 @@ if [ ! "$SKIP_PIPENV_INSTALL" ]; then
export
PIP_EXTRA_INDEX_URL
fi
export
PIPENV_VERSION
=
"
11.8.2
"
export
PIPENV_VERSION
=
"
2018.5.18
"
# Install pipenv.
/app/.heroku/python/bin/pip
install
pipenv
==
$PIPENV_VERSION
--upgrade
&> /dev/null
...
...
test/fixtures/pipenv-lock/Pipfile.lock
View file @
724acf28
{
"_meta": {
"hash": {
"sha256": "397f2c55e3558ea57d292e3fc19b34e483770e5ec02cdedfb1f330680cd26635"
},
"host-environment-markers": {
"implementation_name": "cpython",
"implementation_version": "3.6.3",
"os_name": "posix",
"platform_machine": "x86_64",
"platform_python_implementation": "CPython",
"platform_release": "16.7.0",
"platform_system": "Darwin",
"platform_version": "Darwin Kernel Version 16.7.0: Thu Jun 15 17:36:27 PDT 2017; root:xnu-3789.70.16~2/RELEASE_X86_64",
"python_full_version": "3.6.3",
"python_version": "3.6",
"sys_platform": "darwin"
"sha256": "09ad9dcae1870ba083f43c5a05ed8943b23bd4c27e61a13ecf4e16d18500ad98"
},
"pipfile-spec": 6,
"requires": {},
"sources": [
{
"name": "pypi",
"url": "https://pypi.
python.
org/simple",
"url": "https://pypi.org/simple",
"verify_ssl": true
}
]
...
...
@@ -29,22 +16,23 @@
"default": {
"delegator.py": {
"hashes": [
"sha256:2
575c4adc923ad0b8fdaa433f862b2b7cf21982717fb23cc895fd8f249ea820c
",
"sha256:
495e11ada66648650171a6c9a188df4eb050b235abff8771f41ee8a064eb9ded
"
"sha256:2
d46966a7f484d271b09e2646eae1e9acadc4fdf2cb760c142f073e81c927d8d
",
"sha256:
58f3ea6fe36680e1d828e2e66e52844b826f186409dfee4436e42351b0e699fe
"
],
"version": "==0.0.13"
"index": "pypi",
"version": "==0.1.0"
},
"pexpect": {
"hashes": [
"sha256:
f853b52afaf3b064d29854771e2db509ef80392509bde2dd7a6ecf2dfc3f0018
",
"sha256:
3d132465a75b57aa818341c6521392a06cc660feb3988d7f1074f39bd23c9a92
"
"sha256:
9783f4644a3ef8528a6f20374eeb434431a650c797ca6d8df0d81e30fffdfa24
",
"sha256:
9f8eb3277716a01faafaba553d629d3d60a1a624c7cf45daa600d2148c30020c
"
],
"version": "==4.
2.1
"
"version": "==4.
5.0
"
},
"ptyprocess": {
"hashes": [
"sha256:e
8c43b5eee76b2083a9badde89fd1bbce6c8942d1045146e100b7b5e014f4f1a
",
"sha256:e
64193f0047ad603b71f202332ab5527c5e52aa7c8b609704fc28c0dc20c4365
"
"sha256:e
64193f0047ad603b71f202332ab5527c5e52aa7c8b609704fc28c0dc20c4365
",
"sha256:e
8c43b5eee76b2083a9badde89fd1bbce6c8942d1045146e100b7b5e014f4f1a
"
],
"version": "==0.5.2"
}
...
...
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