Skip to content

Commit b1b52f9

Browse files
committed
Minor tweaks and clean-ups.
1 parent 809edf7 commit b1b52f9

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

100102
That's it! Feel free to create PR's via GitHub. Thank you! 💐
101103

build_data.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@
2020
Google Sheets document (published as CSV) and uses those to override the
2121
generated 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
2424
sophistication. It is intended to be run occasionally by hand to refresh
2525
the data files. Since this website is advertised as being "curated" this
2626
manual 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

3030
import requests

package/main.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
1. Extracts the package name from the query string (e.g. `/package?package=<package_name>`).
77
2. 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.
99
4. 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.

0 commit comments

Comments
 (0)