Should-DSL 2.0a1 is not working in python2.5

0 views
Skip to first unread message

Hugo Lopes Tavares

unread,
Jun 15, 2010, 11:32:33 AM6/15/10
to should-...@googlegroups.com
Hi,
Gabriel Monnerat just told me he could not run should-dsl with
python2.5, and it is a problem for us, because people still use
should-dsl in python2.5.

So, we need to fix it as soon as possible!

PS.: There is a class decorator in should-dsl, it is new in python2.6
version, we need to throw it away :\

Gabriel Monnerat

unread,
Jun 15, 2010, 11:42:05 AM6/15/10
to should-...@googlegroups.com
Hi all,

I think that this problem is the same in this page:

http://stackoverflow.com/questions/681953/python-class-decorator

2010/6/15 Hugo Lopes Tavares <hlt...@gmail.com>



--
Gabriel M. Monnerat

Hugo Lopes Tavares

unread,
Jun 15, 2010, 12:00:59 PM6/15/10
to should-...@googlegroups.com
I fixed all python2.5 problems (I suppose I got it working right).
And I added ez_setup.py file so it install setuptools if not installed
- setuptools is the only should-dsl's depedency.

Cheers!

Rodrigo Manhães

unread,
Jun 15, 2010, 12:03:13 PM6/15/10
to should-...@googlegroups.com
If it is the problem, we can make direct calls to matcher() function
instead of decorator syntax.

[]'s
Rodrigo

2010/6/15 Gabriel Monnerat <gabriel...@gmail.com>:

Hugo Lopes Tavares

unread,
Jun 15, 2010, 12:03:58 PM6/15/10
to should-...@googlegroups.com
Sorry, I did not mention the solution.

The class decorators are just a syntax suggar added in Python2.6, so
we should use them when available, but we can do:

class FooMatcher(object):
...

matcher(FooMatcher)

instead of
@matcher
FooMatcher(object):
...


Because the important stuff is to call matcher passing the class
matcher, nothing else.

Rodrigo Manhães

unread,
Jun 15, 2010, 12:06:30 PM6/15/10
to should-...@googlegroups.com
Should-DSL staff, agile solutions! Thank you all!

And what about Python 3?

[]'s
Rodrigo

2010/6/15 Hugo Lopes Tavares <hlt...@gmail.com>:

Hugo Lopes Tavares

unread,
Jun 15, 2010, 12:08:09 PM6/15/10
to should-...@googlegroups.com
Rodrigo, you are right! We should go to python3 too!

We need a continuous integration server as soon as possible. Maybe
host in IFF? Are about the domain and host, Rodrigo?

Reply all
Reply to author
Forward
0 new messages