Simplify PyScript Offline #2346
WebReflection
started this conversation in
Proposals
Replies: 1 comment 1 reply
-
I like this. Especially given some of the folks at PyCon wanted to have a local build of PyScript and one chap struggled to follow the instructions. Perhaps we should use a GitHub action to attach such an asset to the release, and we can link the asset in the auto-generated release web-page (like it already does with the docs, release notes and so on)..? E.g. as an asset attached to something like this: https://github.com/pyscript/pyscript/releases/tag/2025.5.1 and with links on a page like this: https://pyscript.net/releases/2025.5.1/ Just a thought... 👍 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We have various ways to obtain files needed to use PyScript offline https://docs.pyscript.net/2025.5.1/user-guide/offline/ and none of these is straight forward.
The current way that doesn't require/need
npm
and/or NodeJS to fetch the package is:curl "$(curl -sS https://registry.npmjs.org/@pyscript/core/latest | jq -r .dist.tarball)" --output ./pyscript.tgz
After that, using untar / gz brings in the
pyscript
folder with apackage
one that contains in it thedist
which is what any user is after.Issues with all approaches
npm
uses semver, not calver, it's very easy to get lost with versions matching in there but also we use that channel for development purposesnpm
registry for distribution purpose doesn't feel right, even if that's the main way most CDNs or projects use itProposal
dist
into a new pyscript folderpyscript
(TBD ... it could be namedpyscript_core
too)The current bundle would be ~ 1.5MB all inclusive (as zip) so this should not be an issue but if we think it is, we could also host the artifact in GitHub when we release and point at that specific version ... all to be discussed, I've opened this to discuss indeed and/or have consensus about this way to simplify by far offline installation/use-case.
/cc @ntoll @fpliger @danyeaw
Beta Was this translation helpful? Give feedback.
All reactions