We have just released v0.10.1 of fpm with a series of new features. Among others, this release contains great improvements in whole set of registry functionalitites, fpm model support and support package downloads from registry.
For a full list of the new features see the GitHub Release Notes
This release introduces fpm support for uploading packages to the fpm-registry server directly from the command-line interface, via
fpm publish --token <token-here>
fpm will now interact with a web interface that will help to manage the namespaces & packages.
We have made an experimental registry available online at https://registry-phi.vercel.app/.
We welcome testing from the fortran-lang community: here are a few steps to get started.
First of all, you will need to register a user account.
For uploading your package to the registry, you will have to step by step follow the following points:
- Register yourself as a user. You will require a unique username, email & password to set up your account. you will need to verify your email id to login into the registry, you will receive a mail to verify your email id.
- For uploading a package from
fpm
, you will have to first create a namespace. A namespace represents a collection of packages. Each package is published under a namespace in order to avoid collision of same package names. Namespace names will be unique always. - Now, that you will have created a namespace with a unique name and a nice description. You can go to dashboard by from the dropdown options in the Navigation bar on top.
- In the dashboard, you can see the namespace that has been created by you. You can now generate a token for this namespace.
- Use this token to upload packages from the
fpm
using the CLI:
fpm publish --token <token-here>
After completing the above steps, you will receive a response in the fpm command line interface whether your upload was successful or not.
If your upload was successful, you can now again go to the registry frontend and check the dashboard. It should display the package uploaded by you. all the packages uploaded on the registry are run through a series of tests that ensure the package uploaded is valid. You can now Add/Remove maintainers to your package. Mantainers have the rights to operate on the same package.
*** Please note: the current registry is a playground: its database will be fully deleted once its functionality is established. Please do not use it for production yet! more information will follow then. ****
To download a package from registry: (add this line to fpm.toml)
package_name = {"namespace" = "namespace_name"}
for example:
M_framework = {"namespace" = "urbanjost"} # this will use the latest version. you can also use it with versions.
Thanks to everyone who contributed to this release! We are eager to receive community feedback and suggestions for user experience here on Fortran Discourse.
Portions of the work present in this release have been funded by the Sovereign Tech Fund.