Compare commits

..

53 Commits

Author SHA1 Message Date
kennethreitz 4f1017f2fc Merge branch 'master' of github.com:heroku/heroku-buildpack-python 2017-09-26 11:43:45 -04:00
kennethreitz ff223597f3 Upgrades 🔝 (#475)
* fixed the bug for pypy-5.8.0

* changelog

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>

* python 2.7.14

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>

* pipfile > requirements.txt

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>

* check for python_full_version too

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>

* 2.7.14

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>

* warn when using an older version of python

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>

* requirements for anaconda buildpack

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>

* remove hashes for conda buildpack

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>

* improvements to pipenv python version detection

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>

* oops

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>

* oops

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>

* oops

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>

* echo not puts

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>

* try this

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>

* learn more

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>

* there we go

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>

* cleanups

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>

* cleanups

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>

* cleanups

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>

* unsupported

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>

* consistiency

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>

* be more specific

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>

* capitalize Pipfile.lock

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>

* attempt to force color

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>

* try this

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>

* try this

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>

* interactive

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>

* interactive

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>

* diagnose

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>

* try without -l

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>

* confirmed env working

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>

* just -c

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>

* use latest, to debug

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>

* no more bash

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>

* try …

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>

* don't use the git version of pipenv

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>

* oops

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>

* next version

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>

* 2.7.14

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>

* comment out force color bits

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>

* readme

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>

* more tests

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>

* more tests

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>

* ellipsis

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-09-26 11:42:14 -04:00
kennethreitz 2331a3131c ellipsis
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-09-26 11:34:39 -04:00
kennethreitz 372e79ab92 more tests
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-09-26 11:31:44 -04:00
kennethreitz d3f455ca3b more tests
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-09-26 11:30:19 -04:00
kennethreitz 8d11fddfd3 readme
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-09-26 11:28:55 -04:00
kennethreitz d7519075c6 comment out force color bits
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-09-26 11:27:31 -04:00
kennethreitz fb839075d1 2.7.14
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-09-26 11:27:08 -04:00
kennethreitz e5fcc9efd0 next version
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-09-26 11:06:07 -04:00
kennethreitz efb2f78a04 oops
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-09-26 11:04:14 -04:00
kennethreitz ffe0c305ee don't use the git version of pipenv
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-09-26 11:03:48 -04:00
kennethreitz 95cc7a4951 try …
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-09-26 10:56:14 -04:00
kennethreitz ebe3ff2e2f no more bash
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-09-26 10:54:00 -04:00
kennethreitz f9b74e8bfe use latest, to debug
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-09-26 10:35:25 -04:00
kennethreitz a1e31696f6 just -c
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-09-26 10:29:37 -04:00
kennethreitz 4e207e4bb8 confirmed env working
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-09-26 10:28:20 -04:00
kennethreitz e36d1a9406 try without -l
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-09-26 10:28:11 -04:00
kennethreitz 128a6dd0dc diagnose
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-09-26 10:27:10 -04:00
kennethreitz bf0aa7df8d interactive
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-09-26 10:25:20 -04:00
kennethreitz 41da9d6df8 interactive
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-09-26 10:25:11 -04:00
kennethreitz a3675f9c2a try this
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-09-26 10:20:06 -04:00
kennethreitz 3b3cb9e6c0 try this
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-09-26 10:18:58 -04:00
kennethreitz 7d3ecc7bb4 attempt to force color
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-09-26 10:14:41 -04:00
kennethreitz cb8ad83a06 capitalize Pipfile.lock
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-09-26 10:12:02 -04:00
kennethreitz 6fe93c9b9e be more specific
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-09-26 10:07:59 -04:00
kennethreitz 83e64a15dd consistiency
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-09-26 10:07:01 -04:00
kennethreitz 9634be2a40 unsupported
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-09-26 10:06:09 -04:00
kennethreitz f7488df407 cleanups
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-09-26 10:05:19 -04:00
kennethreitz 40a0640349 cleanups
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-09-26 10:03:30 -04:00
kennethreitz 0fec3dcc00 cleanups
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-09-26 10:01:37 -04:00
kennethreitz c05204d6b5 there we go
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-09-26 10:00:31 -04:00
kennethreitz 4db407f361 learn more
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-09-26 09:59:33 -04:00
kennethreitz 23929c97d0 try this
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-09-26 09:56:54 -04:00
kennethreitz a095dceb93 echo not puts
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-09-26 09:53:52 -04:00
kennethreitz 7a9a9787d4 oops
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-09-26 09:52:49 -04:00
kennethreitz 18c22492af oops
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-09-26 09:52:01 -04:00
kennethreitz 57e0a88585 oops
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-09-26 09:50:24 -04:00
kennethreitz 29aeefeba1 improvements to pipenv python version detection
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-09-26 09:49:41 -04:00
kennethreitz 2b7671369d remove hashes for conda buildpack
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-09-26 09:38:29 -04:00
kennethreitz a5b84e5ffb requirements for anaconda buildpack
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-09-26 09:37:52 -04:00
kennethreitz aeb4d075aa Merge branch 'master' of https://git.heroku.com/python-builder-cedar-14 into upgrades 2017-09-26 09:36:58 -04:00
kennethreitz 6010d1f3ed warn when using an older version of python
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-09-26 09:34:58 -04:00
kennethreitz fc4f686f1e 2.7.14
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-09-26 09:24:01 -04:00
kennethreitz f86ceaddfb check for python_full_version too
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-09-26 09:23:49 -04:00
kennethreitz c708a0af7d pipfile > requirements.txt
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-09-26 09:23:00 -04:00
kennethreitz a6ccde2bfd python 2.7.14
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-09-26 09:20:00 -04:00
kennethreitz 29775c020a changelog
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-09-24 23:20:01 -04:00
kennethreitz 50950c59df Pipenv improvements (#474)
* improvements to pipenv

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>

* capitalize

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-09-24 23:18:22 -04:00
Johannes Hoppe 9817eb149e Update gdal to version 2.2.1 (#452) 2017-09-08 12:36:53 -04:00
Johannes Hoppe a703d2febe Update proj.4 to version 4.9.3 (#451) 2017-09-08 12:28:05 -04:00
Johannes Hoppe e304405410 Update geos to version 3.6.2 (#450) 2017-09-08 12:20:14 -04:00
kennethreitz d380d949b7 Merge branch 'master' of https://git.heroku.com/python-builder-cedar-14 2017-08-01 14:38:14 -04:00
kennethreitz d6ccb1aa57 fixed the bug for pypy-5.8.0 2017-07-31 19:08:15 -04:00
42 changed files with 290 additions and 52 deletions
+11
View File
@@ -1,5 +1,16 @@
# Python Buildpack Changelog
# 119
Improvements to Pipenv support, warning on unsupported Python versions.
- We now warn when a user is not using latest 2.x or 3.x Python.
- Heroku now supports `[requires]` `python_full_version` in addition to `python_version`.
# 118
Improvements to Pipenv support.
# 117
Bug fix.
+9
View File
@@ -0,0 +1,9 @@
[[source]]
url = "https://pypi.python.org/simple"
verify_ssl = true
name = "pypi"
[dev-packages]
[packages]
"bob-builder" = "==0.0.13"
Generated
+52
View File
@@ -0,0 +1,52 @@
{
"_meta": {
"hash": {
"sha256": "36d17c46a8b1b844b3cae475f6f42d6c0a9e59b2a9685cbcdc0985656a7a129f"
},
"host-environment-markers": {
"implementation_name": "cpython",
"implementation_version": "3.6.2",
"os_name": "posix",
"platform_machine": "x86_64",
"platform_python_implementation": "CPython",
"platform_release": "16.7.0",
"platform_system": "Darwin",
"platform_version": "Darwin Kernel Version 16.7.0: Thu Jun 15 17:36:27 PDT 2017; root:xnu-3789.70.16~2/RELEASE_X86_64",
"python_full_version": "3.6.2",
"python_version": "3.6",
"sys_platform": "darwin"
},
"pipfile-spec": 6,
"requires": {},
"sources": [
{
"name": "pypi",
"url": "https://pypi.python.org/simple",
"verify_ssl": true
}
]
},
"default": {
"bob-builder": {
"hashes": [
"sha256:b4de49a8e436fcaf82236ea43f78413b4a4c92100726e382ab57b6bdfb38fe64",
"sha256:288e3e765c4890fe9a63ae52ac6b4a963c13fe508482c70ff701a5ae21b9a673"
],
"version": "==0.0.13"
},
"boto": {
"hashes": [
"sha256:13be844158d1bd80a94c972c806ec8381b9ea72035aa06123c5db6bc6a6f3ead",
"sha256:deb8925b734b109679e3de65856018996338758f4b916ff4fe7bb62b6d7000d1"
],
"version": "==2.48.0"
},
"docopt": {
"hashes": [
"sha256:49b3a825280bd66b3aa83585ef59c4a8c82f2c8a522dbe754a8bc8d08c85c491"
],
"version": "==0.6.2"
}
},
"develop": {}
}
+15 -5
View File
@@ -21,13 +21,13 @@ Deploying a Python application couldn't be easier:
$ heroku create --buildpack heroku/python
$ git push heroku master
...
-----> Python app detected
-----> Installing python-3.6.2
-----> Installing pip
-----> Installing requirements with latest pipenv...
-----> Installing requirements with latest pipenv
...
Installing dependencies from Pipfile...
Installing dependencies from Pipfile
-----> Discovering process types
Procfile declares types -> (none)
@@ -44,11 +44,21 @@ Specify a Python Runtime
Specific versions of the Python runtime can be specified with a `runtime.txt` file:
$ cat runtime.txt
python-2.7.13
python-2.7.14
Or, with a `Pipfile.lock` (generated from the following `Pipfile`):
[requires]
python_version = "2.7"
Or, more specifically:
[requires]
python_full_version = "2.7.14"
Runtime options include:
- `python-3.6.2`
- `python-2.7.13`
- `python-2.7.14`
- `pypy-5.7.1` (unsupported, experimental)
- `pypy3-5.5.1` (unsupported, experimental)
+4 -1
View File
@@ -35,10 +35,13 @@ export BUILD_DIR CACHE_DIR ENV_DIR
# Python defaults
DEFAULT_PYTHON_VERSION="python-3.6.2"
LATEST_3="python-3.6.2"
LATEST_2="python-2.7.14"
DEFAULT_PYTHON_STACK="cedar-14"
PIP_UPDATE="9.0.1"
export DEFAULT_PYTHON_VERSION DEFAULT_PYTHON_STACK PIP_UPDATE
export DEFAULT_PYTHON_VERSION DEFAULT_PYTHON_STACK PIP_UPDATE LATEST_2 LATEST_3
# Common Problem Warnings
WARNINGS_LOG=$(mktemp)
+1 -1
View File
@@ -15,7 +15,7 @@ source "$BIN_DIR/utils"
# Check that nltk was installed by pip, otherwise obviously not needed
if sp-grep -s nltk; then
puts-step "Downloading NLTK corpora..."
puts-step "Downloading NLTK corpora"
nltk_packages_definition="$BUILD_DIR/nltk.txt"
+10 -2
View File
@@ -1,15 +1,23 @@
#!/usr/bin/env bash
# export CLINT_FORCE_COLOR=1
# export PIPENV_FORCE_COLOR=1
# Pipenv support (Generate requriements.txt with pipenv).
if [[ -f Pipfile ]]; then
if [[ ! -f requirements.txt ]]; then
puts-step "Installing requirements with latest pipenv..."
puts-step "Installing requirements with latest Pipenv"
# Install pipenv.
/app/.heroku/python/bin/pip install pipenv --upgrade &> /dev/null
if [[ ! -f Pipfile.lock ]]; then
/app/.heroku/python/bin/pipenv install --system --skip-lock 2>&1 | indent
else
/app/.heroku/python/bin/pipenv install --system 2>&1 | indent
fi
# Install the dependencies.
/app/.heroku/python/bin/pipenv install --system --skip-lock 2>&1 | indent
# Skip pip install, later.
export SKIP_PIP_INSTALL=1
+15 -7
View File
@@ -6,19 +6,27 @@ if [[ -f $BUILD_DIR/Pipfile ]]; then
if [[ ! -f $BUILD_DIR/runtime.txt ]]; then
if [[ ! -f $BUILD_DIR/Pipfile.lock ]]; then
puts-warn "No 'pipfile.lock' found! We recommend you commit this into your repository."
puts-warn "No 'Pipfile.lock' found! We recommend you commit this into your repository."
fi
if [[ -f $BUILD_DIR/Pipfile.lock ]]; then
set +e
PYTHON=$(jq -r '._meta.requires.python_version' "$BUILD_DIR/Pipfile.lock")
PYTHON=$(jq -r '._meta.requires.python_full_version' "$BUILD_DIR/Pipfile.lock")
if [[ "$PYTHON" != "null" ]]; then
echo "python-$PYTHON" > "$BUILD_DIR/runtime.txt"
fi
set -e
if [ "$PYTHON" = 2.7 ]; then
echo "python-2.7.13" > "$BUILD_DIR/runtime.txt"
fi
if [ "$PYTHON" = 3.6 ]; then
echo "python-3.6.2" > "$BUILD_DIR/runtime.txt"
if [[ "$PYTHON" == "null" ]]; then
PYTHON=$(jq -r '._meta.requires.python_version' "$BUILD_DIR/Pipfile.lock")
if [ "$PYTHON" = 2.7 ]; then
echo "python-2.7.14" > "$BUILD_DIR/runtime.txt"
fi
if [ "$PYTHON" = 3.6 ]; then
echo "python-3.6.2" > "$BUILD_DIR/runtime.txt"
fi
fi
fi
fi
fi
+15
View File
@@ -4,6 +4,21 @@ set +e
runtime-fixer runtime.txt
PYTHON_VERSION=$(cat runtime.txt)
if [[ $PYTHON_VERSION =~ ^python-2 ]]; then
if [[ "$PYTHON_VERSION" != "$LATEST_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"
fi
else
if [[ "$PYTHON_VERSION" != "$LATEST_3" ]]; then
puts-warn "The latest version of Python 3 is $LATEST_3 (you are using $PYTHON_VERSION, which is unsupported)."
puts-warn "We recommend upgrading by specifying the latest version ($LATEST_3)."
echo " Learn More: https://devcenter.heroku.com/articles/python-runtimes"
fi
fi
if [[ "$STACK" != "$CACHED_PYTHON_STACK" ]]; then
puts-step "Stack has changed from $CACHED_PYTHON_STACK to $STACK, clearing cache"
rm -fr .heroku/python-stack .heroku/python-version .heroku/python .heroku/vendor
+1 -1
View File
@@ -3,7 +3,7 @@
OUT_PREFIX=$1
echo "Building SQLite..."
echo "Building SQLite"
SOURCE_TARBALL='https://www.sqlite.org/sqlite-autoconf-3070900.tar.gz'
+2 -2
View File
@@ -8,9 +8,9 @@ export PATH="/app/.heroku/python/bin/:$PATH"
hash -r
echo "Building gdal..."
echo "Building gdal"
VERSION="1.11.5"
VERSION="2.2.1"
SOURCE_TARBALL="http://download.osgeo.org/gdal/${VERSION}/gdal-${VERSION}.tar.gz"
curl -L $SOURCE_TARBALL | tar zx
+6 -4
View File
@@ -8,16 +8,18 @@ export PATH="/app/.heroku/python/bin/:$PATH"
hash -r
echo "Building geos..."
echo "Building geos"
SOURCE_TARBALL='http://download.osgeo.org/geos/geos-3.4.3.tar.bz2'
VERSION=3.6.2
SOURCE_TARBALL="http://download.osgeo.org/geos/geos-${VERSION}.tar.bz2"
curl -L $SOURCE_TARBALL | tar xj
cd geos-3.4.3
pushd "geos-${VERSION}"
./configure --prefix=$OUT_PREFIX --enable-static=no &&
make
make install
# Cleanup
cd ..
popd
+1 -1
View File
@@ -13,7 +13,7 @@ export PATH="/app/.heroku/python/bin/:$PATH"
hash -r
echo "Building libffi..."
echo "Building libffi"
SOURCE_TARBALL='ftp://sourceware.org/pub/libffi/libffi-3.1.tar.gz'
+2 -2
View File
@@ -20,7 +20,7 @@ dep_archive_name=${dep_dirname}.tar.gz
dep_url=https://launchpad.net/libmemcached/1.0/${dep_version}/+download/${dep_archive_name}
# SASL Support.
echo "-----> Building cyrus-sasl 2.1.26..."
echo "-----> Building cyrus-sasl 2.1.26"
curl -LO ftp://ftp.cyrusimap.org/cyrus-sasl/cyrus-sasl-2.1.26.tar.gz
# FTP doesn't play well with piping into tar xz
@@ -33,7 +33,7 @@ make -s -j 9
make install -s
popd
echo "-----> Building libmemcached ${dep_version}..."
echo "-----> Building libmemcached ${dep_version}"
curl -L ${dep_url} | tar xz
pushd ${dep_dirname}
+6 -5
View File
@@ -8,16 +8,17 @@ export PATH="/app/.heroku/python/bin/:$PATH"
hash -r
echo "Building gdal..."
echo "Building gdal"
SOURCE_TARBALL='http://download.osgeo.org/proj/proj-4.8.0.tar.gz'
VERSION=4.9.3
SOURCE_TARBALL="http://download.osgeo.org/proj/proj-${VERSION}.tar.gz"
curl -L $SOURCE_TARBALL | tar zx
cd proj-4.8.0
./configure --prefix=$OUT_PREFIX --enable-static=no &&
pushd "proj-${VERSION}"
./configure --prefix=$OUT_PREFIX --enable-static=no
make
make install
# Cleanup
cd ..
popd
+1 -1
View File
@@ -6,7 +6,7 @@
OUT_PREFIX=$1
echo "Building PyPy..."
echo "Building PyPy"
SOURCE_TARBALL='https://bitbucket.org/pypy/pypy/downloads/pypy2-v5.3.1-linux64.tar.bz2'
curl -L $SOURCE_TARBALL | tar jx
cp -R pypy2-v5.3.1-linux64/* $OUT_PREFIX
+1 -1
View File
@@ -6,7 +6,7 @@
OUT_PREFIX=$1
echo "Building PyPy..."
echo "Building PyPy"
SOURCE_TARBALL='https://bitbucket.org/pypy/pypy/downloads/pypy2-v5.6.0-linux64.tar.bz2'
curl -L $SOURCE_TARBALL | tar jx
cp -R pypy2-v5.6.0-linux64/* $OUT_PREFIX
+1 -1
View File
@@ -6,7 +6,7 @@
OUT_PREFIX=$1
echo "Building PyPy..."
echo "Building PyPy"
SOURCE_TARBALL='https://bitbucket.org/pypy/pypy/downloads/pypy2-v5.7.0-linux64.tar.bz2'
curl -L $SOURCE_TARBALL | tar jx
cp -R pypy2-v5.7.0-linux64/* $OUT_PREFIX
+1 -1
View File
@@ -6,7 +6,7 @@
OUT_PREFIX=$1
echo "Building PyPy..."
echo "Building PyPy"
SOURCE_TARBALL='https://bitbucket.org/pypy/pypy/downloads/pypy2-v5.7.1-linux64.tar.bz2'
curl -L $SOURCE_TARBALL | tar jx
cp -R pypy2-v5.7.1-linux64/* $OUT_PREFIX
+1 -1
View File
@@ -4,7 +4,7 @@
OUT_PREFIX=$1
echo "Building PyPy..."
echo "Building PyPy"
SOURCE_TARBALL='https://bitbucket.org/pypy/pypy/downloads/pypy2-v5.8.0-linux64.tar.bz2'
curl -L $SOURCE_TARBALL | tar jx
cp -R pypy2-v5.8.0-linux64/* $OUT_PREFIX
+1 -1
View File
@@ -6,7 +6,7 @@
OUT_PREFIX=$1
echo "Building PyPy..."
echo "Building PyPy"
SOURCE_TARBALL='https://bitbucket.org/pypy/pypy/downloads/pypy3-2.4.0-linux64.tar.bz2'
curl -L $SOURCE_TARBALL | tar jx
cp -R pypy3-2.4.0-linux64/* $OUT_PREFIX
+1 -1
View File
@@ -6,7 +6,7 @@
OUT_PREFIX=$1
echo "Building PyPy..."
echo "Building PyPy"
SOURCE_TARBALL='https://bitbucket.org/pypy/pypy/downloads/pypy3.3-v5.5.0-alpha-linux64.tar.bz2'
curl -L $SOURCE_TARBALL | tar jx
cp -R pypy3-v5.5.0-linux64/* $OUT_PREFIX
+1 -1
View File
@@ -4,7 +4,7 @@
OUT_PREFIX=$1
echo "Building PyPy..."
echo "Building PyPy"
SOURCE_TARBALL='https://bitbucket.org/pypy/pypy/downloads/pypy3-v5.7.1-linux64.tar.bz2'
curl -L $SOURCE_TARBALL | tar jx
cp -R pypy3-v5.7.1-linux64/* $OUT_PREFIX
+1 -1
View File
@@ -4,7 +4,7 @@
OUT_PREFIX=$1
echo "Building PyPy..."
echo "Building PyPy"
SOURCE_TARBALL='https://bitbucket.org/pypy/pypy/downloads/pypy3-v5.8.0-linux64.tar.bz2'
curl -L $SOURCE_TARBALL | tar jx
cp -R pypy3-v5.8.0-linux64/* $OUT_PREFIX
+1 -1
View File
@@ -4,7 +4,7 @@
OUT_PREFIX=$1
echo "Building Python..."
echo "Building Python"
SOURCE_TARBALL='https://python.org/ftp/python/2.7.10/Python-2.7.10.tgz'
curl -L $SOURCE_TARBALL | tar xz
mv Python-2.7.10 src
+1 -1
View File
@@ -4,7 +4,7 @@
OUT_PREFIX=$1
echo "Building Python..."
echo "Building Python"
SOURCE_TARBALL='https://python.org/ftp/python/2.7.11/Python-2.7.11.tgz'
curl -L $SOURCE_TARBALL | tar xz
mv Python-2.7.11 src
+1 -1
View File
@@ -4,7 +4,7 @@
OUT_PREFIX=$1
echo "Building Python..."
echo "Building Python"
SOURCE_TARBALL='https://python.org/ftp/python/2.7.12/Python-2.7.12.tgz'
curl -L $SOURCE_TARBALL | tar xz
mv Python-2.7.12 src
+1 -1
View File
@@ -4,7 +4,7 @@
OUT_PREFIX=$1
echo "Building Python..."
echo "Building Python"
SOURCE_TARBALL='https://python.org/ftp/python/2.7.13/Python-2.7.13.tgz'
curl -L $SOURCE_TARBALL | tar xz
mv Python-2.7.13 src
+19
View File
@@ -0,0 +1,19 @@
#!/usr/bin/env bash
# Build Path: /app/.heroku/python/
# Build Deps: libraries/sqlite
OUT_PREFIX=$1
echo "Building Python…"
SOURCE_TARBALL='https://python.org/ftp/python/2.7.14/Python-2.7.14.tgz'
curl -L $SOURCE_TARBALL | tar xz
mv Python-2.7.14 src
cd src
./configure --prefix=$OUT_PREFIX --enable-unicode=ucs4 --with-ensurepip=no
make
make install
# Remove unneeded test directories, similar to the official Docker Python images:
# https://github.com/docker-library/python
find "${OUT_PREFIX}" \( -type d -a \( -name test -o -name tests \) \) -exec rm -rf '{}' +
+1 -1
View File
@@ -4,7 +4,7 @@
OUT_PREFIX=$1
echo "Building Python..."
echo "Building Python"
SOURCE_TARBALL='https://python.org/ftp/python/2.7.9/Python-2.7.9.tgz'
curl -L $SOURCE_TARBALL | tar xz
mv Python-2.7.9 src
+1 -1
View File
@@ -4,7 +4,7 @@
OUT_PREFIX=$1
echo "Building Python..."
echo "Building Python"
SOURCE_TARBALL='https://python.org/ftp/python/3.5.2/Python-3.5.2.tgz'
curl -L $SOURCE_TARBALL | tar xz
mv Python-3.5.2 src
+1 -1
View File
@@ -4,7 +4,7 @@
OUT_PREFIX=$1
echo "Building Python..."
echo "Building Python"
SOURCE_TARBALL='https://python.org/ftp/python/3.5.3/Python-3.5.3.tgz'
curl -L $SOURCE_TARBALL | tar xz
mv Python-3.5.3 src
+1 -1
View File
@@ -4,7 +4,7 @@
OUT_PREFIX=$1
echo "Building Python..."
echo "Building Python"
SOURCE_TARBALL='https://python.org/ftp/python/3.6.0/Python-3.6.0.tgz'
curl -L $SOURCE_TARBALL | tar xz
mv Python-3.6.0 src
+1 -1
View File
@@ -4,7 +4,7 @@
OUT_PREFIX=$1
echo "Building Python..."
echo "Building Python"
SOURCE_TARBALL='https://python.org/ftp/python/3.6.1/Python-3.6.1.tgz'
curl -L $SOURCE_TARBALL | tar xz
mv Python-3.6.1 src
+1 -1
View File
@@ -4,7 +4,7 @@
OUT_PREFIX=$1
echo "Building Python..."
echo "Building Python"
SOURCE_TARBALL='https://python.org/ftp/python/3.6.2/Python-3.6.2.tgz'
curl -L $SOURCE_TARBALL | tar xz
mv Python-3.6.2 src
+2
View File
@@ -1 +1,3 @@
docopt==0.6.2
bob-builder==0.0.13
boto==2.48.0
+9
View File
@@ -0,0 +1,9 @@
[[source]]
url = "https://pypi.python.org/simple"
verify_ssl = true
[packages]
requests = "*"
[requires]
python_full_version = "3.6.2"
+23
View File
@@ -0,0 +1,23 @@
{
"default": {
"requests": {
"version": "==2.13.0",
"hash": "sha256:1a720e8862a41aa22e339373b526f508ef0c8988baf48b84d3fc891a8e237efb"
}
},
"develop": {},
"_meta": {
"sources": [
{
"url": "https://pypi.python.org/simple",
"verify_ssl": true
}
],
"requires": {
"python_version": "3.6"
},
"hash": {
"sha256": "5866990104fc8f27d13cdf01abc2a32c553129e03f666316cacc5b42d3e0884e"
}
}
}
+2
View File
@@ -0,0 +1,2 @@
[packages]
"delegator.py" = "*"
+53
View File
@@ -0,0 +1,53 @@
{
"_meta": {
"hash": {
"sha256": "397f2c55e3558ea57d292e3fc19b34e483770e5ec02cdedfb1f330680cd26635"
},
"host-environment-markers": {
"implementation_name": "cpython",
"implementation_version": "3.6.2",
"os_name": "posix",
"platform_machine": "x86_64",
"platform_python_implementation": "CPython",
"platform_release": "16.7.0",
"platform_system": "Darwin",
"platform_version": "Darwin Kernel Version 16.7.0: Thu Jun 15 17:36:27 PDT 2017; root:xnu-3789.70.16~2/RELEASE_X86_64",
"python_full_version": "3.6.2",
"python_version": "3.6",
"sys_platform": "darwin"
},
"pipfile-spec": 6,
"requires": {},
"sources": [
{
"name": "pypi",
"url": "https://pypi.python.org/simple",
"verify_ssl": true
}
]
},
"default": {
"delegator.py": {
"hashes": [
"sha256:2575c4adc923ad0b8fdaa433f862b2b7cf21982717fb23cc895fd8f249ea820c",
"sha256:495e11ada66648650171a6c9a188df4eb050b235abff8771f41ee8a064eb9ded"
],
"version": "==0.0.13"
},
"pexpect": {
"hashes": [
"sha256:f853b52afaf3b064d29854771e2db509ef80392509bde2dd7a6ecf2dfc3f0018",
"sha256:3d132465a75b57aa818341c6521392a06cc660feb3988d7f1074f39bd23c9a92"
],
"version": "==4.2.1"
},
"ptyprocess": {
"hashes": [
"sha256:e8c43b5eee76b2083a9badde89fd1bbce6c8942d1045146e100b7b5e014f4f1a",
"sha256:e64193f0047ad603b71f202332ab5527c5e52aa7c8b609704fc28c0dc20c4365"
],
"version": "==0.5.2"
}
},
"develop": {}
}
+1 -1
View File
@@ -1 +1 @@
python-2.7.13
python-2.7.14
+12 -1
View File
@@ -5,12 +5,23 @@ testPipenv() {
assertCapturedSuccess
}
testPipenvLock() {
compile "pipenv-lock"
assertCapturedSuccess
}
testPipenvVersion() {
compile "pipenv-version"
assertCaptured "3.6.2"
assertCapturedSuccess
}
testPipenvFullVersion() {
compile "pipenv-full-version"
assertCaptured "3.6.2"
assertCapturedSuccess
}
testNoRequirements() {
compile "no-requirements"
assertCapturedError
@@ -61,7 +72,7 @@ testPylibmc() {
testPython2() {
compile "python2"
assertCaptured "python-2.7.13"
assertCaptured "python-2.7.14"
assertCapturedSuccess
}