Updating Spack Packages¶
When new releases of HOHQMesh are made, you can contribute the new release to the spack packages. Before making an update to the Spack package, you should familiarize yourself with the Spack packaging guide.
To add a new HOHQMesh release to Spack, perform the following steps:
-
Fork the Spack repository on GitHub.
-
Install and initialize spack on your local system from your fork
git clone https://github.com/YOUR GITHUB ACCOUNT/spack.git ~/spack source ~/spack/share/spack/setup-env.sh
-
Open the HOHQMesh package for editing
spack edit hohqmesh
-
Add a new
version
metadata item to the hohqmesh package. The first argument is the version name as it will appear in the spack package manager. Use thetag
argument to specify the name of the tag as it appears in the HOHQMesh repository. As an example, a new version line forv1.0.1
is shown below.version('v1.0.1', tag='v1.0.1')
-
(Optional) If you would like to be noted as a maintainer, add your GitHub handle to the maintainers list. Maintainers will be notified if Spack users experience issues installing HOHQMesh and when modifications are being made to the HOHQMesh package in Spack.
maintainers = ['schoonovernumerics','your-github-handle']
-
When you are finished editing, save the package file. You can verify the new version is registered in your local repository by obtaining a
spec
for HOHQMesh at the new version you've added.spack spec hohqmesh@v1.0.1
-
Test to make sure the installation works
spack install hohqmesh@v1.0.1
-
Run the
spack style
command to ensure that you are meeting Spack's style requirements. -
When ready, commit your changes and push them to your GitHub repository.
-
Open a Pull Request against
github.com/spack/spack
to merge your changes with thespack/spack/develop
branch.