-
-
Notifications
You must be signed in to change notification settings - Fork 53
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
Depend on upstream ruamel.yaml instead of unmaintained ruamel_yaml #291
base: main
Are you sure you want to change the base?
Conversation
Hi! This is the friendly automated conda-forge-linting service. I just wanted to let you know that I linted all conda-recipes in your PR ( |
def get_yaml_safe(): | ||
# define global yaml API | ||
# safe-loader and allowing duplicate keys | ||
# for handling # [filter] / # [not filter] | ||
# Don't use a global variable for this as a global | ||
# variable will make conda-smithy thread unsafe. | ||
yaml = YAML(typ="safe") | ||
yaml.allow_duplicate_keys = True | ||
return yaml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just copy-pasta from conda-smithy.utils.get_yaml
with roundtrip-loader exchanged with safe-loader.
YAML requires unique keys, but PyYAML only warns instead of raising errors; allow_duplicate_keys = True
is for compatibility with PyYAML. I don't know if we need it here though (IMO, error would be better).
recipe/meta.yaml
Outdated
@@ -73,7 +73,7 @@ requirements: | |||
- shyaml | |||
- jq # [unix] | |||
- requests | |||
- ruamel_yaml | |||
- ruamel.yaml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- ruamel.yaml | |
- ruamel.yaml <0.19.0a0 |
would probably make sense. (No idea about what lower bound would be needed.)
Signed-off-by: Marcel Bargull <marcel.bargull@udo.edu>
Signed-off-by: Marcel Bargull <marcel.bargull@udo.edu>
…nda-forge-pinning 2023.11.10.18.46.05 Signed-off-by: Marcel Bargull <marcel.bargull@udo.edu>
dc509ee
to
97b5360
Compare
@@ -1,5 +1,5 @@ | |||
{% set name = "conda-forge-ci-setup" %} | |||
{% set version = "4.1.0" %} | |||
{% set version = "4.1.1" %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{% set version = "4.1.1" %} | |
{% set version = "4.3.4" %} |
@mbargull This LGTM. Should we try to land it? |
Checklist
0
(if the version changed)conda-smithy
(Use the phrase@conda-forge-admin, please rerender
in a comment in this PR for automated rerendering)I'm currently looking at what packages on conda-forge have a dependency on the non-maintained
ruamel_yaml
package.