Skip to content

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

Closed

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

Activity

  1. changed the title [-]Possible License conflict (?) with setuptools during build[/-] [+]Possible License conflict (?) with setuptools during build on 2.2.8[/+] on Feb 10, 2026
  2. dschmide commented on Feb 10, 2026

    @dschmide
    Author

    maybe this is related?

    11752de
    #772

    is it possible that the version of setuptools caused this?

    Please use a simple string containing a SPDX expression for project.license. You can also use project.license-files. (Both options available on setuptools>=77.0.0).

  3. locked and limited conversation to collaborators on Feb 11, 2026
  4. converted this issue into a discussion #779 on Feb 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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