Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
heroku-buildpack-python
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Evili del Rio
heroku-buildpack-python
Commits
f9621add
Commit
f9621add
authored
Aug 17, 2018
by
Casey Faist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update indentation levels and messaging
Fix indentation levels more helpful messages about supported versions
parent
567cf2c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
8 deletions
+22
-8
bin/steps/python
bin/steps/python
+22
-8
No files found.
bin/steps/python
View file @
f9621add
...
...
@@ -12,17 +12,29 @@ if [[ $PYTHON_VERSION =~ ^python-2 ]]; then
puts-warn
"The latest version of Python 2 is
$LATEST_2
(you are using
$PYTHON_VERSION
, which is unsupported)."
puts-warn
"We recommend upgrading by specifying the latest version (
$LATEST_2
)."
echo
" Learn More: https://devcenter.heroku.com/articles/python-runtimes"
else
echo
" Using supported version of Python 2 (
$PYTHON_VERSION
)"
fi
else
if
[[
$PYTHON_VERSION
=
~ ^python-3.7
]]
&&
[[
"
$PYTHON_VERSION
"
!=
"
$LATEST_37
"
]]
;
then
puts-warn
"The latest version of Python 3.7 is
$LATEST_37
(you are using
$PYTHON_VERSION
, which is unsupported)."
puts-warn
"We recommend upgrading by specifying the latest version (
$LATEST_37
)."
echo
" Learn More: https://devcenter.heroku.com/articles/python-runtimes"
else
if
[[
"
$PYTHON_VERSION
"
!=
"
$LATEST_36
"
]]
;
then
puts-warn
"The latest version of Python 3.6 is
$LATEST_36
(you are using
$PYTHON_VERSION
, which is unsupported)."
puts-warn
"We recommend upgrading by specifying the latest version (
$LATEST_36
)."
if
[[
$PYTHON_VERSION
=
~ ^python-3
]]
;
then
if
[[
$PYTHON_VERSION
=
~ ^python-3.7
]]
;
then
if
[[
"
$PYTHON_VERSION
"
!=
"
$LATEST_37
"
]]
;
then
puts-warn
"The latest version of Python 3.7 is
$LATEST_37
(you are using
$PYTHON_VERSION
, which is unsupported)."
puts-warn
"We recommend upgrading by specifying the latest version (
$LATEST_37
)."
echo
" Learn More: https://devcenter.heroku.com/articles/python-runtimes"
else
echo
" Using supported version of Python 3.7 (
$PYTHON_VERSION
)"
fi
else
if
[[
$PYTHON_VERSION
=
~ ^python-3.6
]]
;
then
if
[[
"
$PYTHON_VERSION
"
!=
"
$LATEST_36
"
]]
;
then
puts-warn
"The latest version of Python 3.6 is
$LATEST_36
(you are using
$PYTHON_VERSION
, which is unsupported)."
puts-warn
"We recommend upgrading by specifying the latest version (
$LATEST_36
)."
echo
" Learn More: https://devcenter.heroku.com/articles/python-runtimes"
else
echo
" Using supported version of Python 3.6 (
$PYTHON_VERSION
)"
fi
fi
fi
fi
fi
...
...
@@ -49,6 +61,7 @@ if [ -f .heroku/python-version ]; then
fi
fi
if
[
!
"
$SKIP_INSTALL
"
]
;
then
puts-step
"Installing
$PYTHON_VERSION
"
...
...
@@ -71,6 +84,7 @@ if [ ! "$SKIP_INSTALL" ]; then
hash
-r
fi
# If Pip isn't up to date:
if
[
"
$FRESH_PYTHON
"
]
||
[[
!
$(
pip
--version
)
==
*
$PIP_UPDATE
*
]]
;
then
...
...
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