Message Boards Message Boards

0
|
1619 Views
|
2 Replies
|
3 Total Likes
View groups...
Share
Share this post:

How can I use GitHub as a paclet server?

Posted 9 months ago

I want to use GitHub as a paclet server, but this fails:

PacletInstall[
 "ServiceConnection_StackExchange",
 "Site" -> "https:/github.com/paclets/Repository"
 ]

PacletSiteUpdate::err: An error occurred attempting to update paclet information from site https:/github.com/b3m2a1/PacletServer. Does not appear to be a valid paclet site

PacletInstall::notavail: No paclet named ServiceConnection_StackExchange is available for download from any currently enabled paclet sites.

$Failed

Is there a work around?

POSTED BY: Johnny Clever
2 Replies
Posted 9 months ago

I appreciate your swift response on this. I can now see that the mistake was on my end.

POSTED BY: Johnny Clever

You need to place a PacletSite.mz file which lists the available versions in the git. Next to that, you need a folder "Paclets" that contains the paclets.

The PacletSite.mz is a zipped .m file that basically contains a list of the PacletInfo.wl for each version but then slightly differently formatted.

    PacletSite[
        Paclet["Name" -> "QMRITools", "Version" -> "3.8.0", 
          "WolframVersion" -> "13.0+", "SystemID" -> All, 
          "Description" -> "Toolbox for Quantitative MRI.", 
          "Extensions" -> {...}],
        Paclet["Name" -> "QMRITools", "Version" -> "3.9.0", 
          "WolframVersion" -> "13.3+", "SystemID" -> All, 
          "Description" -> "Toolbox for Quantitative MRI.", 
          "Extensions" -> {...}]
    ]

for more information see here

It would be more useful if Mathematica would recognize the github.com/.../releases page a valid paclet location instead of the "Paclets" folder.

POSTED BY: Martijn Froeling
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract