Skip to content

Update to setuptools-scm 9 makes python-xmlsec unable to be installed #366

Description

@paulzakin

Hello!

I am unable to install the newest version of xmlsec when setuptools-scm is v9 or above (released 2025-09-05). I believe this version introduces strict enforcement of PEP 621 configuration rules, and xmlsec's pyproject.toml is non-compliant. Here is the error.

ValueError: pyproject.toml: setuptools-scm is present in
[build-system].requires but dynamic=['version'] is not set in
[project]. Either add dynamic=['version'] to [project] or add a
[tool.setuptools_scm] section.

I believe the fix is to add a [project] section to the pyproject.toml as outlined in their documentation.

Thanks!

Activity

  1. timabbott commented on Aug 5, 2025

    @timabbott

    The root issue is pypa/setuptools-scm#1191; it looks like they made a breaking change a bit too early.

  2. paulzakin commented on Aug 5, 2025

    @paulzakin
    ContributorAuthor

    Thanks for the quick response! Seems like the other issue is the place to follow - I'll close this out :)

  3. mxamin commented on Aug 5, 2025

    @mxamin
    Collaborator

    @paulzakin @timabbott Thanks for the info, I'll follow this issue and see how it pans out and update the code if required.

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