-
-
Notifications
You must be signed in to change notification settings - Fork 55
[WIP] Py3 #42
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
base: master
Are you sure you want to change the base?
[WIP] Py3 #42
Conversation
sync master to upstream
Fix for dataset state after creating resource
|
Thanks, however I won't accept this with the black-ified styling. Black's styling is terrible and I do not use it in my projects. |
This reverts commit c33e9a7.
|
No problem, I have no particular preferences in terms of formatting as long as there is a way not to do it manually:) I've reverted commit with formatting and added a new one, only with |
|
What is the status of this PR? I have checked out this code and ran it on my ckan 2.9/python 3 setup with xloader, and I get two errors in and |
|
This branch is used in our environments and it somehow gets a couple of new features/bug fixes during this year. Because of this, it probably will not get merged into the original repo. But I'm using it inside a dozen of environments and I'm sure that it works. As for your errors: 'NoneType' object has no attribute 'transaction'This looks like a known issue of ckanext-xloader. Check this issue. Basically, it looks like you are not using the latest versions of software. Try CKAN v2.9.5 and the latest version of ckanext-xloader AttributeError: 'ResourceUpload' object has no attribute 'get_url_from_filename'This error was raised on L158. It reports that upload object from L150 doesn't have a particular method. Note, that its class is |
Where's a good point to prune the commits back to? |
|
I think, From this point following commits provide extra features:
|
|
Excellent, thank you! For the ResourceUpload error, I discovered that in cloudstorage/utils.py L158 I had to change in function to
|
|
@smotornyuk Are you by any chance using Azure blob storage? I found a bug with the way the URL is obtained in the libcloud driver which ended up causing xloader to fail in my setup with cloudstorage. It can be fixed by dynamically assigning the scheme based on if the storage is secure. I submitted an issue in libcloud about this. |
|
No, but I'll subscribe to the issues in the libcloud repo and, when it gets fixed, will update the required version of |
|
Hi @TkTech , what is the status of this PR and the |
@smotornyuk It has been merged :) |
|
There is one additional change needed for ckan 2.9: swap out this pylons import with ckantoolkit in both Is this PR still under consideration? |
|
@TkTech @smotornyuk |
|
This exact PR won't get merged, because it contains quite a lot of opinionated customizations. It hangs here just for reference and, as I understand, when Tyler has time for it, he is going to pick some changes from it and upgrade the master branch independently of this PR |
|
Thanks @smotornyuk |
|
I haven't received any funding to work on CKAN in quite awhile, so this stuff is on the absolute bottom of the list for me. I'm happy to add @smotornyuk and/or others on the team as maintainers if they're willing. |
|
@TkTech what about transfering the extension under CKAN org ? cc @amercader @wardi |
|
@TkTech if you support transferring the extension to the ckan org I think that would be great. Otherwise having a few more people as maintainers works. |
|
For now, I'd rather keep the repo where it is. I am definitely open to revisiting in a few months. @wardi if you can bring this up during the Thursday dev meeting to find, say, 2 volunteers, I'd appreciate it. I will do some cleanups and add CI tasks for release management on the weekend. |
Support of upcomming CKAN v2.9 and Python3(https://github.com/ckan/ckan/wiki/Migration-guide-for-extensions#step-by-step-workflow)