Skip to content

feat: check for deprecated setup.cfg settings #572

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 29, 2025
Merged

Conversation

henryiii
Copy link
Collaborator

@henryiii henryiii commented Mar 24, 2025

This was rolled back in setuptools 78.0.2, but is targeting 2026. Let's check for it.

See pypa/setuptools#4911 and related PRs/issues.

@henryiii henryiii requested a review from Copilot April 29, 2025 04:26
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a new check (SCFG001) to detect deprecated dash usage in setup.cfg option names, ensuring consistency with the updated setuptools requirements. Key changes include:

  • Adding tests in tests/test_setupcfg.py for valid and invalid setup.cfg files.
  • Introducing a new family ("setupcfg") and check (SCFG001) in the checks module.
  • Updating pyproject.toml, documentation, and README to incorporate the new check.

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tests/test_setupcfg.py Adds tests for validating setup.cfg configuration.
src/sp_repo_review/families.py Registers a new family for setuptools configuration.
src/sp_repo_review/checks/setupcfg.py Introduces SCFG001 to check for deprecated options.
pyproject.toml Updates entry points to include setup.cfg checks.
docs/pages/guides/packaging_simple.md Updates documentation to reference modern and legacy usage.
docs/pages/guides/packaging_classic.md Updates legacy packaging guide with appropriate notes.
README.md Adds information on the new SCFG001 check.

@henryiii henryiii merged commit dac6032 into main Apr 29, 2025
20 checks passed
@henryiii henryiii deleted the henryiii/feat/setupcfg branch April 29, 2025 04:59
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