Adding Python 3 support and fixed Python 2.6 bug.#4
Adding Python 3 support and fixed Python 2.6 bug.#4twang817 merged 3 commits intotwang817:masterfrom bworrell:master
Conversation
|
Just noticed this package fails on Python 3.3: https://travis-ci.org/mriehl/fysom/jobs/104516422 |
|
@sjlongland, the PR should fix the issue you are seeing in Travis. The problem is that |
Adding Python 3 support and fixed Python 2.6 bug.
|
I'll update pypi a bit later tonight. |
|
Excellent news, I'll be giving it a try shortly to see how it all goes. Many thanks. :-) |
|
Awesome! Thanks @twang817! Hope it works for you @sjlongland :) |
|
For the record, I was waiting for the new package to arrive on pypi. In the meantime I decided to add a .travis.yml file (since I don't have Python 3.2/3.3 handy) and give it a shot there. https://travis-ci.org/vrtsystems/weakrefmethod/jobs/105810978 ← Seems Python 3.2 isn't happy. |
|
Okay, seems the Still, it's worth knowing about 3.2 support because Debian Wheezy ships with it, and we have a lot of kit out in the field with Debian Wheezy. https://travis-ci.org/vrtsystems/weakrefmethod shows all passing. Once in pypi, I should be able to trigger a re-test of |
|
Hi, Silly question, what's the status of this package these days on pypi? Seems at this present time, any package tested on Python 3.0-3.3 inclusive fails still due to this issue when the package depends on this module. I haven't been able to get mriehl/fysom#23 resolved as it presently still breaks on Python 3.3 due to incompatibilities in weakrefmethod-1.0.2. I don't mean to sound impatient, but it has been a while now. Regards, |
Hello,
I ran across some issues when using
weakrefmethodon different versions of Python and took a shot at fixing them.When running
unit2on Python 2.6, I got the following error:I think this is due to a
weakref.refbehavior on Python 2.6. It seems the__ne__method returns aNotImplementedTypeobject, which evaluates toTruewhen used in a boolean expression.Example:
On Python 3, the
weakrefmethod/__init__.pyimports fail because of the relative import syntax. I updated it to use explicit relative imports which works on Python 2.6+. After altering the imports and running the tests,weakrefmethodappears to work on Python 3.2 and 3.3.I also added the
tox.inifile that I used for testing across different Python versions.Thanks for considering this pull request and thank you for providing
weakrefmethodto the Python community!