diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 94dac68..4e20d70 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -13,7 +13,6 @@ jobs: matrix: include: - { python: "3.10", os: "ubuntu-latest", session: "pre-commit" } - - { python: "3.10", os: "ubuntu-latest", session: "safety" } - { python: "3.10", os: "ubuntu-latest", session: "mypy" } - { python: "3.10", os: "ubuntu-latest", session: "tests" } - { python: "3.10", os: "windows-latest", session: "tests" } diff --git a/TODO.md b/TODO.md index 4c2c819..1aec715 100644 --- a/TODO.md +++ b/TODO.md @@ -2,9 +2,20 @@ ## Now +- CDN mode + +## Soon + +- Start documentation for example writers + - Explain that we own the `src` in `py-config` +- Remove the hack in noxfile to have tests only run the "fast" ones + - Playright files get the example index.html directly + - And thus, don't have the py-config src re-pointed to cdn + - When run in nox, there are no local files and need to do CDN + ## Eventually -- Get nox to work with downloaded pyodide/pyscript +- Get numpy, pandas, etc. downloaded into local dir - Get rid of Poetry ## Done diff --git a/docs/developers/cdn_mode.md b/docs/developers/cdn_mode.md new file mode 100644 index 0000000..af3ccd4 --- /dev/null +++ b/docs/developers/cdn_mode.md @@ -0,0 +1,93 @@ +# CDN Mode + +Add a way to get PyScript/Pyodide locally sometimes, but from CDN other times. + +## Why + +When running and testing locally, the developers (and example writers) want fast turnaround. +They don't want to keep going out on a possibly-slow network -- or even no-network, if offline. +In "production", though, we want people browsing the examples to get the CDN version. + +Other times are harder to decide. +GitHub Actions would like a nice speedup. +But it will take some investigation to learn how to cache artifacts. + +## When + +There are several contexts where this decision needs to be made. + +## Standalone Example + +The Gallery examples are designed to allow people to preview an example's `index.html` without the app. +They have a `
-