Update vendored pyyaml version from 3.11 to 5.4.1#803
Conversation
This addresses a bunch of security fixes that PyYAML has addresses since the last vendored version of the package.
|
This pull would be super helpful as it would fix a bunch of downstream breakages like the azure-cli |
|
Sorry for the ping @bitprophet but could you perhaps have a look on this? If this isn't the right approach please tell me what would be acceptable. |
|
I think this is keeping invoke from running on Python 3.10... |
|
@andir (following up from #796):
Not having looked upstream yet, do you mean they added dependencies on C extensions? That'd be less than ideal. This changeset looks to be limited to the vendored Python files though - does it install cleanly?
If PyYAML 5.x does have a non-pure-Python install flow, then I would take a harder look at whether to continue vendoring it. This would almost certainly be in a 3.x backwards incompat release but dropping Python 2 support would likely necessitate that anyways - so this could be rolled up into that work. @minchinweb do you have a sample of the failure for 3.10? Invoke is next on my list for ending up on CircleCI (after a Paramiko bugfix release this week & an oncall shift next week) and I assume by the time I get to that, they'll have 3.10 available if they don't already. Which would give me a handy way to shake that sort of problem out of the tree. |
It does work for me and I didn't notice any issues with the PR as it stands. Perhaps the C extensions are properly treated as an optional "optimization".
Given that we seem to get away without native extensions this probably remains a topic for a later point in time (if and when they will require native code)? |
|
@bitprophet I believe it's the combination of having an Without the To reproduct my setup, I'm working with the code at https://github.com/MinchinWeb/minchin.releaser and Python 3.10 on Windows 10 (although I don't think anything in Windows specific). Clone the repo, create and activate a virtual environment, and install the project ( |
I am having the same issue, any updates on this? |
|
I can also confirm this with fabric. I just recently upgrade to Python 3.10 and am now running into this issue. Removing my |
|
Just merged this for version 1.7. Also switched our call for loading config files to be |
|
This seems to have fixed the issue on my end. So excited to see the new release! |

This addresses a bunch of security fixes that PyYAML has addresses since
the last vendored version of the package.
Fixes #708
Follow up to #796