yapf: PyPI package is missing Grammar.txt
yapf --help
FileNotFoundError: [Errno 2] No such file or directory: '/MY/PATH/lib/python3.11/site-packages/yapf_third_party/_ylib2to3/Grammar.txt'
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 20 (16 by maintainers)
Commits related to this issue
- Update CHANGELOG.md - mark YANKED versions (#1157) Both 0.33.0 and 0.40.0 were yanked due to packaging issues. Caused by #1107 and #1154 — committed to google/yapf by Spitfire1900 9 months ago
@bwendling I think that worked:
What was the fix — upgrading setuptools?
I played with different versions of setuptools now and found that it takes setuptools >=58.5.0 to work. I have created a pull request #1115 to make sure that future releases will use at least that version so that this issue cannot happen again. @bwendling can you confirm?
I have not reproduced this on GitHub Codespaces, pipx (Ubuntu and Windows) or poetry virtualenv (Ubuntu and Windows).
What is the repro environment (including versions and package manager)?