mirror of
https://github.com/kennethreitz/heroku-buildpack-python.git
synced 2026-06-05 15:00:19 +00:00
Merge branch 'master' into upgrade-to-pip-19
This commit is contained in:
+6
-2
@@ -2,12 +2,16 @@
|
||||
|
||||
# Master
|
||||
|
||||
- Download get-pip.py to tmpdir instead of root dir
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# 163 (2019-12-23)
|
||||
|
||||
- New pythons released:
|
||||
Python 3.8.1, 3.7.6, 3.6.10 (CPython)
|
||||
Beta Release: Pypy 2.7 and 3.6, version 7.2.0
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# 162 (2019-12-06)
|
||||
|
||||
- Bug fix: fragile sqlite3 install
|
||||
|
||||
+4
-3
@@ -128,9 +128,10 @@ fi
|
||||
|
||||
# Heroku uses the get-pip utility maintained by the Python community to vendor Pip.
|
||||
# https://github.com/pypa/get-pip
|
||||
GETPIP="https://lang-python.s3.amazonaws.com/etc/get-pip.py"
|
||||
GETPIP_URL="https://lang-python.s3.amazonaws.com/etc/get-pip.py"
|
||||
GETPIP_PY="${TMPDIR:-/tmp}/get-pip.py"
|
||||
|
||||
if ! curl -s "${GETPIP}" -o "$ROOT_DIR/get-pip.py" &> /dev/null; then
|
||||
if ! curl -s "${GETPIP_URL}" -o "$GETPIP_PY" &> /dev/null; then
|
||||
mcount "failure.python.get-pip"
|
||||
echo "Failed to pull down get-pip"
|
||||
exit 1
|
||||
@@ -145,7 +146,7 @@ if [ "$FRESH_PYTHON" ] || [[ ! $(pip --version) == *$PIP_UPDATE* ]]; then
|
||||
rm -fr /app/.heroku/python/lib/python*/site-packages/pip-*
|
||||
rm -fr /app/.heroku/python/lib/python*/site-packages/setuptools-*
|
||||
|
||||
/app/.heroku/python/bin/python "$ROOT_DIR/get-pip.py" pip=="$PIP_UPDATE" &> /dev/null
|
||||
/app/.heroku/python/bin/python "$GETPIP_PY" pip=="$PIP_UPDATE" &> /dev/null
|
||||
/app/.heroku/python/bin/pip install "$ROOT_DIR/vendor/setuptools-39.0.1-py2.py3-none-any.whl" &> /dev/null
|
||||
fi
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ describe "Python!!!!!!!!!!!" do
|
||||
it "🐍" do
|
||||
Hatchet::Runner.new('python-getting-started', stack: DEFAULT_STACK).deploy do |app|
|
||||
expect(app.output).to match(/Installing pip/)
|
||||
expect(app.run('python -V')).to match(/3.6.9/)
|
||||
expect(app.run('python -V')).to match(/3.6.10/)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user