While building trying to test spicerack to day I hit an error related to PyYaml. The following fix worked for me
$ echo 'Cython < 3.0' > /tmp/constraint.txt $ PIP_CONSTRAINT=/tmp/constraint.txt tox
however we should consider a permanent fix e.g. bumping dependencies on pyyaml to >=6.0.1
The current dependency on 5.4.1 seems to be comming from elasticsearch-curator
$ .tox/py311-tests/bin/pipdeptree ... wikimedia-spicerack==7.2.2.dev4+gc28e116 ... ├── elasticsearch-curator [required: ~=5.0, installed: 5.8.4] ... │ ├── PyYAML [required: ==5.4.1, installed: 5.4.1]