Using setup.cfg and manifest.in is the old way. See the example [here](https://github.com/pypa/sampleproject/blob/main/pyproject.toml) for the latest way.