sdist fails to build with setuptools 62.1.0 (package discovery)
moto-timo opened this issue · 1 comments
moto-timo commented
Automatic discovery in (at least) setuptools==62.1.0 throws an error building sdist.
An example full build log
GLOB sdist-make: /tmp/tmp.BST5jRIOuQ/dumb-init-1.2.5/setup.py
ERROR: invocation failed (exit code 1), logfile: /tmp/tmp.BST5jRIOuQ/dumb-init-1.2.5/.tox/log/GLOB-0.log
================================== log start ===================================
error: Multiple top-level packages discovered in a flat-layout: ['debian', 'testing'].
To avoid accidental inclusion of unwanted files or directories,
setuptools will not proceed with this build.
If you are trying to create a single distribution with multiple packages
on purpose, you should not rely on automatic discovery.
Instead, consider the following options:
1. set up custom discovery (`find` directive with `include` or `exclude`)
2. use a `src-layout`
3. explicitly set `py_modules` or `packages` with a list of names
To find more information, look for "package discovery" on setuptools docs.
=================================== log end ====================================
ERROR: FAIL could not package project - v = InvocationError('/tmp/tmp.BST5jRIOuQ/venv/bin/python setup.py sdist --formats=zip --dist-dir /tmp/tmp.BST5jRIOuQ/dumb-init-1.2.5/.tox/dist', 1)
chriskuehl commented
Thanks for the report. I just uploaded a version 1.2.5.post1 to PyPI which has a fixed sdist that should work.