Future example: MANIFEST.in for package data
It'd be nice to have an example of a MANIFEST.in to include some data files from the python package (ex. a .txt file or .yaml or something) and then accessing it. The new way of doing that is importlib.resources
iirc but I usually just do __file__
-based access and cheat. Would also be nice to verify that the LICENSE and README are included in the resulting sdist and wheel packages.
I also wanted to mention it is not recommended (at least in setuptools and maybe just the PyPA group in general) that all data files be part of the package. I have some packages where I thought "oh I should add this to the <prefix>/etc/
since it is a configuration file. This is do-able with setup.py/setuptools, but not in pyproject.toml anymore.