GSA / datagov-ckan-multi

Other
10 stars 6 forks source link

ckanext-geodatagov Py3 + CKAN 2.9 support #570

Closed thejuliekramer closed 3 years ago

thejuliekramer commented 3 years ago

User Story

As a data.gov developer, I want ckanext-geodatagov running with CKAN 2.9 and Python 3 so that we can move out of CKAN 2.8 and reduce our technical debt and meet compliance standards.

Acceptance Criteria

Background

CKAN 2.9 extension tracker.

Details / tasks

The goal is to support running this extension against CKAN 2.9 (Python 3) and CKAN 2.8 (Python 2) environments. Please refer to the main CKAN documentation for Python 3 extensions migration. We're not following this guide exactly. Instead of creating a long-lived py3 branch, we should be merging often. New CI test suites don't need to required or to be fully passing in order to merge. It's only important that changes don't introduce new failures or break the existing test suites.

Below are a list of tasks. Depending on the extension's functionality, not all tasks will be actionable.

Tasks:

Additional resources:

jbrown-xentity commented 3 years ago

@mogul do not have access to change the "default" branch, need to pair to complete that step.

nickumia-reisys commented 3 years ago

caniusepython3 (with the current list of requirements):

$ python3 -m  caniusepython3 -r requirements.txt
[WARNING] Skipping '-e git+https://github.com/GSA/ckanext-datagovtheme.git': could not parse requirement
[WARNING] Skipping '-e git+https://github.com/GSA/ckanext-datajson.git': could not parse requirement
[WARNING] Skipping '-e git+https://github.com/ckan/ckanext-harvest.git': could not parse requirement
[WARNING] Skipping '-e git+https://github.com/ckan/ckanext-spatial.git': could not parse requirement
[WARNING] Skipping '-e git+https://github.com/asl2/PyZ3950.git': could not parse requirement
Finding and checking dependencies ...

You need 1 project to transition to Python 3.
Of that 1 project, 1 has no direct dependencies blocking its transition:

  ckantoolkit
nickumia-reisys commented 3 years ago

Hmmm, the checkpoint was a bit lower on the list, but I didn't preserve the old tests, they weren't working as it was, so I hope its okay that I overwrote them..

nickumia-reisys commented 3 years ago

No Paster CLI commands to migrate.

nickumia-reisys commented 3 years ago

No js and css assets to Web assets to migrate?

mogul commented 3 years ago

Blocked on porting datajson for now.

nickumia-reisys commented 3 years ago

We now need to use our fork of ckanext-spatial because of a fix to py3 encoding, a PR was submitted upstream.

nickumia-reisys commented 3 years ago

Part of the PY3 upgrade needed a change in the ckanext-harvester which was implemented in https://github.com/ckan/ckanext-harvest/pull/450 and submitted upstream.