Skip to content

Commit e1c5432

Browse files
author
rinti
committed
Merge remote-tracking branch 'gh/master'
2 parents 8fc41d9 + 0ed4089 commit e1c5432

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+1051
-353
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
sudo: false
2+
script: exit 0

CHANGELOG.md

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
# Python Buildpack Changelog
2+
3+
## v80 (2016-04-05)
4+
5+
Improved pip-pop compatibility with latest pip releases.
6+
7+
## v79 (2016-03-22)
8+
9+
Compatibility improvements with heroku-apt-buildpack.
10+
11+
## v78 (2016-03-18)
12+
13+
Added automatic configuration of Gunicorn's `FORWARDED_ALLOW_IPS` setting.
14+
15+
Improved detection of libffi dependency when using bcrypt via `Django[bcrypt]`.
16+
17+
Improved GDAL support.
18+
19+
- GDAL dependency detection now checks for pygdal and is case-insensitive.
20+
- The vendored GDAL library has been updated to 1.11.1.
21+
- GDAL bootstrapping now also installs the GEOS and Proj.4 libraries.
22+
23+
Updated pip to 8.1.1 and setuptools to 20.3.
24+
25+
## v77 (2016-02-10)
26+
27+
Improvements to warnings and minor bugfix.
28+
29+
## v76 (2016-02-08)
30+
31+
Improved Django collectstatic support.
32+
33+
- `$ python manage.py collectstatic` will only be run if `Django` is present in `requirements.txt`.
34+
- If collectstatic fails, the build fails. Full traceback is provided.
35+
- `$DISABLE_COLLECTSTATIC`: skip collectstatic step completely (not new).
36+
- `$DEBUG_COLLECTSTATIC`: echo environment variables upon collectstatic failure.
37+
- Updated build output style.
38+
- New warning for outdated Python (via pip `InsecurePlatform` warning).
39+
40+
## v75 (2016-01-29)
41+
42+
Updated pip and Setuptools.
43+
44+
## v74 (2015-12-29)
45+
46+
Added warnings for lack of Procfile.
47+
48+
## v72 (2015-12-07)
49+
50+
Updated default Python to 2.7.11.
51+
52+
## v72 (2015-12-03)
53+
54+
Added friendly warnings for common build failures.
55+
56+
## v70 (2015-10-29)
57+
58+
Improved compatibility with multi and node.js buildpacks.
59+
60+
## v69 (2015-10-12)
61+
62+
Revert to v66.
63+
64+
## v68 (2015-10-12)
65+
66+
Fixed .heroku/venv error with modern apps.
67+
68+
## v67 (2015-10-12)
69+
70+
Further improved cache compatibility with multi and node.js buildpacks.
71+
72+
## v66 (2015-10-09)
73+
74+
Improved compatibility with multi and node.js buildpacks.
75+
76+
## v65 (2015-10-08)
77+
78+
Reverted v64.
79+
80+
## v64 (2015-10-08)
81+
82+
Improved compatibility with multi and node.js buildpacks.
83+
84+
## v63 (2015-10-08)
85+
86+
Updated Pip and Setuptools.
87+
88+
- Setuptools updated to v18.3.2
89+
- Pip updated to v7.1.2
90+
91+
92+
## v62 (2015-08-07)
93+
94+
Updated Pip and Setuptools.
95+
96+
- Setuptools updated to v18.1
97+
- Pip updated to v7.1.0
98+
99+
## v61 (2015-06-30)
100+
101+
Updated Pip and Setuptools.
102+
103+
- Setuptools updated to v18.0.1
104+
- Pip updated to v7.0.3
105+
106+
## v60 (2015-05-27)
107+
108+
Default Python is now latest 2.7.10. Updated Pip and Distribute.
109+
110+
- Default Python version is v2.7.10
111+
- Setuptools updated to v16.0
112+
- Pip updated to v7.0.1

Changelog.md

Lines changed: 0 additions & 130 deletions
This file was deleted.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License:
22

3-
Copyright (C) 2013 Heroku, Inc.
3+
Copyright (C) 2016 Heroku, Inc.
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
66

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,8 @@
33

44
tests:
55
./bin/test
6+
7+
tools:
8+
git clone https://github.com/kennethreitz/pip-pop.git
9+
mv pip-pop/bin/* vendor/pip-pop/
10+
rm -fr pip-pop

README.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
-![python](https://cloud.githubusercontent.com/assets/51578/13712821/b68a42ce-e793-11e5-96b0-d8eb978137ba.png)
2+
3+
# Heroku Buildpack: Python
4+
5+
This is the official [Heroku buildpack](https://devcenter.heroku.com/articles/buildpacks) for Python apps, powered by [pip](https://pip.pypa.io/) and other excellent software.
6+
7+
Recommended web frameworks include **Django** and **Flask**. The recommended webserver is **Gunicorn**. There are no restrictions around what software can be used (as long as it's pip-installable). Web processes must bind to `$PORT`, and only the HTTP protocol is permitted for incoming connections.
8+
9+
Some Python packages with obscure C dependencies (e.g. scipy) are [not compatible](https://devcenter.heroku.com/articles/python-c-deps).
10+
11+
See it in Action
12+
----------------
13+
14+
Deploying a Python application couldn't be easier:
15+
16+
$ ls
17+
Procfile requirements.txt web.py
18+
19+
$ heroku create --buildpack heroku/python
20+
21+
$ git push heroku master
22+
...
23+
-----> Python app detected
24+
-----> Installing python-2.7.12
25+
$ pip install -r requirements.txt
26+
Collecting requests (from -r requirements.txt (line 1))
27+
Downloading requests-2.10.0-py2.py3-none-any.whl (501kB)
28+
Installing collected packages: requests
29+
Successfully installed requests-2.10.0
30+
31+
-----> Discovering process types
32+
Procfile declares types -> (none)
33+
34+
A `requirements.txt` file must be present at the root of your application's repository.
35+
36+
You can also specify the latest production release of this buildpack for upcoming builds of an existing application:
37+
38+
$ heroku buildpacks:set heroku/python
39+
40+
41+
Specify a Python Runtime
42+
------------------------
43+
44+
Specific versions of the Python runtime can be specified with a `runtime.txt` file:
45+
46+
$ cat runtime.txt
47+
python-3.5.2
48+
49+
Runtime options include:
50+
51+
- `python-2.7.12`
52+
- `python-3.5.2`
53+
- `pypy-5.3.1` (unsupported, experimental)
54+
55+
Other [unsupported runtimes](https://github.com/heroku/heroku-buildpack-python/tree/master/builds/runtimes) are available as well. Use at your own risk.

Readme.md

Lines changed: 53 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,55 @@
1-
Heroku buildpack: Python with python-ldap
2-
=========================================
1+
-![python](https://cloud.githubusercontent.com/assets/51578/13712821/b68a42ce-e793-11e5-96b0-d8eb978137ba.png)
32

4-
This is a [Heroku buildpack](http://devcenter.heroku.com/articles/buildpacks) for Python apps with `python-ldap` package requirement, powered by [pip](http://www.pip-installer.org/).
3+
# Heroku Buildpack: Python
54

6-
Adds support for `python-ldap` package. Nothing more than `python-ldap` specified in requirements.txt file is needed.
5+
This is the official [Heroku buildpack](https://devcenter.heroku.com/articles/buildpacks) for Python apps, powered by [pip](https://pip.pypa.io/) and other excellent software.
6+
7+
Recommended web frameworks include **Django** and **Flask**. The recommended webserver is **Gunicorn**. There are no restrictions around what software can be used (as long as it's pip-installable). Web processes must bind to `$PORT`, and only the HTTP protocol is permitted for incoming connections.
8+
9+
Some Python packages with obscure C dependencies (e.g. scipy) are [not compatible](https://devcenter.heroku.com/articles/python-c-deps).
10+
11+
See it in Action
12+
----------------
13+
14+
Deploying a Python application couldn't be easier:
15+
16+
$ ls
17+
Procfile requirements.txt web.py
18+
19+
$ heroku create --buildpack heroku/python
20+
21+
$ git push heroku master
22+
...
23+
-----> Python app detected
24+
-----> Installing python-2.7.12
25+
$ pip install -r requirements.txt
26+
Collecting requests (from -r requirements.txt (line 1))
27+
Downloading requests-2.10.0-py2.py3-none-any.whl (501kB)
28+
Installing collected packages: requests
29+
Successfully installed requests-2.10.0
30+
31+
-----> Discovering process types
32+
Procfile declares types -> (none)
33+
34+
A `requirements.txt` file must be present at the root of your application's repository.
35+
36+
You can also specify the latest production release of this buildpack for upcoming builds of an existing application:
37+
38+
$ heroku buildpacks:set heroku/python
39+
40+
41+
Specify a Python Runtime
42+
------------------------
43+
44+
Specific versions of the Python runtime can be specified with a `runtime.txt` file:
45+
46+
$ cat runtime.txt
47+
python-3.5.2
48+
49+
Runtime options include:
50+
51+
- `python-2.7.12`
52+
- `python-3.5.2`
53+
- `pypy-5.3.1` (unsupported, experimental)
54+
55+
Other [unsupported runtimes](https://github.com/heroku/heroku-buildpack-python/tree/master/builds/runtimes) are available as well. Use at your own risk.

0 commit comments

Comments
 (0)