Merge lp:~keegan-csmith/ibid/jinja2-517784 into lp:ibid
- jinja2-517784
- Merge into trunk
Status: | Merged |
---|---|
Approved by: | Stefano Rivera |
Approved revision: | 1033 |
Merged at revision: | 1037 |
Proposed branch: | lp:~keegan-csmith/ibid/jinja2-517784 |
Merge into: | lp:ibid |
Diff against target: |
74 lines (+7/-6) 4 files modified
INSTALL (+1/-1) docs/install.rst (+2/-2) ibid/source/http.py (+3/-2) setup.py (+1/-1) |
To merge this branch: | bzr merge lp:~keegan-csmith/ibid/jinja2-517784 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Stefano Rivera | Approve | ||
Jonathan Hitchcock | Approve | ||
Max Rabkin | Approve | ||
Review via email: mp+71326@code.launchpad.net |
Commit message
Switched from Jinja to Jinja2
Description of the change
Max Rabkin (max-rabkin) wrote : | # |
This approval is based on Stefano telling me it's trivial :)
Ibid Branch Auto-Lander (ibid-tarmac) wrote : | # |
The attempt to merge lp:~keegan-csmith/ibid/jinja2-517784 into lp:ibid failed. Below is the output from the failed tests.
ibid.test.
CalcTest
test_basic ... [OK]
test_too_big ... [OK]
ibid.test.
UnihanTest
test_simp_trad ... [OK]
/usr/lib/
/usr/lib/
/usr/lib/
ibid.test.
TestAddressed
test_
test_
test_
test_
test_
test_
ibid.test.
FactoidTest
test_also ... [FAIL]
test_append ... [FAIL]
test_
test_empty ... [FAIL]
test_
test_
test_get_case ... [FAIL]
test_
test_
test_
test_
test_
test_
test_
test_
test_
test_
ibid.test.
GDefineTest
test_basic ... [OK]
test_
ibid.test.
TestURLGrabber
test_bad_grabs ... [OK]
test_good_grabs ... ...
Ibid Branch Auto-Lander (ibid-tarmac) wrote : | # |
The attempt to merge lp:~keegan-csmith/ibid/jinja2-517784 into lp:ibid failed. Below is the output from the failed tests.
ibid.test.
CalcTest
test_basic ... [OK]
test_too_big ... [OK]
ibid.test.
UnihanTest
test_simp_trad ... [OK]
/usr/lib/
/usr/lib/
/usr/lib/
ibid.test.
TestAddressed
test_
test_
test_
test_
test_
test_
ibid.test.
FactoidTest
test_also ... [FAIL]
test_append ... [FAIL]
test_
test_empty ... [FAIL]
test_
test_
test_get_case ... [FAIL]
test_
test_
test_
test_
test_
test_
test_
test_
test_
test_
ibid.test.
GDefineTest
test_basic ... [OK]
test_
ibid.test.
TestURLGrabber
test_bad_grabs ... [OK]
test_good_grabs ... ...
Ibid Branch Auto-Lander (ibid-tarmac) wrote : | # |
The attempt to merge lp:~keegan-csmith/ibid/jinja2-517784 into lp:ibid failed. Below is the output from the failed tests.
ibid.test.
CalcTest
test_basic ... [OK]
test_too_big ... [OK]
ibid.test.
UnihanTest
test_simp_trad ... [OK]
/usr/lib/
/usr/lib/
/usr/lib/
ibid.test.
TestAddressed
test_
test_
test_
test_
test_
test_
ibid.test.
FactoidTest
test_also ... [FAIL]
test_append ... [FAIL]
test_
test_empty ... [FAIL]
test_
test_
test_get_case ... [FAIL]
test_
test_
test_
test_
test_
test_
test_
test_
test_
test_
ibid.test.
GDefineTest
test_basic ... [OK]
test_
ibid.test.
TestURLGrabber
test_bad_grabs ... [OK]
test_good_grabs ... ...
Jonathan Hitchcock (vhata) : | # |
Stefano Rivera (stefanor) wrote : | # |
This breaks because trial chdirs
apparently I thought the following would work:
templates = Environment(
and said so on IRC
Keegan Carruthers-Smith (keegan-csmith) wrote : | # |
Unit tests now pass \o/
- 1033. By Keegan Carruthers-Smith
-
It's never too late to fix a bug.
Stefano Rivera (stefanor) : | # |
Preview Diff
1 | === modified file 'INSTALL' | |||
2 | --- INSTALL 2011-01-24 21:31:11 +0000 | |||
3 | +++ INSTALL 2011-10-25 12:01:24 +0000 | |||
4 | @@ -25,7 +25,7 @@ | |||
5 | 25 | # aptitude install python-beautifulsoup \ | 25 | # aptitude install python-beautifulsoup \ |
6 | 26 | python-dateutil python-dnspython python-feedparser \ | 26 | python-dateutil python-dnspython python-feedparser \ |
7 | 27 | python-html2text python-html5lib python-imdbpy \ | 27 | python-html2text python-html5lib python-imdbpy \ |
9 | 28 | python-jinja python-silc python-setuptools \ | 28 | python-jinja2 python-silc python-setuptools \ |
10 | 29 | python-simplejson python-soappy python-sqlalchemy \ | 29 | python-simplejson python-soappy python-sqlalchemy \ |
11 | 30 | python-twisted python-wokkel | 30 | python-twisted python-wokkel |
12 | 31 | 31 | ||
13 | 32 | 32 | ||
14 | === modified file 'docs/install.rst' | |||
15 | --- docs/install.rst 2011-01-24 21:31:11 +0000 | |||
16 | +++ docs/install.rst 2011-10-25 12:01:24 +0000 | |||
17 | @@ -65,7 +65,7 @@ | |||
18 | 65 | 65 | ||
19 | 66 | Web source and web services: | 66 | Web source and web services: |
20 | 67 | 67 | ||
22 | 68 | * `Jinja <http://jinja.pocoo.org/>`_ | 68 | * `Jinja2 <http://jinja.pocoo.org/2/>`_ |
23 | 69 | 69 | ||
24 | 70 | Other sources: | 70 | Other sources: |
25 | 71 | 71 | ||
26 | @@ -264,7 +264,7 @@ | |||
27 | 264 | user@box $ sudo aptitude install bzr python-configobj python-sqlalchemy \ | 264 | user@box $ sudo aptitude install bzr python-configobj python-sqlalchemy \ |
28 | 265 | python-twisted python-beautifulsoup python-celementtree \ | 265 | python-twisted python-beautifulsoup python-celementtree \ |
29 | 266 | python-html5lib python-setuptools python-simplejson \ | 266 | python-html5lib python-setuptools python-simplejson \ |
31 | 267 | python-soappy python-jinja python-dateutil python-virtualenv | 267 | python-soappy python-jinja2 python-dateutil python-virtualenv |
32 | 268 | 268 | ||
33 | 269 | Create a user to run your bot as:: | 269 | Create a user to run your bot as:: |
34 | 270 | 270 | ||
35 | 271 | 271 | ||
36 | === modified file 'ibid/source/http.py' | |||
37 | --- ibid/source/http.py 2010-02-06 09:56:27 +0000 | |||
38 | +++ ibid/source/http.py 2011-10-25 12:01:24 +0000 | |||
39 | @@ -2,11 +2,12 @@ | |||
40 | 2 | # Released under terms of the MIT/X/Expat Licence. See COPYING for details. | 2 | # Released under terms of the MIT/X/Expat Licence. See COPYING for details. |
41 | 3 | 3 | ||
42 | 4 | import logging | 4 | import logging |
43 | 5 | import os | ||
44 | 5 | 6 | ||
45 | 6 | from twisted.web import server, resource, static, xmlrpc, soap | 7 | from twisted.web import server, resource, static, xmlrpc, soap |
46 | 7 | from twisted.application import internet | 8 | from twisted.application import internet |
47 | 8 | from twisted.internet import reactor | 9 | from twisted.internet import reactor |
49 | 9 | from jinja import Environment, FileSystemLoader | 10 | from jinja2 import Environment, FileSystemLoader |
50 | 10 | 11 | ||
51 | 11 | import ibid | 12 | import ibid |
52 | 12 | from ibid.source import IbidSourceFactory | 13 | from ibid.source import IbidSourceFactory |
53 | @@ -15,7 +16,7 @@ | |||
54 | 15 | from ibid.utils import locate_resource | 16 | from ibid.utils import locate_resource |
55 | 16 | 17 | ||
56 | 17 | templates = Environment(loader=FileSystemLoader( | 18 | templates = Environment(loader=FileSystemLoader( |
58 | 18 | locate_resource('ibid', 'templates'))) | 19 | os.path.abspath(locate_resource('ibid', 'templates')))) |
59 | 19 | 20 | ||
60 | 20 | class Index(resource.Resource): | 21 | class Index(resource.Resource): |
61 | 21 | 22 | ||
62 | 22 | 23 | ||
63 | === modified file 'setup.py' | |||
64 | --- setup.py 2011-03-15 10:00:04 +0000 | |||
65 | +++ setup.py 2011-10-25 12:01:24 +0000 | |||
66 | @@ -13,7 +13,7 @@ | |||
67 | 13 | 'feedparser', | 13 | 'feedparser', |
68 | 14 | 'html2text', | 14 | 'html2text', |
69 | 15 | 'html5lib', | 15 | 'html5lib', |
71 | 16 | 'jinja', | 16 | 'jinja2', |
72 | 17 | 'pyopenssl', | 17 | 'pyopenssl', |
73 | 18 | 'PyStemmer', | 18 | 'PyStemmer', |
74 | 19 | 'python-dateutil', | 19 | 'python-dateutil', |
Yay, about time