#98 3.1.1 started installing a top-level "doc" package
Closed: Fixed by bignose. Opened by mgorny.

$ python -m build -w
...
$ unzip -l dist/python_daemon-3.1.2a1-py3-none-any.whl  | grep doc/
     1473  12-02-2024 06:26   doc/CREDITS
     5909  12-02-2024 06:26   doc/FAQ
     2533  12-02-2024 06:26   doc/TODO
     7718  12-02-2024 06:26   doc/hacking.txt
      909  12-02-2024 06:26   doc/module.mk
     2244  12-02-2024 06:26   doc/sphinx.mk
    11308  12-02-2024 06:26   doc/examples/service-runner.txt

These files now end up being installed as /usr/lib/python*/site-packages/doc.

Reproduced with 3.1.1 and 636795aa6d4069eebc697f1385a7a90c2926d5ae.


Metadata Update from @bignose:
- Issue assigned to bignose
- Issue tagged with: confirmed, packaging

This issue is caused by using a different configuration format for Setuptools configuration (from 'setup.py' configuration, to 'pyproject.toml').

I'll correct this by ensuring Setuptools 'packages.find' configuration will see only packages we intend to install.

For the record, I think for pyproject.toml it generally figures out the correct packages to install if you don't specify anything package-related at all.

The 'packages.find' configuration now includes only those Python packages that should be installed from the distribution. This change is present on 'main' branch as of commit 33b2f64c and released with python-daemon 3.1.2.

Metadata Update from @bignose:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

Metadata