pharo-users@lists.pharo.org

Any question about pharo is welcome

View all threads

[ANN] Package Formulas

HM
Hernán Morales Durand
Fri, Aug 12, 2022 6:47 AM

Hi everyone,

I have spent some time creating a new package manager UI for Pharo 10 to
simplify package finding and installation. It is a Spec application which
introduces a new concept: Package Formulas. These are just annotated
methods with an installation expression, so they do not depend on
Metacello, Gofer, Pakbot or any other package manager.

Some features are:

  • Package Formulas already includes a predefined set of categorized
    formulas.
  • UI allows you to install packages in bulk.
  • It is simple to create a script from selections.
  • Scripts can be decorated with pre, post, and wrapper actions.
  • You can request to list your own or recommended formulas by opening
    issues from the UI.
    • Then the package formula will be reviewed to avoid naming conflicts,
      and to prevent adding broken formulas.
    • The UI could be used with a custom container of your favorite,
      validated, isolated or private formulas.
  • (Currently) it does not automatically collect packages from remote
    repositories or query on-line servers, however, you can easily jump to
    browse a selected project homepage.
  • License is MIT.

https://github.com/hernanmd/package-formulas

Hope you like it.
Best,

Hernán

Hi everyone, I have spent some time creating a new package manager UI for Pharo 10 to simplify package finding and installation. It is a Spec application which introduces a new concept: Package Formulas. These are just annotated methods with an installation expression, so they do not depend on Metacello, Gofer, Pakbot or any other package manager. Some features are: - Package Formulas already includes a predefined set of categorized formulas. - UI allows you to install packages in bulk. - It is simple to create a script from selections. - Scripts can be decorated with pre, post, and wrapper actions. - You can request to list your own or recommended formulas by opening issues from the UI. - Then the package formula will be reviewed to avoid naming conflicts, and to prevent adding broken formulas. - The UI could be used with a custom container of your favorite, validated, isolated or private formulas. - (Currently) it does not automatically collect packages from remote repositories or query on-line servers, however, you can easily jump to browse a selected project homepage. - License is MIT. https://github.com/hernanmd/package-formulas Hope you like it. Best, Hernán
GP
Guillermo Polito
Tue, Aug 16, 2022 9:26 AM

Hi Hernán,

Thanks, it looks very interesting!

How do you add a new formula? I couldn’t find any info on where formulas are fetched from in the readme (there is a bullet on “where they are not fetched” but…).

G

El 12 ago 2022, a las 8:47, Hernán Morales Durand hernan.morales@gmail.com escribió:

Hi everyone,

I have spent some time creating a new package manager UI for Pharo 10 to simplify package finding and installation. It is a Spec application which introduces a new concept: Package Formulas. These are just annotated methods with an installation expression, so they do not depend on Metacello, Gofer, Pakbot or any other package manager.

Some features are:

  • Package Formulas already includes a predefined set of categorized formulas.
  • UI allows you to install packages in bulk.
  • It is simple to create a script from selections.
  • Scripts can be decorated with pre, post, and wrapper actions.
  • You can request to list your own or recommended formulas by opening issues from the UI.
    • Then the package formula will be reviewed to avoid naming conflicts, and to prevent adding broken formulas.
    • The UI could be used with a custom container of your favorite, validated, isolated or private formulas.
  • (Currently) it does not automatically collect packages from remote repositories or query on-line servers, however, you can easily jump to browse a selected project homepage.
  • License is MIT.

https://github.com/hernanmd/package-formulas https://github.com/hernanmd/package-formulas

Hope you like it.
Best,

Hernán

Hi Hernán, Thanks, it looks very interesting! How do you add a new formula? I couldn’t find any info on where formulas are fetched from in the readme (there is a bullet on “where they are *not* fetched” but…). G > El 12 ago 2022, a las 8:47, Hernán Morales Durand <hernan.morales@gmail.com> escribió: > > Hi everyone, > > I have spent some time creating a new package manager UI for Pharo 10 to simplify package finding and installation. It is a Spec application which introduces a new concept: Package Formulas. These are just annotated methods with an installation expression, so they do not depend on Metacello, Gofer, Pakbot or any other package manager. > > Some features are: > > - Package Formulas already includes a predefined set of categorized formulas. > - UI allows you to install packages in bulk. > - It is simple to create a script from selections. > - Scripts can be decorated with pre, post, and wrapper actions. > - You can request to list your own or recommended formulas by opening issues from the UI. > - Then the package formula will be reviewed to avoid naming conflicts, and to prevent adding broken formulas. > - The UI could be used with a custom container of your favorite, validated, isolated or private formulas. > - (Currently) it does not automatically collect packages from remote repositories or query on-line servers, however, you can easily jump to browse a selected project homepage. > - License is MIT. > > https://github.com/hernanmd/package-formulas <https://github.com/hernanmd/package-formulas> > > Hope you like it. > Best, > > Hernán > >
HM
Hernán Morales Durand
Tue, Aug 16, 2022 12:18 PM

Hi Guille,

To add a new formula just compile a new method with the pragma <formula:
#mycategory> in PackageFormulas. The class side of PackageFormulas has all
the formulas as methods.
There should be some primitive form of "help" in there to write a formula,
but it is just a matter of pasting your install expression:

[image: Screen Shot 2022-08-16 at 14.11.36.png]

Let me know any suggestions.

Cheers,

Hernán

El mar, 16 ago 2022 a las 11:27, Guillermo Polito (<
guillermopolito@gmail.com>) escribió:

Hi Hernán,

Thanks, it looks very interesting!

How do you add a new formula? I couldn’t find any info on where formulas
are fetched from in the readme (there is a bullet on “where they are not
fetched” but…).

G

El 12 ago 2022, a las 8:47, Hernán Morales Durand <
hernan.morales@gmail.com> escribió:

Hi everyone,

I have spent some time creating a new package manager UI for Pharo 10 to
simplify package finding and installation. It is a Spec application which
introduces a new concept: Package Formulas. These are just annotated
methods with an installation expression, so they do not depend on
Metacello, Gofer, Pakbot or any other package manager.

Some features are:

  • Package Formulas already includes a predefined set of categorized
    formulas.
  • UI allows you to install packages in bulk.
  • It is simple to create a script from selections.
  • Scripts can be decorated with pre, post, and wrapper actions.
  • You can request to list your own or recommended formulas by opening
    issues from the UI.
    • Then the package formula will be reviewed to avoid naming conflicts,
      and to prevent adding broken formulas.
    • The UI could be used with a custom container of your favorite,
      validated, isolated or private formulas.
  • (Currently) it does not automatically collect packages from remote
    repositories or query on-line servers, however, you can easily jump to
    browse a selected project homepage.
  • License is MIT.

https://github.com/hernanmd/package-formulas

Hope you like it.
Best,

Hernán

Hi Guille, To add a new formula just compile a new method with the pragma <formula: #mycategory> in PackageFormulas. The class side of PackageFormulas has all the formulas as methods. There should be some primitive form of "help" in there to write a formula, but it is just a matter of pasting your install expression: [image: Screen Shot 2022-08-16 at 14.11.36.png] Let me know any suggestions. Cheers, Hernán El mar, 16 ago 2022 a las 11:27, Guillermo Polito (< guillermopolito@gmail.com>) escribió: > Hi Hernán, > > Thanks, it looks very interesting! > > How do you add a new formula? I couldn’t find any info on where formulas > are fetched from in the readme (there is a bullet on “where they are *not* > fetched” but…). > > G > > El 12 ago 2022, a las 8:47, Hernán Morales Durand < > hernan.morales@gmail.com> escribió: > > Hi everyone, > > I have spent some time creating a new package manager UI for Pharo 10 to > simplify package finding and installation. It is a Spec application which > introduces a new concept: Package Formulas. These are just annotated > methods with an installation expression, so they do not depend on > Metacello, Gofer, Pakbot or any other package manager. > > Some features are: > > - Package Formulas already includes a predefined set of categorized > formulas. > - UI allows you to install packages in bulk. > - It is simple to create a script from selections. > - Scripts can be decorated with pre, post, and wrapper actions. > - You can request to list your own or recommended formulas by opening > issues from the UI. > - Then the package formula will be reviewed to avoid naming conflicts, > and to prevent adding broken formulas. > - The UI could be used with a custom container of your favorite, > validated, isolated or private formulas. > - (Currently) it does not automatically collect packages from remote > repositories or query on-line servers, however, you can easily jump to > browse a selected project homepage. > - License is MIT. > > https://github.com/hernanmd/package-formulas > > Hope you like it. > Best, > > Hernán > > > >