Thanks to visit codestin.com
Credit goes to github.com

Skip to content

9.2.0 ignores [tool.setuptools_scm] with metadata in setup.cfg #1213

@sarnold

Description

@sarnold

We have a suite of python projects being deployed on RHEL9 which require keeping package metadata in setup.cfg in order to build RPM packages in the RHEL environment. All of these packages are using setuptools-scm configuration with a version file and a non-default version_scheme.

Starting with 9.2.0 all these packages are failing trying to import version data from the missing version file, with the following warning message when building:

$ SETUPTOOLS_SCM_DEBUG=1 python -m build .
* Creating isolated environment: venv+pip...
* Installing packages in isolated environment:
  - setuptools>=45
  - setuptools_scm[toml]>=6.0
* Getting build dependencies for sdist...
* Installing packages in isolated environment:
  - setuptools_scm[toml]
* Building sdist...
/tmp/build-env-jkdaqu_s/lib/python3.13/site-packages/setuptools_scm/_integration/version_inference.py:51: UserWarning: version of daemonizer already set
  warnings.warn(self.message)

then again during wheel build:

* Building wheel from sdist
* Creating isolated environment: venv+pip...
* Installing packages in isolated environment:
  - setuptools>=45
  - setuptools_scm[toml]>=6.0
* Getting build dependencies for wheel...
* Installing packages in isolated environment:
  - setuptools_scm[toml]
* Building wheel...
/tmp/build-env-mo3ptb7k/lib/python3.13/site-packages/setuptools_scm/_integration/version_inference.py:51: UserWarning: version of daemonizer already set
  warnings.warn(self.message)

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