-
Notifications
You must be signed in to change notification settings - Fork 1
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 #86
base: master
Are you sure you want to change the base?
Conversation
requirements.txt
Outdated
iribaker==0.1.2 | ||
python-dateutil==2.8.1 | ||
rdflib==5.0.0 | ||
iribaker==git+https://github.com/CLARIAH/iribaker.git#egg=iribaker |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I raised an issue at https://github.com/CLARIAH/iribaker/issues about this ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The CKAN test stumbles on the Python compatibility issue. I'm not sure why it's not loading the same version as the linter, which is passing. Excerpt of the error:
|
@loleg Both the tests and the linter are being run on Relevant part of test.yml:
opendata.swiss is unfortunately running CKAN 2.8 and Python 2, so we need this extension to retain compatibility with those. :( I would suggest adding tests for more versions:
Then at least you'll be able to see if the tests are passing with Python 3. |
@loleg I forgot to say, thank you for the work on this! 🎉 |
On 2.8 it's failing due to iribaker which is not backwards-compatible. The errors on 2.9 don't make any sense. Failing on 2.10 due to this:
You know that song..."Who let the dogs out? Woof! Woof!" 🙈 |
Still testing, this bumps the dependencies and uses the unpublished git master of https://github.com/CLARIAH/iribaker to make the plugin work with Python 3.
Additionally I ran 2to3 on all .py files and tests to fix syntax, and resolved some linter issues.