mirror of
https://github.com/kennethreitz/heroku-buildpack-python.git
synced 2026-06-05 23:10:16 +00:00
Compare commits
36 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 027d49eb58 | |||
| 49597f22ca | |||
| 4bb8f59f2c | |||
| d4b6b0190d | |||
| 2c2cbc4653 | |||
| d0629cd6ef | |||
| 398a0fb202 | |||
| 5bf80a2270 | |||
| 61609930c1 | |||
| 0fa27b7b0d | |||
| cc247753e5 | |||
| 4da1ca71b5 | |||
| 3d70b2e9ff | |||
| 87e9fb2ccc | |||
| 0d61f83269 | |||
| e12ad47397 | |||
| 307cb13159 | |||
| 156da405e0 | |||
| ea90db6d13 | |||
| 56f7ccc511 | |||
| a2c72f77f9 | |||
| 93a5144033 | |||
| ac76968c90 | |||
| 2b3a90ec0c | |||
| 48a368ac71 | |||
| 4d2e74b411 | |||
| d8b37dcaf8 | |||
| 312b9ca6de | |||
| 4e8831a3a3 | |||
| c402d37451 | |||
| 563a9c9187 | |||
| b1e3256128 | |||
| ac93a57492 | |||
| 5828fbfe7d | |||
| b7d8aa4d7d | |||
| a6510f0f77 |
+2
-1
@@ -1 +1,2 @@
|
||||
* @heroku/languages
|
||||
* @heroku/languages
|
||||
* @heroku/buildpack-maintainers
|
||||
|
||||
+16
-2
@@ -2,13 +2,27 @@
|
||||
|
||||
# Master
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# 168 (2020-04-06)
|
||||
|
||||
- Doc: Update Readme with version numbers
|
||||
- update Code Owners to include the Heroku Buildpack Maintainers team
|
||||
- Deprecation warning: BUILD_WITH_GEO_LIBRARIES is now deprecated. See warning for details.
|
||||
- Clean up build log output
|
||||
- Update Python versions in README to match docs
|
||||
- Django version detection fixed, link updated
|
||||
|
||||
# 167 (2020-03-26)
|
||||
|
||||
- Add failcase for cache busting
|
||||
- Bugfix: Clearing pip dependencies
|
||||
|
||||
# 166 (2020-03-05)
|
||||
|
||||
- Correct ftp to https in vendored file
|
||||
- Warn for Django 1.11 approaching EOL, provide link to roadmap
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# 165 (2020-02-27)
|
||||
|
||||
- Python 3.8.2 now available.
|
||||
|
||||
@@ -61,8 +61,9 @@ Specify a Python Runtime
|
||||
|
||||
Supported runtime options include:
|
||||
|
||||
- `python-3.7.4`
|
||||
- `python-3.6.9`
|
||||
- `python-3.8.2`
|
||||
- `python-3.7.6`
|
||||
- `python-3.6.10`
|
||||
- `python-2.7.17`
|
||||
|
||||
## Tests
|
||||
|
||||
@@ -22,6 +22,10 @@ source "$BIN_DIR/utils"
|
||||
if (pip-grep -s requirements.txt GDAL gdal pygdal &> /dev/null) then
|
||||
|
||||
if [ ! -f ".heroku/vendor/bin/gdalserver" ]; then
|
||||
|
||||
puts-warn "The vendored GDAL package in the Heroku Python Buildpack now deprecated."
|
||||
puts-warn "To enable GDAL use an alternative buildpack is available here - https://github.com/heroku/heroku-geo-buildpack"
|
||||
|
||||
echo "-----> Noticed GDAL. Bootstrapping gdal."
|
||||
mkdir -p .heroku/vendor
|
||||
# Download and extract cryptography into target vendor directory.
|
||||
|
||||
@@ -24,6 +24,9 @@ source "$BIN_DIR/utils"
|
||||
if [[ "$BUILD_WITH_GEO_LIBRARIES" ]]; then
|
||||
mcount "buildvar.BUILD_WITH_GEO_LIBRARIES"
|
||||
|
||||
puts-warn "The GDAL, GEOS and PROJ binaries and BUILD_WITH_GEO_LIBRARIES functonality are now deprecated."
|
||||
puts-warn "An alternative buildpack to enable GDAL, GEOS and PROJ use is available here - https://github.com/heroku/heroku-geo-buildpack"
|
||||
|
||||
if [ ! -f ".heroku/vendor/bin/proj" ]; then
|
||||
echo "-----> Bootstrapping gdal, geos, proj."
|
||||
mkdir -p .heroku/vendor
|
||||
|
||||
@@ -38,10 +38,10 @@ if [ ! "$SKIP_PIP_INSTALL" ]; then
|
||||
mcount "failure.none-version"
|
||||
fi
|
||||
|
||||
if grep -q 'django==1.*' requirements.txt; then
|
||||
if grep -qi '^django==1.*' requirements.txt; then
|
||||
puts-warn "Your Django version is nearing the end of its community support."
|
||||
puts-warn "Upgrade to continue to receive security updates and for the best experience with Django."
|
||||
puts-warn "For more information, check out https://www.djangoproject.com/weblog/2015/jun/25/roadmap/"
|
||||
puts-warn "For more information, check out https://www.djangoproject.com/download/#supported-versions"
|
||||
fi
|
||||
|
||||
if [ ! -f "$BUILD_DIR/.heroku/python/bin/pip" ]; then
|
||||
|
||||
+1
-1
@@ -110,7 +110,7 @@ if [[ ! -f "$CACHE_DIR/.heroku/requirements.txt" ]]; then
|
||||
fi
|
||||
else
|
||||
# IF there IS a cached directory, check for differences with the new one
|
||||
if ! diff "$BUILD_DIR/requirements.txt" "$CACHE_DIR/.heroku/requirements.txt"; then
|
||||
if ! diff "$BUILD_DIR/requirements.txt" "$CACHE_DIR/.heroku/requirements.txt" &> /dev/null; then
|
||||
puts-step "Clearing cached dependencies"
|
||||
# if there are any differences, clear the Python cache
|
||||
# Installing Python over again does not take noticably more time
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
pwned-passwords-django==1.4
|
||||
Django==2.1
|
||||
+1
@@ -0,0 +1 @@
|
||||
Django==1.11
|
||||
@@ -23,6 +23,14 @@ testGEOS() {
|
||||
assertCapturedSuccess
|
||||
}
|
||||
|
||||
testGEOSDeprecation() {
|
||||
export BUILD_WITH_GEO_LIBRARIES=1
|
||||
compile "geos"
|
||||
assertCaptured " ! The GDAL, GEOS and PROJ binaries and BUILD_WITH_GEO_LIBRARIES functonality are now deprecated.
|
||||
! An alternative buildpack to enable GDAL, GEOS and PROJ use is available here - https://github.com/heroku/heroku-geo-buildpack"
|
||||
assertCapturedSuccess
|
||||
}
|
||||
|
||||
testNLTK() {
|
||||
# NOTE: This is a RuntimeWarning emitted by Python 3's runpy.py script
|
||||
# which is what is used when you call `python -m <module>`. This is due to
|
||||
|
||||
@@ -74,6 +74,18 @@ testNoRequirements() {
|
||||
assertCapturedError
|
||||
}
|
||||
|
||||
testWarnOldDjango() {
|
||||
compile "old-django"
|
||||
assertCaptured "Your Django version is nearing the end of its community support."
|
||||
assertCapturedSuccess
|
||||
}
|
||||
|
||||
testDontWarnOldDjango() {
|
||||
compile "not-old-django"
|
||||
assertNotCaptured "Your Django version is nearing the end of its community support."
|
||||
assertCapturedSuccess
|
||||
}
|
||||
|
||||
pushd $(dirname 0) >/dev/null
|
||||
popd >/dev/null
|
||||
|
||||
|
||||
Reference in New Issue
Block a user