update codecov to make CI/github actions continue to work #2567
Description
Last night it looks like codecov updated things and yanked their PyPI package (codecov
), causing all our tests to fail:
codecov: install_deps> python -I -m pip install codecov
ERROR: Could not find a version that satisfies the requirement codecov (from versions: none)
Looking in indexes: https://pypi.org/simple, https://antocuni.github.io/pypy-wheels/manylinux2010
ERROR: No matching distribution found for codecov
Some link following found this: https://community.codecov.com/t/codecov-yanked-from-pypi-all-versions/4259
which reached this nice conclusion:
EDIT #1 09:56 ET: It sounds like this package was deprecated a while back and was supposed to stop working on 2022-02-01 (see /~https://github.com/codecov/codecov-python 1) so maybe this was an intentional action? Pretty scary way to go about it, if so! The package has actually been completely deleted now (a 404, not just a yanked-versions page) but I’ve confirmed with PyPI Security that this package can no longer be registered, so at least there should be no risk of squatters.
EDIT #2: In our own situation, we’ve actually been using the codecov-action GHA uploader for a while, but still had a lingering installation of the codecov Python package – it’s the latter that is breaking the builds. If others are in a similar situation, just removing any codecov package references might work. (Can’t tell because now GH actions aren’t running at all, so this is speculative.)
which in turn was echoed on twitter:
https://twitter.com/sovietfish/status/1646155087717318657
do y'all use the codecov uploader GHA? On my end I'm hearing from folks that the pypi package was redundant & was deprecated in February 2022 github.com/codecov/codeco…
So it seems like the fix may be as simple as removing that dependency from your projects
and then there was a nice chain explaining the yanking, ending here -
https://twitter.com/ctitusbrown/status/1646160287911796737
so anyway this is something I'll be looking into fixing I guess.
also see official codecov blog post: https://about.codecov.io/blog/codecov-uploader-deprecation-plan/