pypa / setuptools

Official project repository for the Setuptools build system
https://pypi.org/project/setuptools/
MIT License
2.44k stars 1.18k forks source link

expose structured package data #831

Open majuscule opened 7 years ago

majuscule commented 7 years ago

Package metadata is standardized and structured data that is often reused across projects, (such as in setup.py and --help output). <pkg_resources.EggInfoDistribution> supports retrieving this information via get_metadata(), but returns only a text blob. This has lead to projects re-implementing parsing logic in their codebases (i.e. mozilla/gecko-dev/.../utils.py#L20). Package data should instead be exposed as a dictionary or first-class object.

jaraco commented 7 years ago

Sounds like a good idea to me. Would you be willing to draft a PR for consideration?