Skip to content

fix: Adjusting setup.cfg to be compatible with setuptools>=78.0.0#236

Open
saboya wants to merge 1 commit intojmcarpenter2:masterfrom
saboya:saboya/setuptools-78-setup-cfg
Open

fix: Adjusting setup.cfg to be compatible with setuptools>=78.0.0#236
saboya wants to merge 1 commit intojmcarpenter2:masterfrom
saboya:saboya/setuptools-78-setup-cfg

Conversation

@saboya
Copy link
Copy Markdown

@saboya saboya commented Mar 24, 2025

This package's setup.cfg file seems to be incompatbile with the latest setuptools release:
https://setuptools.pypa.io/en/stable/history.html#v78-0-0

This is causing issues when installing project dependencies using poetry for example, as we get this error:

setuptools.errors.InvalidConfigError: Invalid dash-separated key 'description-file' in 'metadata' (setup.cfg), please use the underscore name 'description_file' instead.

@saboya
Copy link
Copy Markdown
Author

saboya commented Mar 24, 2025

If anyone finds this helpful, this is what helped me using poetry in a Dockerfile:

# Create a constraints file to limit setuptools version
RUN echo "setuptools<78" > /constraints.txt

# Set the PIP_CONSTRAINT environment variable to the constraints file
ENV PIP_CONSTRAINT=/constraints.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant