-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python 3 compatibility #5
Comments
Hi @funkyfuture That would be great! Looking forward to it |
and |
yes, six is ok. Thanks! |
hm, when i run the tests with Python 2 i get 15 fails. it hardly makes sense to refactor in that state. |
@funkyfuture I am planning to streamline surf a bit and drop support for legacy versions of rdflib (2/3) and python (2.5) with the upcoming 1.1.9 version. There will be a couple of notable changes that will happen:
this will make testing easier, as for now one needs to install the surf.rdflib plugin in order to run some of the tests. I will spend the next couple of days bringing surf up to speed with these changes and will let you know when this is done. in addition I am planning tox / travis support for integration tests on PRs. Stay tuned! |
that's all great, i'd may have proposed the one or other idea as well.
do you know dropbox' script for migrating unittests to pytest? it's really a big help.
i can contribute a script to run tests against various interpreters with Docker + tox. so one hasn't to deal with installing the interpreters on various, local systems.
oh, and py.test diacusses to drop support for 2.6 rather sooner than later.
|
this is the first time I hear about dropbox' migration script. That will come in handy (at least for the plugin tests which I have not yet migrated). Thanks for the heads up! the docker + tox helper script is most welcome and appreciated 👍 |
ok, I've migrated the tests to py.test and added travis integration (all tests pass for now). |
@cosminbasca +1 for the new release, I'm looking forward to trying it out. I'm also very pleased to see that this project is still being actively developed (within the limits of one's time availability, of course ;-) ) |
A potential fix has been proposed in #18 |
Please fix this.
in
|
adding patch pour python3import sys to the |
Dear all, I'd like to add that this might be the time where a new Pypi library should get registered, such as |
(And honestly, from a personal point of view, I'd drop the support for 2.x Python) |
ciao, i'm currently evaluating rdf-related libraries for Python. surf is feature- and documentation-wise my favorite atm. unfortunately it lacks Python 3 support.
if i'd give it a shot and refactored the code to support Python 2 and 3, would that be accepted by the maintainers? if so, would using
six
be okay?The text was updated successfully, but these errors were encountered: