setup.cfg

Domain: Python Packaging

🎯 Motivation

A static configuration file that supplements or replaces setup.py. It keeps metadata declarative so you don’t need code to describe your package.

πŸ“‹ Concrete Example

A setup.cfg [metadata] section holds name = mypkg and version = 1.0, while [options] lists packages = find:.

πŸ”— Analogy

setup.cfg is like a form you fill in at the doctor’s office β€” structured fields instead of freehand writing.