On Mon, Oct 27, 2008 at 3:24 PM, Jorge Vargas <[EMAIL PROTECTED]> wrote:
> On Mon, Oct 27, 2008 at 2:34 PM, Derick Eisenhardt
> <[EMAIL PROTECTED]> wrote:
>>
>> Finally got it to work!
>>
> This method worked for me.
>
> just a little note, you can chain this into the same line:
> easy_install -i http://www.turbogears.org/2.0/downloads/1.9.7b1/index
> simplejson FormEncode Genshi repoze.who Babel decorator repoze.tm2
> Transaction zope.interface BytecodeAssembler DecoratorTools AddOns
> Extremes
>
> This are the versions that need to be upgraded, for webhelpers
> required is 0.6.1 but current 0.6.3.
>
> webOb0.9.2 --- 0.9.3
> Mako 0.2 --- 0.2.2
> WebHelpers 0.6dev-20080613 -- 0.6.1 (0.6.3)
> Routes 1.9 --- 1.10.1
>
> I also notice the following:
>
> - it is still pulling tg.ext.repoze.who
>
> it is also pulling the following "dev packages"
>
> PasteScript-1.6.4dev_r7555-py2.5.egg
> DBSprockets-0.5dev_r411-py2.5.egg
> ToscaWidgets-0.9.5dev_20081026-py2.5.egg (what happend to 0.9.4?)
> PEAK_Rules-0.5a1.dev_r2562-py2.5.egg
> repoze.tm2 1.0a3
>
> shouldn't we bug upstream for a release? after all this is a mayor TG
> milestone. I know DBSprockets and TW are easy as they are closer to
> TG, how about the other three?
>
> What is the status of sqlalchemy-migrate?
> last I heard it didn't support 0.5, although I just googled and found
> this
> http://groups.google.com/group/migrate-users/browse_thread/thread/e989b4f0308afe54
> and this http://code.google.com/p/sqlalchemy-migrate/source/detail?r=449
>
> so shall we use their trunk (449)? pin down at 0.4 or add a warning
> for it? I vote for the last one, as migrate isn't a critical part of
> TG but a nice addition.
>
I found two more issues, interesting enough both related to quickstart:
1- WebTest isn't listed as dependency neither of tg or the tg project,
therefore running nosetests fails.
now if you run $ python setup.py test, it will download both WebTest
and BeautifulSoup egg into the project directory but they won't be
installed so even though this works and runs the tests. nosetests
still fails.
I think we should make WebTest a dependency of TG2 (it is also used by
the test_stack isn't it?), and then put a second comment line under
/tests/functional/test_root.py telling you to easy_install
BeautifulSoup
Also related both webtest and beautifulsoup are in the wrong case
inside setup.py making setuptools generate a warning.
Attached a patch to fix this.
The other issue seems to be a bad merge in the templates for
quickstart with identity.
in my install it's in file.
tg.devtools-1.9.7a5-py2.5.egg/devtools/templates/turbogears/+package+/model/identity.py_tmpl
to reproduce quickstart a project and say yes to identity, then run nosetests.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Trunk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears-trunk?hl=en
-~----------~----~----~----~------~----~------~--~---
Index: devtools/templates/turbogears/+package+/tests/functional/test_root.py_tmpl
===================================================================
--- devtools/templates/turbogears/+package+/tests/functional/test_root.py_tmpl (revision 5460)
+++ devtools/templates/turbogears/+package+/tests/functional/test_root.py_tmpl (working copy)
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
from {{package}}.tests import TestController
+from nose.tools import assert_true
# This is an example of how you can write functional tests for your controller.
# As opposed to a pure unit-test which test a small unit of functionallity,
@@ -13,7 +14,8 @@
msg = 'TurboGears 2 is rapid web application development toolkit '\
'designed to make your life easier.'
# You can look for specific strings:
- self.failUnless(msg in response)
- # You cam also access a BeautifulSoup'ed version
+ assert_true(msg in response)
+ # You can also access a BeautifulSoup'ed version
+ # first run $ easy_install BeautifulSoup and then run this test
links = response.html.findAll('a')
- self.failUnless(links, "Mummy, there are no links here!")
+ assert_true(links, "Mummy, there are no links here!")
Index: devtools/templates/turbogears/setup.py_tmpl
===================================================================
--- devtools/templates/turbogears/setup.py_tmpl (revision 5460)
+++ devtools/templates/turbogears/setup.py_tmpl (working copy)
@@ -25,7 +25,7 @@
packages=find_packages(exclude=['ez_setup']),
include_package_data=True,
test_suite='nose.collector',
- tests_require=['webtest', 'beautifulsoup'],
+ tests_require=['WebTest', 'BeautifulSoup'],
package_data={'{{package}}': ['i18n/*/LC_MESSAGES/*.mo',
'templates/*/*',
'public/*/*']},