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
e094c546
Unverified
Commit
e094c546
authored
6 years ago
by
Casey
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #769 from heroku/pip-pipenv-pin
Pin pip version used by pipenv
parents
63e84ace
a7a59713
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGELOG.md
+5
-0
5 additions, 0 deletions
CHANGELOG.md
bin/steps/pip-install
+2
-2
2 additions, 2 deletions
bin/steps/pip-install
bin/steps/pipenv
+6
-4
6 additions, 4 deletions
bin/steps/pipenv
with
13 additions
and
6 deletions
CHANGELOG.md
+
5
−
0
View file @
e094c546
# Python Buildpack Changelog
# Python Buildpack Changelog
# 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)
# 140 (2018-10-09)
Add support for detecting SLUGIFY_USES_TEXT_UNIDECODE, which is required to
Add support for detecting SLUGIFY_USES_TEXT_UNIDECODE, which is required to
...
...
This diff is collapsed.
Click to expand it.
bin/steps/pip-install
+
2
−
2
View file @
e094c546
...
@@ -13,7 +13,7 @@ if [ ! "$SKIP_PIP_INSTALL" ]; then
...
@@ -13,7 +13,7 @@ if [ ! "$SKIP_PIP_INSTALL" ]; then
# and makes them accessible to the pip install process.
# and makes them accessible to the pip install process.
#
#
# PIP_EXTRA_INDEX_URL allows for an alternate pypi URL to be used.
# 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"
mcount
"buildvar.PIP_EXTRA_INDEX_URL"
...
@@ -22,7 +22,7 @@ if [ ! "$SKIP_PIP_INSTALL" ]; then
...
@@ -22,7 +22,7 @@ if [ ! "$SKIP_PIP_INSTALL" ]; then
set
+e
set
+e
# Set SLUGIFY_USES_TEXT_UNIDECODE, required for Airflow versions >=1.10
# Set SLUGIFY_USES_TEXT_UNIDECODE, required for Airflow versions >=1.10
if
[[
-r
$ENV_DIR
/SLUGIFY_USES_TEXT_UNIDECODE
]]
;
then
if
[[
-r
"
$ENV_DIR
/SLUGIFY_USES_TEXT_UNIDECODE
"
]]
;
then
SLUGIFY_USES_TEXT_UNIDECODE
=
"
$(
cat
"
$ENV_DIR
/SLUGIFY_USES_TEXT_UNIDECODE"
)
"
SLUGIFY_USES_TEXT_UNIDECODE
=
"
$(
cat
"
$ENV_DIR
/SLUGIFY_USES_TEXT_UNIDECODE"
)
"
export
SLUGIFY_USES_TEXT_UNIDECODE
export
SLUGIFY_USES_TEXT_UNIDECODE
mcount
"buildvar.SLUGIFY_USES_TEXT_UNIDECODE"
mcount
"buildvar.SLUGIFY_USES_TEXT_UNIDECODE"
...
...
This diff is collapsed.
Click to expand it.
bin/steps/pipenv
+
6
−
4
View file @
e094c546
...
@@ -20,7 +20,6 @@ if [[ -f Pipfile.lock ]]; then
...
@@ -20,7 +20,6 @@ if [[ -f Pipfile.lock ]]; then
export
SKIP_PIPENV_INSTALL
=
1
export
SKIP_PIPENV_INSTALL
=
1
export
SKIP_PIP_INSTALL
=
1
export
SKIP_PIP_INSTALL
=
1
fi
fi
fi
fi
fi
fi
fi
fi
...
@@ -40,14 +39,14 @@ if [ ! "$SKIP_PIPENV_INSTALL" ]; then
...
@@ -40,14 +39,14 @@ if [ ! "$SKIP_PIPENV_INSTALL" ]; then
# and makes them accessible to the pip install process.
# and makes them accessible to the pip install process.
#
#
# PIP_EXTRA_INDEX_URL allows for an alternate pypi URL to be used.
# 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"
mcount
"buildvar.PIP_EXTRA_INDEX_URL"
fi
fi
# Set SLUGIFY_USES_TEXT_UNIDECODE, required for Airflow versions >=1.10
# Set SLUGIFY_USES_TEXT_UNIDECODE, required for Airflow versions >=1.10
if
[[
-r
$ENV_DIR
/SLUGIFY_USES_TEXT_UNIDECODE
]]
;
then
if
[[
-r
"
$ENV_DIR
/SLUGIFY_USES_TEXT_UNIDECODE
"
]]
;
then
SLUGIFY_USES_TEXT_UNIDECODE
=
"
$(
cat
"
$ENV_DIR
/SLUGIFY_USES_TEXT_UNIDECODE"
)
"
SLUGIFY_USES_TEXT_UNIDECODE
=
"
$(
cat
"
$ENV_DIR
/SLUGIFY_USES_TEXT_UNIDECODE"
)
"
export
SLUGIFY_USES_TEXT_UNIDECODE
export
SLUGIFY_USES_TEXT_UNIDECODE
mcount
"buildvar.SLUGIFY_USES_TEXT_UNIDECODE"
mcount
"buildvar.SLUGIFY_USES_TEXT_UNIDECODE"
...
@@ -56,7 +55,10 @@ if [ ! "$SKIP_PIPENV_INSTALL" ]; then
...
@@ -56,7 +55,10 @@ if [ ! "$SKIP_PIPENV_INSTALL" ]; then
export
PIPENV_VERSION
=
"2018.5.18"
export
PIPENV_VERSION
=
"2018.5.18"
# Install pipenv.
# Install pipenv.
/app/.heroku/python/bin/pip
install
pipenv
==
$PIPENV_VERSION
--upgrade
&> /dev/null
# 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.
# Install the dependencies.
if
[[
!
-f
Pipfile.lock
]]
;
then
if
[[
!
-f
Pipfile.lock
]]
;
then
...
...
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