Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move build requirements from
setup.cfg
to pyproject.toml
.
Using `setup_requires` in `setup.cfg` is deprecated in newer verisons of `setuptools`, in favor of PEP517-style `[build-system].requires` in `pyproject.toml`. More concretely, I believe moving to the newer style will fix an issue my team is hitting in our monorepo, where we've occasionally been seeing failures to install `cairocffi` because of "file already exists" errors when building the underlying `cffi`. I found a discussion in another project where the `cffi` maintainer said the issue arises when the same dependency is listed in both `setup_requires` and `install_requires` (pypa/cibuildwheel#813 (comment)) and then confirmed that switching to a PEP517-style build fixed things (pypa/cibuildwheel#813 (comment)).
- Loading branch information