Skip to content

Add missing trailing commas to Python version classifiers in setup.py - #3696

Merged
bdarnell merged 1 commit into
tornadoweb:masterfrom
kobihikri:fix-classifier-commas
Aug 7, 2026
Merged

Add missing trailing commas to Python version classifiers in setup.py#3696
bdarnell merged 1 commit into
tornadoweb:masterfrom
kobihikri:fix-classifier-commas

Conversation

@kobihikri

Copy link
Copy Markdown
Contributor

Hi, and thank you for Tornado.

Small setup.py fix. The cog-generated Python-version classifiers are missing trailing commas, so the adjacent string literals concatenate into a single invalid classifier:

classifiers=[
    ...
    "Programming Language :: Python :: 3.10"
    "Programming Language :: Python :: 3.11"
    "Programming Language :: Python :: 3.12"
    "Programming Language :: Python :: 3.13"
    "Programming Language :: Python :: 3.14"
    # [[[end]]]
    "Programming Language :: Python :: Implementation :: CPython",

Those five lines evaluate to one string — "...3.10Programming Language :: Python :: 3.11...3.14" — which isn't a valid PyPI classifier. The last released version on PyPI still shows the correct separate classifiers, so this looks like a recent regression that would ship malformed Programming Language :: Python :: 3.x metadata on the next release.

This PR adds the trailing commas, and also adds the comma to the cog.outl(...) template above so cog -r setup.py won't regenerate the bug.

For transparency: I used AI assistance to spot and draft this; I verified the source and the current PyPI metadata myself.

Without the commas, adjacent string literals concatenate into a single invalid
classifier (e.g. 'Programming Language :: Python :: 3.10Programming Language ::
Python :: 3.11...'). Fixes the generated lines and the cog template so it
doesn't regress on the next cog run.
@bdarnell

bdarnell commented Aug 7, 2026

Copy link
Copy Markdown
Member

Thanks! I thought we had a linter that checked for this sort of thing but I can't find it now.

@bdarnell
bdarnell merged commit 4888e03 into tornadoweb:master Aug 7, 2026
16 checks passed
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.

2 participants