Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Simplify PyScript Offline#2346

WebReflection started this conversation inProposals
May 21, 2025· 1 comments· 1 reply
Discussion options

We have various ways to obtain files needed to use PyScript offlinehttps://docs.pyscript.net/2025.5.1/user-guide/offline/ and none of these is straight forward.

The current way that doesn't require/neednpm and/orNodeJS to fetch the package is:

curl"$(curl -sS https://registry.npmjs.org/@pyscript/core/latest| jq -r .dist.tarball)" --output ./pyscript.tgz

After that, usinguntar /gz brings in thepyscript folder with apackage one that contains in it thedist which is what any user is after.

Issues with all approaches

  • npm usessemver, notcalver, it's very easy to get lost with versions matching in there but also we use that channel for development purposes
  • copy paste hints might not fit all users or be recommended in general
  • bothering thenpm registry for distribution purpose doesn't feel right, even if that's the main way most CDNs or projects use it

Proposal

  • when we release, we add a step in CI that:
    • copy all content indist into a newpyscript folder
    • copy all licenses (ours + 3rd party) into that folder
    • zip or tar.gz that folder aspyscript (TBD ... it could be namedpyscript_core too)
    • place that file in our documentation page or any place wherecalver would provide the right package

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

You must be logged in to vote

Replies: 1 comment 1 reply

Comment options

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... 👍

You must be logged in to vote
1 reply
@WebReflection
Comment options

WebReflectionMay 21, 2025
Maintainer Author

anything that can make the whole documentation about offline PyScirpt shrink to a single link would do to me :-)

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Labels
None yet
2 participants
@WebReflection@ntoll

[8]ページ先頭

©2009-2025 Movatter.jp