Skip to content

Failing to build pyp2spec through pyp2spec #64

@FrostyX

Description

@FrostyX

Sorry for the inception inspired title. The point is, I am not sure if this is a bug in the pyp2spec tool or if the pyp2spec tool is incorrectly packaged. Either way, this is what I get:

$ pyp2spec pyp2spec
$ rpmbuild -bs python-pyp2spec.spec
$ mock ~/rpmbuild/SRPMS/python-pyp2spec-0.13.0-1.fc42.src.rpm
...
  File "/usr/lib/python3.13/site-packages/setuptools/config/pyprojecttoml.py", line 57, in validate
    raise ValueError(f"{error}\n{summary}") from None
ValueError: invalid pyproject.toml config: `project.license`.
configuration error: `project.license` must be valid exactly by one definition (2 matches found):

    - keys:
        'file': {type: string}
      required: ['file']
    - keys:
        'text': {type: string}
      required: ['text']

error: Bad exit status from /var/tmp/rpm-tmp.qmiuyW (%generate_buildrequires)
    Bad exit status from /var/tmp/rpm-tmp.qmiuyW (%generate_buildrequires)

I discovered this when running tests before doing a new Copr release.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions