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
7d838341
Commit
7d838341
authored
Oct 13, 2018
by
jxltom
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'upstream/master'
parents
1caa6c92
e094c546
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
52 additions
and
6 deletions
+52
-6
CHANGELOG.md
CHANGELOG.md
+11
-1
pip-install
bin/steps/pip-install
+16
-2
pipenv
bin/steps/pipenv
+17
-3
requirements.txt
test/fixtures/airflow/requirements.txt
+1
-0
run
test/run
+7
-0
No files found.
CHANGELOG.md
View file @
7d838341
# Python Buildpack Changelog
# 139
# 141 (2018-10-10)
Switch to cautious upgrade for Pipenv install to ensure the pinned pip version
is used with Pipenv
# 140 (2018-10-09)
Add support for detecting SLUGIFY_USES_TEXT_UNIDECODE, which is required to
install Apache Airflow version 1.10 or higher.
# 139 (2018-10-08)
Improvements to Python install messaging
...
...
bin/steps/pip-install
View file @
7d838341
...
...
@@ -8,10 +8,24 @@ if [ ! "$SKIP_PIP_INSTALL" ]; then
# Install dependencies with Pip.
puts-step
"Installing requirements with pip"
# Set PIP_EXTRA_INDEX_URL
if
[[
-r
$ENV_DIR
/PIP_EXTRA_INDEX_URL
]]
;
then
# Set Pip env vars
# This reads certain environment variables set on the Heroku app config
# and makes them accessible to the pip install process.
#
# PIP_EXTRA_INDEX_URL allows for an alternate pypi URL to be used.
if
[[
-r
"
$ENV_DIR
/PIP_EXTRA_INDEX_URL"
]]
;
then
PIP_EXTRA_INDEX_URL
=
"
$(
cat
"
$ENV_DIR
/PIP_EXTRA_INDEX_URL"
)
"
export
PIP_EXTRA_INDEX_URL
mcount
"buildvar.PIP_EXTRA_INDEX_URL"
fi
set
+e
# Set SLUGIFY_USES_TEXT_UNIDECODE, required for Airflow versions >=1.10
if
[[
-r
"
$ENV_DIR
/SLUGIFY_USES_TEXT_UNIDECODE"
]]
;
then
SLUGIFY_USES_TEXT_UNIDECODE
=
"
$(
cat
"
$ENV_DIR
/SLUGIFY_USES_TEXT_UNIDECODE"
)
"
export
SLUGIFY_USES_TEXT_UNIDECODE
mcount
"buildvar.SLUGIFY_USES_TEXT_UNIDECODE"
fi
set
+e
...
...
bin/steps/pipenv
View file @
7d838341
...
...
@@ -20,7 +20,6 @@ if [[ -f Pipfile.lock ]]; then
export
SKIP_PIPENV_INSTALL
=
1
export
SKIP_PIP_INSTALL
=
1
fi
fi
fi
fi
...
...
@@ -32,15 +31,30 @@ if [ ! "$SKIP_PIPENV_INSTALL" ]; then
# Measure that we're using Pipenv.
mcount
"tool.pipenv"
# Set PIP_EXTRA_INDEX_URL
if
[[
-r
$ENV_DIR
/PIP_EXTRA_INDEX_URL
]]
;
then
# Set Pip env vars
# This reads certain environment variables set on the Heroku app config
# and makes them accessible to the pip install process.
#
# PIP_EXTRA_INDEX_URL allows for an alternate pypi URL to be used.
if
[[
-r
"
$ENV_DIR
/PIP_EXTRA_INDEX_URL"
]]
;
then
PIP_EXTRA_INDEX_URL
=
"
$(
cat
"
$ENV_DIR
/PIP_EXTRA_INDEX_URL"
)
"
export
PIP_EXTRA_INDEX_URL
mcount
"buildvar.PIP_EXTRA_INDEX_URL"
fi
# Set SLUGIFY_USES_TEXT_UNIDECODE, required for Airflow versions >=1.10
if
[[
-r
"
$ENV_DIR
/SLUGIFY_USES_TEXT_UNIDECODE"
]]
;
then
SLUGIFY_USES_TEXT_UNIDECODE
=
"
$(
cat
"
$ENV_DIR
/SLUGIFY_USES_TEXT_UNIDECODE"
)
"
export
SLUGIFY_USES_TEXT_UNIDECODE
mcount
"buildvar.SLUGIFY_USES_TEXT_UNIDECODE"
fi
export
PIPENV_VERSION
=
"11.9.0"
# Install pipenv.
# Due to weird old pip behavior and pipenv behavior, pipenv upgrades pip
# to latest if only --upgrade is specified. Specify upgrade strategy to
# avoid this eager behavior.
/app/.heroku/python/bin/pip
install
pipenv
==
$PIPENV_VERSION
--upgrade
--upgrade-strategy
only-if-needed &> /dev/null
# Install the dependencies.
...
...
test/fixtures/airflow/requirements.txt
0 → 100644
View file @
7d838341
apache-airflow==1.10
test/run
View file @
7d838341
#!/usr/bin/env bash
testAirflow
()
{
export
SLUGIFY_USES_TEXT_UNIDECODE
=
"yes"
compile
"airflow"
assertCaptured
"apache-airflow==1.10"
assertCapturedSuccess
}
testPipenv
()
{
compile
"pipenv"
assertCapturedSuccess
...
...
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