# error in mypkg setup command: 'classifiers' must be a list of strings, got: 'Programming Language :: Python :: 3.11'

- **ID:** `python/setuptools-invalid-classifier`
- **Domain:** python
- **Category:** config_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

A single classifier string was assigned to classifiers instead of a list, or a comma-separated string was used in setup.cfg/pyproject.toml.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.x | active | — | — |

## Workarounds

1. **** (98% success)
   ```
   # setup.cfg
[metadata]
classifiers =
    Programming Language :: Python :: 3
    Programming Language :: Python :: 3.11

# pyproject.toml
classifiers = [
  "Programming Language :: Python :: 3",
  "Programming Language :: Python :: 3.11",
]
   ```
2. **** (92% success)
   ```
   python -m pip install trove-classifiers
python - <<'PY'
from trove_classifiers import classifiers
for c in ["Programming Language :: Python :: 3.11"]:
    assert c in classifiers, c
print('ok')
PY
   ```

## Dead Ends

- **** — Produces one bogus classifier containing commas instead of three valid ones. (85% fail)
- **** — Loses PyPI metadata used for search and compatibility filtering. (60% fail)
