Repository navigation
make PyYaml a runtime dependency - #11903
Conversation
1f7d2bd to
a492aa1
Compare
mhvk
left a comment
There was a problem hiding this comment.
Looks good, nice to see this happening - and what a cleanup! Some in-line comments.
A larger one: we happily import numpy and erfa on top of modules, and could do the same with yaml (instead of as needed). I think I prefer the solution here, since yaml is not needed throughout the code unlike numpy and erfa, but I thought I'd bring it up for discussion.
a492aa1 to
0736bf1
Compare
There are few places where it might make sense to move |
|
I guess most table/meta/fits use would not involve |
|
Re: Co-authored-by It needs |
mhvk
left a comment
There was a problem hiding this comment.
Beyond the one possible leftover import, I think this is all good. Thanks!
|
@nstarman - just realized that |
PyYaml >= 3.13 Signed-off-by: Nathaniel Starkman (@nstarman) <[email protected]>
0736bf1 to
34e4247
Compare
Co-authored-by: P. L. Lim <[email protected]> Co-authored-by: Marten van Kerkwijk <[email protected]> Signed-off-by: Nathaniel Starkman (@nstarman) <[email protected]>
34e4247 to
f5a5714
Compare
embray
left a comment
There was a problem hiding this comment.
Just a few bits of lint to clean up.
|
This looks awesome! Seeing all the extra work we made by having PyYAML be optional, we should have made it a requirement long ago. I took myself off as a reviewer since it is getting a good look from others. |
|
I'm especially happy now that all the yaml-dependent code will now get a lot more testing in the full build matrix. |
72ad4de to
88c3af2
Compare
Co-authored-by: P. L. Lim <[email protected]> Co-authored-by: Marten van Kerkwijk <[email protected]> Signed-off-by: Nathaniel Starkman (@nstarman) <[email protected]>
Signed-off-by: Nathaniel Starkman (@nstarman) <[email protected]>
Co-authored-by: Erik M. Bray <[email protected]> Signed-off-by: Nathaniel Starkman (@nstarman) <[email protected]>
88c3af2 to
4fcf758
Compare
The variable told if `PyYAML` was available, but lost its value when `PyYAML` was made a required dependency in astropy#11903. It has been deprecated long enough by now.
PyYaml >= 3.13
Fixes #11626
Request Review: @taldcroft @mhvk @embray
Signed-off-by: Nathaniel Starkman (@nstarman) [email protected]
Checklist for package maintainer(s)
This checklist is meant to remind the package maintainer(s) who will
review this pull request of some common things to look for. This list
is not exhaustive.
Extra CIlabel.no-changelog-entry-neededlabel.astropy-botcheck might be missing; do not let the green checkmark fool you.backport-X.Y.xlabel(s) before merge.