{
  "id": "python/setuptools-invalid-python-requires",
  "signature": "error in mypkg setup command: 'python_requires' must be a string containing valid version specifiers; Invalid specifier: '>=3.7.*'",
  "signature_zh": "mypkg setup 命令错误：'python_requires' 必须是包含有效版本说明符的字符串；无效说明符：'>=3.7.*'",
  "regex": "error\\ in\\ mypkg\\ setup\\ command:\\ 'python_requires'\\ must\\ be\\ a\\ string\\ containing\\ valid\\ version\\ specifiers;\\ Invalid\\ specifier:\\ '>=3\\.7\\.\\*'",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "The python_requires field uses a wildcard pattern that is not a valid PEP 440 specifier; wildcards are only allowed as '==' or '!=' prefixes.",
  "root_cause_type": "generic",
  "root_cause_zh": "python_requires 字段使用了不是有效 PEP 440 说明符的通配符模式；通配符仅允许作为 '==' 或 '!=' 前缀。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Quoting does not change PEP 440 validation; the specifier is still invalid.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Allows installation on unsupported interpreters, leading to runtime SyntaxErrors.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Older setuptools may accept it, but modern pip rejects the metadata during install.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.98,
      "how": "python_requires='>=3.7,<4'",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.95,
      "how": "python_requires='>=3.7,!=3.7.0'",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": null,
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.88,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-08-27",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}