06.03.2011 13:29, Tomer Filiba kirjoitti:
i merged the patches that alex and jerome have submitted for jython
and ironpython support.
could someone please confirm that the latest code (in the repo) runs
fine under jython and ironpython?
also, alex, a few questions please:
* why did you put "zip_ok = False" in setup.py?
Not strictly necessary, but eggs are being deprecated in Python
packaging (they aren't really doing any good) so I just figured out I'd
do my part here too. Change it to True if you want, but I don't see any
benefit in doing so.
* does setting "use_2to3 = True" in setup.py does the trick? is it all
that's necessary?
In most projects, more than this is usually necessary to do a proper
port. I suggest that you use Holger Krekel's (author of execnet btw)
"tox" tool to run unit tests on all supported Python versions. I can
contribute a sample tox.ini if you want, but it's really pretty simple.
The only trick you need to know is which nose version to use on Python
3.x. According to my research and testing, only one version actually
works on py3k. Here's the setting for it:
[testenv:py31]
deps=http://bitbucket.org/caseman/nose3-caseman-fix/get/7c9181ad403d.bz2
commands=nosetests3 -c nose.cfg []
Unfortunately tox does not convert the unit tests themselves to py3k, so
they'd have to be coded to work on both 2.x and 3.x (unless you figure
out a workaround).
also, as alex suggested, i integrated SSL support into rpyc. i will
port tlslite to python 2.7 and 3.2,
but it's now considered deprecated, and will be replaced by layer5
later on.
thanks,
-tomer
An NCO and a Gentleman