Skip to content

Possible License conflict (?) with setuptools during build on 2.2.8 #778

@dschmide

Description

@dschmide

Version 2.2.8 of mysqlclient seems to have a bug in its packaging configuration file (pyproject.toml) that causes it to fail when building on our system

this is the error log we get during the build process

  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']

  ...
  
  OFFENDING RULE: 'oneOf'
  
  DEFINITION:
      {
          "oneOf": [
              {
                  "properties": {
                      "file": {
                          "type": "string",
                          "$$description": [
                              "Relative path to the file (UTF-8) which contains the license for the",
                              "project."
                          ]
                      }
                  },
                  "required": [
                      "file"
                  ]

  ...
  
  × Encountered error while generating package metadata.
  ╰─> mysqlclient

I am unfamiliar with this error, but downgrading to version 2.2.7 fixed the issue. I am wondering what caused this, or if it it something that happened only on our system. Anyone else getting this?
We are using python 3.11 which seems to be fine according to the requirements: Requires: Python >=3.10

added seed packages: pip==23.0.1, setuptools==66.1.1, wheel==0.38.4

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