Control: retitle -1 towncrier: FTBFS: Sphinx build fails to find ‘towncrier’ 
distribution metadata (importlib.metadata.PackageNotFoundError)
Control: tags -1 + confirmed
Control: summary -1 0

The upstream Sphinx documentation build system attempts to get the
distribution metadata for ‘towncrier’ but it is unavailable in the build
environment.

On 30-Oct-2026, Santiago Vila wrote:
>     importlib.metadata.PackageNotFoundError: No package metadata was found 
> for towncrier

This is raised when the Sphinx build configuration ‘docs/conf.py’ attempts:

=====
[…]
from datetime import date
from importlib.metadata import version


towncrier_version = version("towncrier")
[…]
=====

For some reason, the build environment fails to find the metadata for the
distribution ‘towncrier’.

The Debian build procedure does set the environment variables correctly:

=====
[…]
I: pybuild pybuild:416: mv 
"/build/reproducible-path/towncrier-26.9.0/.pybuild/cpython3_3.14_towncrier/scripts"/*
 "/build/reproducible-path/towncrier-26.9.0/usr/share/towncrier/bin"/.
/usr/bin/make \
        
PYTHONPATH="/build/reproducible-path/towncrier-26.9.0/.pybuild/cpython3_3.15_towncrier/build
 
/build/reproducible-path/towncrier-26.9.0/.pybuild/cpython3_3.14_towncrier/build"
 \
        SPHINXBUILD="python3 -m sphinx" --directory "docs" \
        html man
[…]
=====

but the ‘importlib.metadata.version("towncrier")’ fails with the error
reported:

=====
importlib.metadata.PackageNotFoundError: No package metadata was found for 
towncrier
=====

-- 
 \        “We cannot solve our problems with the same thinking we used |
  `\                           when we created them.” —Albert Einstein |
_o__)                                                                  |
Ben Finney <[email protected]>

Attachment: signature.asc
Description: PGP signature

Reply via email to