As a data.gov developer, I want ckanext-envvars 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
[x] WHEN I view CI
THEN I see a successful job testing the extension under CKAN 2.9
AND I see a successful job testing the extension under CKAN 2.8
AND I see a successful job testing the extension under the legacy test environment
[x] WHEN I remove the tests
THEN I see CI fail due to test coverage being below a threshold
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:
[x] Update spreadsheet to indicate the extension upgrade is in progress
[x] Dependencies must be python 3 compatible (run caniusepython3 -r requirements.txt from within the virtualenv) and post the results to this issue (docs)
[x] Add additionalCI config for CKAN 2.8 and 2.9 Update CI config. These new CI jobs do not to be required yet (docs)
add code coverage reporting and required threshold (example)
[x] Update documentation with compatibility table (docs)
Features
"Usage" (how to use/install/configure the extension) vs "Development" (how to test etc)
Required extensions and dependencies
"Weak" dependencies or how this code interacts with other extensions
[x] Update/add docker-compose environment in order to run tests locally (example)
Last updated 6(!) years ago. However, by all accounts this is a teeny extension that doesn't change much, so it's probably OK for us to fork and make a PR upstream until that gets merged in future.
User Story
As a data.gov developer, I want ckanext-envvars 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:
main
.check_ckan_version
caniusepython3 -r requirements.txt
from within the virtualenv) and post the results to this issue (docs)tests
dir totests/nose
in order to preserve existing test environment (example)futurize --both-stages --write ckanext
git grep -w 'paste\|pylons'
should return no imports) (docs)controller='package'
->controller='dataset'
orcontroller='resource'
Additional resources: