Thank you so much for pointing me in the right direction, @abessman. I figured out (again) that I am an idiot. ![]()
I had the following lines further down in my pyproject.toml:
[tool.setuptools.packages.find]
where = [
"incometax/src"
]
After your comment above, I read the documents carefully again, and found this:
Automatic discovery will only be enabled if you don’t provide any configuration for
packagesandpy_modules. If at least one of them is explicitly set, automatic discovery will not take place.
Ironically, those lines are blockquoted and marked as important, but I had ignored them due to banner blindness.
I replaced those lines in my pyproject.toml with the following, and now it works properly:
[tool.setuptools.packages]
find = {}
I’m using this project for self-learning the pyproject.toml based approach as distutils is planned for removal in python 3.12. This mistake was a useful learning for me.