Restore PyYAML 5.4.1 to avoid TypeError in webassets 0.12.1 #113
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The patch to bump pyyaml to 6.0.1 introduced in https://github.com/keitaroinc/docker-ckan/pull/108/files#diff-132f494f7fa90591cc8efc8b166716154979ee515aa16ab9fd614f82b92a9f07R64 is raising an error when running the CKAN 2.9 image. CKAN 2.9.9 requires webassets 0.12.1, which calls yaml.load() without a Loader. This generated a warning in pyyaml 5.4.1, but raises a TypeError in 6.x. Unfortunately, there's an issue building PyYAML < 6.0.1 from source because it's not compatible with Cython 3, so this PR follows the workaround suggested in yaml/pyyaml#736 to create a constraint file that limits the Cython version to one that should work and restores pyyaml to 5.4.1.
cc @Filip3mac