-
Notifications
You must be signed in to change notification settings - Fork 146
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
Upgrade RDFLib requirement #213
Conversation
On RDFlib 6 the default format is turtle, not xml
For some reason this stopped working on Python 3.9 or latest responses version
RDFlib 6 binds the Schema.org namespace using https://schema.org. Our profiles bind the http variant, which gets registered as `schema1`. This change ensures that we are replacing the existing bind with the http version to maintain compatibility with the current serializations.
The current version of RDFlib won't work on Python 3.9 so we need to upgrade to RDFlib 6, which is not compatible with Python 2. The JSON-LD requirement ahs been integrated into the main rdflib package
Because of ckan/ckan#6841 the host name can not be overriden in the tests that use a request context
I finally managed to get all versions green 🙀 |
@amercader Sure, we can do that. We can test it in the environments CKAN 2.8 under Python 2.7 and CKAN 2.9 under Python 3.6. |
@amercader Sorry, our environment (Ubuntu 18.04) is currently locked to Python 3.6. Unfortunately RDFlib 6 requires Python 3.7+, which means we cannot test this at the moment. Ubuntu 18.04 is supported until April 2023. So the only possible versions are rdflib in |
@seitenbau-govdata It's a tricky balance. I know that Ubuntu 18.04 might be supported for a while, but Python 3.6 is no longer supported and doesn't receive security updates any more. I'm keen on maximizing support for this extension but also using recent versions to minimize issues like #205. If I understand correctly, users running on Python 3.6 can still use the extension if they install the |
@amercader True, it's really tricky. Yes, the requirements in Currently we are testing the branch with the dependencies |
@amercader We have successfully tested the branch with the following environments
and the requirements But with Python 2.7 we suggest a downgrade in the
https://github.com/ckan/ckanext-dcat/runs/6289349808?check_suite_focus=true#step:5:100 This become an issue if the requirement
https://github.com/ckan/ckanext-dcat/runs/6289349808?check_suite_focus=true#step:6:63 |
@amercader And we need a rebase to the current master and adding the
|
Co-authored-by: seitenbau-govdata <[email protected]>
Co-authored-by: seitenbau-govdata <[email protected]>
@amercader 👍 LGTM, thanks! |
Thanks @seitenbau-govdata ! I've incorporated all your suggested changes, I think that gives a good support across versions, I'll release a new version with this and your other recent changes. |
The current version of RDFlib won't work on Python 3.9 so we need to upgrade to RDFlib 6, which is not compatible with Python 2. The JSON-LD requirement has been integrated into the main rdflib package.
This adapts the tests so they can run across all RDFLib / Python / CKAN version 🤞