mirror of
https://github.com/kennethreitz/heroku-buildpack-python.git
synced 2026-06-05 23:10:16 +00:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 63e84aceb1 | |||
| eee8dd9a9e | |||
| 00e12b8ec2 | |||
| b56b063dd5 |
+6
-1
@@ -1,6 +1,11 @@
|
|||||||
# Python Buildpack Changelog
|
# Python Buildpack Changelog
|
||||||
|
|
||||||
# 139
|
# 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
|
Improvements to Python install messaging
|
||||||
|
|
||||||
|
|||||||
+15
-1
@@ -8,10 +8,24 @@ if [ ! "$SKIP_PIP_INSTALL" ]; then
|
|||||||
# Install dependencies with Pip.
|
# Install dependencies with Pip.
|
||||||
puts-step "Installing requirements with pip"
|
puts-step "Installing requirements with pip"
|
||||||
|
|
||||||
# Set PIP_EXTRA_INDEX_URL
|
# 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
|
if [[ -r $ENV_DIR/PIP_EXTRA_INDEX_URL ]]; then
|
||||||
PIP_EXTRA_INDEX_URL="$(cat "$ENV_DIR/PIP_EXTRA_INDEX_URL")"
|
PIP_EXTRA_INDEX_URL="$(cat "$ENV_DIR/PIP_EXTRA_INDEX_URL")"
|
||||||
export 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
|
fi
|
||||||
|
|
||||||
set +e
|
set +e
|
||||||
|
|||||||
+13
-1
@@ -35,10 +35,22 @@ if [ ! "$SKIP_PIPENV_INSTALL" ]; then
|
|||||||
# Skip pip install, later.
|
# Skip pip install, later.
|
||||||
export SKIP_PIP_INSTALL=1
|
export SKIP_PIP_INSTALL=1
|
||||||
|
|
||||||
# Set PIP_EXTRA_INDEX_URL
|
# 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
|
if [[ -r $ENV_DIR/PIP_EXTRA_INDEX_URL ]]; then
|
||||||
PIP_EXTRA_INDEX_URL="$(cat "$ENV_DIR/PIP_EXTRA_INDEX_URL")"
|
PIP_EXTRA_INDEX_URL="$(cat "$ENV_DIR/PIP_EXTRA_INDEX_URL")"
|
||||||
export 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
|
fi
|
||||||
|
|
||||||
export PIPENV_VERSION="2018.5.18"
|
export PIPENV_VERSION="2018.5.18"
|
||||||
|
|||||||
+1
@@ -0,0 +1 @@
|
|||||||
|
apache-airflow==1.10
|
||||||
@@ -1,5 +1,12 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
testAirflow() {
|
||||||
|
export SLUGIFY_USES_TEXT_UNIDECODE="yes"
|
||||||
|
compile "airflow"
|
||||||
|
assertCaptured "apache-airflow==1.10"
|
||||||
|
assertCapturedSuccess
|
||||||
|
}
|
||||||
|
|
||||||
testPipenv() {
|
testPipenv() {
|
||||||
compile "pipenv"
|
compile "pipenv"
|
||||||
assertCapturedSuccess
|
assertCapturedSuccess
|
||||||
|
|||||||
Reference in New Issue
Block a user