mirror of
https://github.com/kennethreitz/heroku-buildpack-python.git
synced 2026-06-05 23:10:16 +00:00
Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ae56342a81 | |||
| 3e49aeb940 | |||
| a91a5427de | |||
| ab69658efb | |||
| dfbe8ddaf5 | |||
| 60b9d1a562 | |||
| 3fa3f15d35 | |||
| a510c47b26 | |||
| 1972e6094e |
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
language: minimal
|
language: minimal
|
||||||
dist: bionic
|
dist: focal
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
- main
|
- main
|
||||||
|
|||||||
@@ -3,6 +3,15 @@
|
|||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
|
|
||||||
|
## v178 (2020-09-07)
|
||||||
|
|
||||||
|
- Python 3.5.10 is now available (CPython) (#1062).
|
||||||
|
|
||||||
|
## v177 (2020-08-18)
|
||||||
|
|
||||||
|
- Python 3.6.12 and 3.7.9 are now available (CPython) (#1054).
|
||||||
|
- The default Python version for new apps is now 3.6.12 (previously 3.6.11) (#1054).
|
||||||
|
|
||||||
## v176 (2020-08-12)
|
## v176 (2020-08-12)
|
||||||
|
|
||||||
- Rebuild the Python 3.4.10 archives with the correct version of Python (#1048).
|
- Rebuild the Python 3.4.10 archives with the correct version of Python (#1048).
|
||||||
|
|||||||
+1
-1
@@ -9,7 +9,7 @@ GEM
|
|||||||
excon
|
excon
|
||||||
moneta
|
moneta
|
||||||
multi_json (>= 1.9.2)
|
multi_json (>= 1.9.2)
|
||||||
heroku_hatchet (7.0.0)
|
heroku_hatchet (7.1.1)
|
||||||
excon (~> 0)
|
excon (~> 0)
|
||||||
platform-api (~> 3)
|
platform-api (~> 3)
|
||||||
rrrretry (~> 1)
|
rrrretry (~> 1)
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ remote: Compressing source files... done.
|
|||||||
remote: Building source:
|
remote: Building source:
|
||||||
remote:
|
remote:
|
||||||
remote: -----> Python app detected
|
remote: -----> Python app detected
|
||||||
remote: -----> Installing python-3.7.4
|
remote: -----> Installing python
|
||||||
remote: -----> Installing pip
|
remote: -----> Installing pip
|
||||||
remote: -----> Installing SQLite3
|
remote: -----> Installing SQLite3
|
||||||
remote: -----> Installing requirements with pip
|
remote: -----> Installing requirements with pip
|
||||||
@@ -44,7 +44,7 @@ A `requirements.txt` must be present at the root of your application's repositor
|
|||||||
|
|
||||||
To specify your python version, you also need a `runtime.txt` file - unless you are using the default Python runtime version.
|
To specify your python version, you also need a `runtime.txt` file - unless you are using the default Python runtime version.
|
||||||
|
|
||||||
Current default Python Runtime: Python 3.6.9
|
Current default Python Runtime: Python 3.6.12
|
||||||
|
|
||||||
Alternatively, you can provide a `setup.py` file, or a `Pipfile`.
|
Alternatively, you can provide a `setup.py` file, or a `Pipfile`.
|
||||||
Using `pipenv` will generate `runtime.txt` at build time if one of the field `python_version` or `python_full_version` is specified in the `requires` section of your `Pipfile`.
|
Using `pipenv` will generate `runtime.txt` at build time if one of the field `python_version` or `python_full_version` is specified in the `requires` section of your `Pipfile`.
|
||||||
@@ -63,8 +63,8 @@ Specify a Python Runtime
|
|||||||
Supported runtime options include:
|
Supported runtime options include:
|
||||||
|
|
||||||
- `python-3.8.5`
|
- `python-3.8.5`
|
||||||
- `python-3.7.8`
|
- `python-3.7.9`
|
||||||
- `python-3.6.11`
|
- `python-3.6.12`
|
||||||
- `python-2.7.18`
|
- `python-2.7.18`
|
||||||
|
|
||||||
## Tests
|
## Tests
|
||||||
|
|||||||
+4
-4
@@ -5,11 +5,11 @@
|
|||||||
# the env vars to subprocesses.
|
# the env vars to subprocesses.
|
||||||
# shellcheck disable=2034
|
# shellcheck disable=2034
|
||||||
|
|
||||||
DEFAULT_PYTHON_VERSION="python-3.6.11"
|
DEFAULT_PYTHON_VERSION="python-3.6.12"
|
||||||
LATEST_38="python-3.8.5"
|
LATEST_38="python-3.8.5"
|
||||||
LATEST_37="python-3.7.8"
|
LATEST_37="python-3.7.9"
|
||||||
LATEST_36="python-3.6.11"
|
LATEST_36="python-3.6.12"
|
||||||
LATEST_35="python-3.5.9"
|
LATEST_35="python-3.5.10"
|
||||||
LATEST_34="python-3.4.10"
|
LATEST_34="python-3.4.10"
|
||||||
LATEST_27="python-2.7.18"
|
LATEST_27="python-2.7.18"
|
||||||
LATEST_PYPY_36="pypy3.6-7.3.1"
|
LATEST_PYPY_36="pypy3.6-7.3.1"
|
||||||
|
|||||||
+2
-4
@@ -52,11 +52,9 @@ if curl --output /dev/null --silent --head --fail "$VENDORED_PYTHON"; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [[ "$PYTHON_VERSION" == $PY27* ]]; then
|
if [[ "$PYTHON_VERSION" == $PY27* ]]; then
|
||||||
|
puts-warn "$PYTHON_2_EOL_UPDATE"
|
||||||
|
echo " Learn More: https://devcenter.heroku.com/articles/python-2-7-eol-faq"
|
||||||
# security update note
|
# security update note
|
||||||
if [[ "$(date "+%Y")" -gt "2019" ]]; then
|
|
||||||
puts-warn "$PYTHON_2_EOL_UPDATE"
|
|
||||||
echo " Learn More: https://devcenter.heroku.com/articles/python-2-7-eol-faq"
|
|
||||||
fi
|
|
||||||
if [ "$PYTHON_VERSION" != "$LATEST_27" ]; then
|
if [ "$PYTHON_VERSION" != "$LATEST_27" ]; then
|
||||||
puts-warn "$ONLY_SUPPORTED_2_VERSION" "$LATEST_27"
|
puts-warn "$ONLY_SUPPORTED_2_VERSION" "$LATEST_27"
|
||||||
echo " Learn More: https://devcenter.heroku.com/articles/python-runtimes"
|
echo " Learn More: https://devcenter.heroku.com/articles/python-runtimes"
|
||||||
|
|||||||
Executable
+4
@@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Build Path: /app/.heroku/python/
|
||||||
|
|
||||||
|
source $(dirname $0)/python3
|
||||||
Executable
+4
@@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Build Path: /app/.heroku/python/
|
||||||
|
|
||||||
|
source $(dirname $0)/python3
|
||||||
Executable
+4
@@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Build Path: /app/.heroku/python/
|
||||||
|
|
||||||
|
source $(dirname $0)/python3
|
||||||
Regular → Executable
Vendored
+1
-1
@@ -1 +1 @@
|
|||||||
python-3.5.9
|
python-3.5.10
|
||||||
|
|||||||
+2
-10
@@ -19,11 +19,7 @@ testPython2() {
|
|||||||
echo $LATEST_27 > "runtime.txt"
|
echo $LATEST_27 > "runtime.txt"
|
||||||
compile "python2"
|
compile "python2"
|
||||||
assertCaptured $LATEST_27
|
assertCaptured $LATEST_27
|
||||||
if [[ $(date "+%Y") > "2019" ]]; then
|
assertCaptured "python-2-7-eol-faq";
|
||||||
assertCaptured "python-2-7-eol-faq";
|
|
||||||
else
|
|
||||||
assertNotCaptured "python-2-7-eol-faq";
|
|
||||||
fi
|
|
||||||
assertNotCaptured "security update"
|
assertNotCaptured "security update"
|
||||||
assertCaptured "Installing pip 20.1.1, setuptools 44.1.1 and wheel 0.34.2"
|
assertCaptured "Installing pip 20.1.1, setuptools 44.1.1 and wheel 0.34.2"
|
||||||
assertCaptured "Installing SQLite3"
|
assertCaptured "Installing SQLite3"
|
||||||
@@ -33,11 +29,7 @@ testPython2() {
|
|||||||
testPython2_warn() {
|
testPython2_warn() {
|
||||||
compile "python2_warn"
|
compile "python2_warn"
|
||||||
assertCaptured "python-2.7.15"
|
assertCaptured "python-2.7.15"
|
||||||
if [[ $(date "+%Y") > "2019" ]]; then
|
assertCaptured "python-2-7-eol-faq";
|
||||||
assertCaptured "python-2-7-eol-faq";
|
|
||||||
else
|
|
||||||
assertNotCaptured "python-2-7-eol-faq";
|
|
||||||
fi
|
|
||||||
assertCaptured "Only the latest version"
|
assertCaptured "Only the latest version"
|
||||||
assertCaptured "Installing SQLite3"
|
assertCaptured "Installing SQLite3"
|
||||||
assertCapturedSuccess
|
assertCapturedSuccess
|
||||||
|
|||||||
Reference in New Issue
Block a user