This repository has been archived by the owner on May 21, 2020. It is now read-only.
forked from tornadoweb/tornado
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of git://github.com/facebook/tornado into strea…
…mbody
- Loading branch information
Showing
37 changed files
with
1,146 additions
and
298 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Test coverage configuration. | ||
# Usage: | ||
# pip install coverage | ||
# coverage erase # clears previous data if any | ||
# coverage run -m tornado.test.runtests | ||
# coverage report # prints to stdout | ||
# coverage html # creates ./htmlcov/*.html including annotated source | ||
[run] | ||
branch = true | ||
source = tornado | ||
omit = | ||
tornado/platform/* | ||
tornado/test/* | ||
*/_auto2to3* | ||
|
||
[report] | ||
# Ignore missing source files, i.e. fake template-generated "files" | ||
ignore_errors = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
*.pyc | ||
*.so | ||
*~ | ||
build | ||
dist/ | ||
build/ | ||
/dist/ | ||
MANIFEST | ||
tornado.egg-info | ||
/tornado.egg-info/ | ||
_auto2to3* | ||
.tox | ||
.tox/ | ||
.vagrant | ||
/.coverage | ||
/htmlcov/ | ||
/env/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Frozen pip requirements for tools used in the development of tornado | ||
|
||
# Tornado's optional dependencies | ||
MySQL-python==1.2.3 | ||
Twisted==11.1.0 | ||
pycurl==7.19.0 | ||
|
||
# Other useful tools | ||
Sphinx==1.1.2 | ||
coverage==3.5.1 | ||
pyflakes==0.5.0 | ||
tox==1.3 | ||
virtualenv==1.7 | ||
|
||
# Indirect dependencies | ||
Jinja2==2.6 | ||
Pygments==1.4 | ||
docutils==0.8.1 | ||
py==1.4.6 | ||
wsgiref==0.1.2 | ||
zope.interface==3.8.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Vagrant::Config.run do |config| | ||
config.vm.box = "ubuntu11.04" | ||
|
||
config.vm.network "172.19.1.4" | ||
config.vm.share_folder("tornado", "/tornado", "../../..", :nfs=> true) | ||
|
||
config.vm.provision :shell, :path => "setup.sh" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
# Ubuntu 10.10+ do some extra permissions checks for hard links. | ||
# Vagrant's nfs shared folders come through with funny uids, but | ||
# attempts to access them still work despite the visible permissions | ||
# being incorrect. | ||
sysctl -w kernel.yama.protected_nonaccess_hardlinks=0 | ||
|
||
apt-get update | ||
|
||
# libcurl4-gnutls-dev is the default if you ask for libcurl4-dev, but it | ||
# has bugs that make our tests deadlock (the relevant tests detect this and | ||
# disable themselves, but it means that to get full coverage we have to use | ||
# the openssl version). | ||
# The oddly-named python-software-properties includes add-apt-repository. | ||
APT_PACKAGES=" | ||
python-pip | ||
python-dev | ||
libmysqlclient-dev | ||
libcurl4-openssl-dev | ||
python-software-properties | ||
" | ||
|
||
apt-get -y install $APT_PACKAGES | ||
|
||
|
||
# Ubuntu 11.04 has python 2.7 as default; install more from here. | ||
# The most important thing is to have both 2.5 and a later version so we | ||
# test with both tornado.epoll and 2.6+ stdlib's select.epoll. | ||
add-apt-repository ppa:fkrull/deadsnakes | ||
apt-get update | ||
|
||
DEADSNAKES_PACKAGES=" | ||
python2.5 | ||
python2.5-dev | ||
python2.6 | ||
python2.6-dev | ||
python3.2 | ||
python3.2-dev | ||
" | ||
apt-get -y install $DEADSNAKES_PACKAGES | ||
|
||
|
||
PIP_PACKAGES=" | ||
virtualenv | ||
tox | ||
MySQL-python | ||
pycurl | ||
twisted | ||
" | ||
|
||
pip install $PIP_PACKAGES | ||
|
||
/tornado/maint/vm/shared-setup.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
[tox] | ||
envlist = py27-full, py25-full, py32, py25, py26, py26-full, py27 | ||
setupdir=/tornado | ||
toxworkdir=/home/vagrant/tox-tornado | ||
|
||
[testenv] | ||
commands = python -m tornado.test.runtests {posargs:} | ||
|
||
[testenv:py25] | ||
basepython = python2.5 | ||
deps = simplejson | ||
|
||
[testenv:py25-full] | ||
basepython = python2.5 | ||
deps = | ||
MySQL-python | ||
pycurl | ||
simplejson | ||
twisted==11.0.0 | ||
|
||
[testenv:py26-full] | ||
deps = | ||
MySQL-python | ||
pycurl | ||
twisted==11.0.0 | ||
|
||
[testenv:py27-full] | ||
basepython = python2.7 | ||
deps = | ||
MySQL-python | ||
pycurl | ||
twisted==11.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.