Closed isislovecruft closed 9 years ago
Just to follow-up on this, I haven't taken a look yet until there's a Twisted that supports endpoints. This should be coming "very soon" as I believe hawkowl has ported the unix-sockets stuff which was (one of?) the last blockers on Py3 endpoints support.
I took out the FIXMEs and put serverFromString
back in as Twisted 15.4.0 appears to work fine (as well as all the other Tox environments).
PyPy 2.6+ doesn't appear to work due to some setuptools somethingsomething I haven't figured out yet but that's unrelated to this branch.
Thanks for the PR!
My
fix/py3k
branch contains some initial changes for maintaining simultaneous Python 2 and Python 3 compatibility.Running
make test
passes for both python2.7 and python3.4.However, Python3.4 with Twisted==15.2.0 is still not working, mostly due to txtorcon's pervasive use of the Twisted Endpoints API, not all of which has been ported to py3k yet (specifically,
t.i.e.UNIXServerEndpoint
andt.i.e.UNIXClientEndpoint
, which currently seems to be the largest barrier to running txtorcon with Python 3).The use of:
was messing up the use of
twisted.internet.protocols
and also appeared to break setuptools in many ways, so I removed the line (which I had originally added to all txtorcon's files) from some of the files. The rest might need to be removed? The tests pass, at least…One other thing to note is that the version of ipaddr that txtorcon pins uses a deprecated syntax for designating
long
s, i.e.:0L
. To work around this, I had to basically do:and replace the
0L
with0
. (I think this was all I had to do.)