Skip to content

Package pages: FAQ structured data for the install-error answer #307

Done

Description

@patrickballard

Package pages for packages that build from source are now titled by the error people search for ("Failed building wheel for NAME?", #306), with a short "Why the install fails, and the fix" answer. Search engines and AI search tools read FAQ structured data, and the page's JSON-LD block (json_ld() in scripts/build_pages.py) only describes the software.

First step

  • In scripts/build_pages.py, when the page has that answer section, add a schema.org FAQPage with one Question ("Why does pip install NAME fail with 'Failed building wheel for NAME'?", or the "No matching distribution found" wording for that case) whose acceptedAnswer text is the section's first two paragraphs as plain text. Keep the existing SoftwareApplication data, in the same @graph or as a second block.
  • Pages without the section get no FAQPage.
  • Tests in tests/test_package_jsonld.py: valid JSON, the question names the package, the answer text matches the page, and a fully covered package has no FAQPage. Package names are untrusted: check one with </script> in it stays inside the block.

Activity

  1. added
    enhancement
    good first issue
    on Dec 4, 2026
  2. hub-mayank commented on Dec 4, 2026

    @hub-mayank
    Contributor

    The FAQ in #308 uses the first two paragraphs already visible on each affected package page. It covers both pip error messages and leaves fully covered packages with just their software metadata.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementgood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions