coherent-oss / coherent.build

A zero-config Python project build backend
5 stars 0 forks source link

Error in render_badge on tempora #11

Closed jaraco closed 3 weeks ago

jaraco commented 3 weeks ago

I started seeing this error when building the tempora project:

 tempora experiment/coherent [1] @ pip-run coherent.build -- -m coherent.build
* Creating isolated environment: venv+pip...
* Installing packages in isolated environment:
  - coherent.build
* Getting build dependencies for sdist...
* Building sdist...
Traceback (most recent call last):
  File "/var/folders/f2/2plv6q2n7l932m2x004jlw340000gn/T/pip-run-6ns_ce83/pyproject_hooks/_in_process/_in_process.py", line 373, in <module>
    main()
  File "/var/folders/f2/2plv6q2n7l932m2x004jlw340000gn/T/pip-run-6ns_ce83/pyproject_hooks/_in_process/_in_process.py", line 357, in main
    json_out["return_val"] = hook(**hook_input["kwargs"])
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/folders/f2/2plv6q2n7l932m2x004jlw340000gn/T/pip-run-6ns_ce83/pyproject_hooks/_in_process/_in_process.py", line 326, in build_sdist
    return backend.build_sdist(sdist_directory, config_settings)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/folders/f2/2plv6q2n7l932m2x004jlw340000gn/T/pip-run-6ns_ce83/coherent/build/backend.py", line 206, in build_sdist
    metadata = Metadata.discover()
               ^^^^^^^^^^^^^^^^^^^
  File "/var/folders/f2/2plv6q2n7l932m2x004jlw340000gn/T/pip-run-6ns_ce83/coherent/build/backend.py", line 155, in discover
    return cls(cls._discover_fields())
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/folders/f2/2plv6q2n7l932m2x004jlw340000gn/T/pip-run-6ns_ce83/coherent/build/backend.py", line 134, in __init__
    for item in always_items(values):
  File "/var/folders/f2/2plv6q2n7l932m2x004jlw340000gn/T/pip-run-6ns_ce83/coherent/build/backend.py", line 171, in _discover_fields
    yield from discovery.description_from_readme()
  File "/var/folders/f2/2plv6q2n7l932m2x004jlw340000gn/T/pip-run-6ns_ce83/coherent/build/discovery.py", line 266, in description_from_readme
    yield 'Description', inject_badges(readme.read_text(encoding='utf-8'), ct)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/folders/f2/2plv6q2n7l932m2x004jlw340000gn/T/pip-run-6ns_ce83/coherent/build/discovery.py", line 224, in inject_badges
    return '\n\n'.join(itertools.chain(render_badges(type), [readme]))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/folders/f2/2plv6q2n7l932m2x004jlw340000gn/T/pip-run-6ns_ce83/coherent/build/discovery.py", line 253, in render_badges
    yield rb(
          ^^^
  File "/var/folders/f2/2plv6q2n7l932m2x004jlw340000gn/T/pip-run-6ns_ce83/coherent/build/discovery.py", line 238, in render_badge
    return locals().get(type, markdown).format_map(locals())
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: 'name'

ERROR Backend subprocess exited when trying to invoke build_sdist