avpkg - Available Packages #332
Replies: 13 comments 7 replies
-
You can also use |
Beta Was this translation helpful? Give feedback.
-
This is another really nice example of what can be achieved with fpm with only a few lines of code and exploiting existing packages, nice work @brocolis! I think eventually we'd like similar functionality to be incorporated into fpm (#201,#4). If you want a bigger challenge, you could include package descriptions and maybe a search functionality using the fpm-registry index file, though this requires parsing json (see jsonff). |
Beta Was this translation helpful? Give feedback.
-
Beautiful. Not only is this a nice utility by itself but I was just sketching out how I wanted to change my own preprocessor to allow the $INCLUDE directive to allow accessing files via libcurl and adding a new $USE directive that would work to automatically add an external fpm dependency and you basically laid out almost all of it. I was picturing something in fpm that would let you search for a routine by keywords and then read it's document and then if it fit the bill add the package as a dependency to a project via a utility an this already does several of the steps. |
Beta Was this translation helpful? Give feedback.
-
Great project @brocolis! As suggested previously, if it could display descriptions of packages that would be really helpful. |
Beta Was this translation helpful? Give feedback.
-
Hi. Thank you all for the feedback. I'm working on the search functionality by using regular expressions (binding to libpcre). I'm however having trouble implementing proper parsing with jsonff and toml-f. |
Beta Was this translation helpful? Give feedback.
-
@brocolis , if there is something specifically you need help with in jsonff, feel free to open an issue in the repository. FYI, I'm currently in the middle of a major update to it that will make some (relatively minor?) modifications to the API. |
Beta Was this translation helpful? Give feedback.
-
I think addressing the issues users noted as stopping them from using fpm, along with an easy-to-use registry that allows you to search the registry, and to make your packages visible for searching via the fpm command line the two biggest items for fpm. Perhaps a registry system would be a suggestion for the "Google Summer of Coding". I don't think anyone has been collecting them, but I think most people were stopped by linking and command line options, especially go parallel programming. I think we need to pay particular attention to what stops anyone from adaptation in an organized manner. |
Beta Was this translation helpful? Give feedback.
-
Also, does anyone have any ideas on contacting users of popular repositories and soliciting or helping them make their packages available via fpm? I think we could learn a lot by seeing how difficult the transitions are. And between the interest in adding more computation routines to stdlib and the fact that just about every computation language has support of netlib routines or their derivititves would a "fpm-netlib" joint project have any legs? |
Beta Was this translation helpful? Give feedback.
-
v0.4.0New version of Examplesavpkg search lapack
avpkg search "thermodynamics|mechanics"
avpkg info datetime
avpkg search numeric Repository |
Beta Was this translation helpful? Give feedback.
-
v0.5.0New command Examples: |
Beta Was this translation helpful? Give feedback.
-
New in v0.9.0
Known issues
Repository |
Beta Was this translation helpful? Give feedback.
-
Very nice. Much more convenient from a CLI environment than bringing up the browser. I think the quick searching will become even more important as the number and size of repositories grows. I have been using it to get the dependency strings for my own repositories! I find myself doing a verbose listing and then a TOML listing. I like to stick some of the metadata description into the fpm.toml file as comments. Maybe a verbose mode for --toml mode too where the metadata is preceded by a "# " would be nice? Was the bug from a new version of M_strings? Anything need fixed there? |
Beta Was this translation helpful? Give feedback.
-
I added a personal repository fpm-search --registry https://github.com/urbanjost/fpm-registry/raw/master/index.json for testing and find myself wishing a config file or environment variable (would probably have to use ";" as a separator as ":" appears in so many curl names) could be used to search multiple registries. Most repo tools allow you to add and delete repo names from your default and to pull the packages as well as list them. Any thoughts along those lines? Duplicate names in particular could be an issue. |
Beta Was this translation helpful? Give feedback.
-
Hi. I've wrote a little utility for displaying the available packages for fpm. This is how it works: 1) downloads the registry .toml in the system TEMP directory, 2) displays the package list in format ready to be copy pasted into your package .toml file. I hope you find it useful.
Repository
https://github.com/brocolis/avpkg
Dependencies
https://github.com/urbanjost/M_strings.git
https://github.com/interkosmos/fortran-curl
Thanks fpm, urbanjost & interkosmos.
Beta Was this translation helpful? Give feedback.
All reactions