File tree Expand file tree Collapse file tree 5 files changed +42
-3
lines changed Expand file tree Collapse file tree 5 files changed +42
-3
lines changed Original file line number Diff line number Diff line change 1
1
# Python Buildpack Changelog
2
2
3
- # 139
3
+ # 140 (2018-10-09)
4
+
5
+ Add support for detecting SLUGIFY_USES_TEXT_UNIDECODE, which is required to
6
+ install Apache Airflow version 1.10 or higher.
7
+
8
+ # 139 (2018-10-08)
4
9
5
10
Improvements to Python install messaging
6
11
Original file line number Diff line number Diff line change @@ -8,10 +8,24 @@ if [ ! "$SKIP_PIP_INSTALL" ]; then
8
8
# Install dependencies with Pip.
9
9
puts-step " Installing requirements with pip"
10
10
11
- # Set PIP_EXTRA_INDEX_URL
11
+ # Set Pip env vars
12
+ # This reads certain environment variables set on the Heroku app config
13
+ # and makes them accessible to the pip install process.
14
+ #
15
+ # PIP_EXTRA_INDEX_URL allows for an alternate pypi URL to be used.
12
16
if [[ -r $ENV_DIR /PIP_EXTRA_INDEX_URL ]]; then
13
17
PIP_EXTRA_INDEX_URL=" $( cat " $ENV_DIR /PIP_EXTRA_INDEX_URL" ) "
14
18
export PIP_EXTRA_INDEX_URL
19
+ mcount " buildvar.PIP_EXTRA_INDEX_URL"
20
+ fi
21
+
22
+ set +e
23
+
24
+ # Set SLUGIFY_USES_TEXT_UNIDECODE, required for Airflow versions >=1.10
25
+ if [[ -r $ENV_DIR /SLUGIFY_USES_TEXT_UNIDECODE ]]; then
26
+ SLUGIFY_USES_TEXT_UNIDECODE=" $( cat " $ENV_DIR /SLUGIFY_USES_TEXT_UNIDECODE" ) "
27
+ export SLUGIFY_USES_TEXT_UNIDECODE
28
+ mcount " buildvar.SLUGIFY_USES_TEXT_UNIDECODE"
15
29
fi
16
30
17
31
set +e
Original file line number Diff line number Diff line change @@ -35,10 +35,22 @@ if [ ! "$SKIP_PIPENV_INSTALL" ]; then
35
35
# Skip pip install, later.
36
36
export SKIP_PIP_INSTALL=1
37
37
38
- # Set PIP_EXTRA_INDEX_URL
38
+ # Set Pip env vars
39
+ # This reads certain environment variables set on the Heroku app config
40
+ # and makes them accessible to the pip install process.
41
+ #
42
+ # PIP_EXTRA_INDEX_URL allows for an alternate pypi URL to be used.
39
43
if [[ -r $ENV_DIR /PIP_EXTRA_INDEX_URL ]]; then
40
44
PIP_EXTRA_INDEX_URL=" $( cat " $ENV_DIR /PIP_EXTRA_INDEX_URL" ) "
41
45
export PIP_EXTRA_INDEX_URL
46
+ mcount " buildvar.PIP_EXTRA_INDEX_URL"
47
+ fi
48
+
49
+ # Set SLUGIFY_USES_TEXT_UNIDECODE, required for Airflow versions >=1.10
50
+ if [[ -r $ENV_DIR /SLUGIFY_USES_TEXT_UNIDECODE ]]; then
51
+ SLUGIFY_USES_TEXT_UNIDECODE=" $( cat " $ENV_DIR /SLUGIFY_USES_TEXT_UNIDECODE" ) "
52
+ export SLUGIFY_USES_TEXT_UNIDECODE
53
+ mcount " buildvar.SLUGIFY_USES_TEXT_UNIDECODE"
42
54
fi
43
55
44
56
export PIPENV_VERSION=" 2018.5.18"
Original file line number Diff line number Diff line change
1
+ apache-airflow == 1.10
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
+ testAirflow () {
4
+ export SLUGIFY_USES_TEXT_UNIDECODE=" yes"
5
+ compile " airflow"
6
+ assertCaptured " apache-airflow==1.10"
7
+ assertCapturedSuccess
8
+ }
9
+
3
10
testPipenv () {
4
11
compile " pipenv"
5
12
assertCapturedSuccess
You can’t perform that action at this time.
0 commit comments