Skip to content
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

CKAN 2.9 / Python 3 #55

Merged
merged 33 commits into from
Jul 28, 2022
Merged

CKAN 2.9 / Python 3 #55

merged 33 commits into from
Jul 28, 2022

Conversation

amercader
Copy link
Member

Putting this out there in case someone wants to pick it up. I sadly run out of time before completion but I'd say that the py3/CKAN 2.9 support is 80% there, with still some things to iron out.

@@ -4,6 +4,8 @@
import cgi
import json

import six
from werkzeug.datastructures import FileStorage as FlaskFileStorage
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't this be incompatible with CKAN < 2.8?

controller = u'ckanext.validation.controller:ValidationController'

map_.connect(
u'validation_read',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a consistent named route that templates can use to work with either Flask or Pylons without alteration?

@ThrawnCA
Copy link
Contributor

ThrawnCA commented Dec 8, 2021

#56 fixes some of the errors but there are other problems that I'm unsure how to resolve, such as 'enqueue_job' not being called.

@ThrawnCA
Copy link
Contributor

ThrawnCA commented Jul 26, 2022

Our fork and Keitaro's (qld-gov-au and keitaroinc) now have Py3 compatibility, if you want to use them as a reference. Keitaro is using the ckan-dev Docker containers, which preload more and result in a faster build, while qld-gov-au has scenario tests using Behave, but they'll otherwise be quite similar if/when keitaroinc#11 is merged.

@codecov
Copy link

codecov bot commented Jul 27, 2022

Codecov Report

❗ No coverage uploaded for pull request base (master@23dd8a5). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master      #55   +/-   ##
=========================================
  Coverage          ?   82.64%           
=========================================
  Files             ?       26           
  Lines             ?     2149           
  Branches          ?        0           
=========================================
  Hits              ?     1776           
  Misses            ?      373           
  Partials          ?        0           

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

@amercader amercader changed the title [WIP] CKAN 2.9 / Python 3Py3 [WIP] CKAN 2.9 / Python 3 Jul 28, 2022
@amercader amercader changed the title [WIP] CKAN 2.9 / Python 3 CKAN 2.9 / Python 3 Jul 28, 2022
@amercader amercader marked this pull request as ready for review July 28, 2022 08:53
This was referenced Jul 28, 2022
@amercader amercader merged commit 77111d6 into master Jul 28, 2022
JVickery-TBS pushed a commit to JVickery-TBS/ckanext-validation that referenced this pull request Jul 23, 2024
[QOLDEV-323] pin test container version to preserve Docker Compose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants