Python Test

Python project trove classifiers - Do you need this bit of pyproject.toml metadata?

04.05.2023 - By Brian OkkenPlay

Download our free app to listen on your phone

Download on the App StoreGet it on Google Play

Classifiers are one bit of Python project metadata that predates PyPI.  Classifiers are weird.  They were around in setuptools days, and are still here with pyproject.toml. What are they? Why do we need them? Do we need them?Which classifiers should I include?Why are they called "trove classifiers" in the Python docsBrett Cannon joins the show to discuss these wacky bits of metadata. Here's an example, from pytest-crayons:[project]

...

classifiers = [

"License :: OSI Approved :: MIT License",

"Framework :: Pytest"

]

Special Guest: Brett Cannon. Links:Classifiers · PyPIPEP 621 – Storing project metadata in pyproject.toml | peps.python.orgPackaging Python Projects — Python Packaging User Guide — Configuring metadataPEP 639 – Improving License Clarity with Better Package Metadata | peps.python.orgSPDX

More episodes from Python Test