[FR] Move `.config.` (`setup.cfg` parser) into a separate package and vendorize it

Open
#3,495 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
30/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
build-system

Research direction

Locate the built-in setuptools submodule responsible for parsing setup.cfg and trace how it is used. Define the separate package boundary and its integration points, then verify that setuptools vendorizes it while external tools can continue reading setup.cfg metadata.

Written by the indexing model from the issue text.

Description

enhancement Needs Triage
What's the problem this feature will solve?

Even though setup.cfg files are deprecated and their support gonna be removed somewhen, it is here to stay, there are enough packages using it. So there is a need to read these files. Unfortunately they cannot be read properly by generic configparser (at least without additional postprocessing). So an out-of-the-box solution is needed.

Describe the solution you'd like

The library parsing setup.cfg is splitted into a separate package, that can be used by tools that have to deal with setup.cfg even after setuptools drops support of this metadata format.

setuptools eliminates the built-in submodule and instead vendorizes that package.

Alternative Solutions

Not to drop support of setup.cfg.

Additional context

No response

Code of Conduct
  • I agree to follow the PSF Code of Conduct
Dominant language
Python
Stars
2.9k
Forks
1.4k
Avg merge
1d 1h
Merged PRs (30d)
1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from pypa/setuptools

All issues in pypa/setuptools

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.