Skip to content

setup.cfg now only allows underscore key, not dash. #50

Description

@daeho-ro
      File "/tmp/pip-build-env-eghujpsq/overlay/lib/python3.13/site-packages/setuptools/dist.py", line 730, in parse_config_files
        self._parse_config_files(filenames=inifiles)
        ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
      File "/tmp/pip-build-env-eghujpsq/overlay/lib/python3.13/site-packages/setuptools/dist.py", line 599, in _parse_config_files
        opt = self._enforce_underscore(opt, section)
      File "/tmp/pip-build-env-eghujpsq/overlay/lib/python3.13/site-packages/setuptools/dist.py", line 629, in _enforce_underscore
        raise InvalidConfigError(
        ...<3 lines>...
        )
    setuptools.errors.InvalidConfigError: Invalid dash-separated key 'description-file' in 'metadata' (setup.cfg), please use the underscore name 'description_file' instead.
    error: subprocess-exited-with-error
    
    × Getting requirements to build wheel did not run successfully.
    │ exit code: 1
    ╰─> See above for output.
    
    note: This error originates from a subprocess, and is likely not a problem with pip.
    full command: /home/linuxbrew/.linuxbrew/Cellar/ford/7.0.10/libexec/bin/python /home/linuxbrew/.linuxbrew/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py get_requires_for_build_wheel /tmp/tmpc38ofofv
    cwd: /tmp/ford--markdown-include-20250324-12596-tsgelu/markdown-include-0.7.2
    Getting requirements to build wheel: finished with status 'error'

It seems that the hyphen character is finally deprecated to support, and so the key description-file should be changed into description_file.

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions