Skip to content

project.licence cannot be a string #791

@dimpase

Description

@dimpase

while trying the source build in SageMath, I get

[meson_python-0.18.0] [spkg-install]   User defined options
[meson_python-0.18.0] [spkg-install]     Native files: /home/dima/software/sage-src/local/var/lib/sage/venv-python3.13/var/tmp/sage/build/meson_python-0.18.0/src/.mesonpy-g6b174z0/meson-python-native-file.ini
[meson_python-0.18.0] [spkg-install]     b_ndebug    : if-release
[meson_python-0.18.0] [spkg-install]     b_vscrt     : md
[meson_python-0.18.0] [spkg-install]     buildtype   : release
[meson_python-0.18.0] [spkg-install] 
[meson_python-0.18.0] [spkg-install] Found ninja-1.13.1 at /usr/bin/ninja
                                                
[meson_python-0.18.0] [spkg-install] meson-python: error: Field "project.license" has an invalid type, expecting a dictionary of strings (got "MIT")

indeed, it should be {text = 'MIT'}. I'll make a PR


PS. It can be a string, but you need pyproject_metadata >= 0.9.0 !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions