File tree Expand file tree Collapse file tree 3 files changed +5
-11
lines changed
Expand file tree Collapse file tree 3 files changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,8 @@ $ python -m http.server
9696``` sh
9797$ python build_data.py
9898```
99+ 6 . The ` home.py ` fragment is the PyScript code for the front page. The ` /package/main.py `
100+ fragment is the PyScript app for displaying specific package information.
99101
100102That's it! Feel free to create PR's via GitHub. Thank you! 💐
101103
Original file line number Diff line number Diff line change 2020Google Sheets document (published as CSV) and uses those to override the
2121generated data files as needed.
2222
23- This is DELIBERATELY a simple script without much error handling or
23+ This is a DELIBERATELY simple script without much error handling or
2424sophistication. It is intended to be run occasionally by hand to refresh
2525the data files. Since this website is advertised as being "curated" this
2626manual step is REQUIRED, so that we can review the changes before pushing
27- them live.
27+ them live via a git based PR .
2828"""
2929
3030import requests
Original file line number Diff line number Diff line change 55
661. Extracts the package name from the query string (e.g. `/package?package=<package_name>`).
772. Grabs the package metadata from PyPI (e.g. https://pypi.org/pypi/<package_name>/json).
8- 3. Grabs the package support status from the /data /<package_name>.json file.
8+ 3. Grabs the package support status from the /api/package /<package_name>.json file.
994. If step 3 fails, it falls back to a default "amber" status and attempts to make a simple
1010 Pyodide import test for the package, along with an embedded Google form for user feedback.
1111
@@ -147,14 +147,6 @@ async def main():
147147 <hr />
148148 <div>{ notes_html } </div>
149149 """
150-
151-
152- #######
153- #######
154- ####### TODO: Add PyScript and Pyodide version info, browser info, etc to the form.
155- #######
156- #######
157-
158150 # We can try a simple Pyodide import test for amber packages.
159151 # Add a simple script to attempt the import.
160152 # Note: This is a very basic test and may not cover all cases.
You can’t perform that action at this time.
0 commit comments