You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Package pages: FAQ structured data for the install-error answer #307
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.
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.
Activity
hub-mayank commentedon Dec 4, 2026
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.