diff options
author | Aiden Grossman <agrossman154@yahoo.com> | 2023-10-18 03:58:19 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-18 03:58:19 -0700 |
commit | 2802013dc669c503041931f3f9d8a5a251d5e12e (patch) | |
tree | b9a8cd2db1a2d2cfd177822804ca8cf6b6552b74 /.github/workflows/execute_installer.ps1 | |
parent | 37bafce38476e0b3043bb32b965c647cde07a887 (diff) | |
download | spack-2802013dc669c503041931f3f9d8a5a251d5e12e.tar.gz spack-2802013dc669c503041931f3f9d8a5a251d5e12e.tar.bz2 spack-2802013dc669c503041931f3f9d8a5a251d5e12e.tar.xz spack-2802013dc669c503041931f3f9d8a5a251d5e12e.zip |
Add license directive (#39346)
This patch adds in a license directive to get the ball rolling on adding in license
information about packages to spack. I'm primarily interested in just adding
license into spack, but this would also help with other efforts that people are
interested in such as adding license information to the ASP solve for
concretization to make sure licenses are compatible.
Usage:
Specifying the specific license that a package is released under in a project's
`package.py` is good practice. To specify a license, find the SPDX identifier for
a project and then add it using the license directive:
```python
license("<SPDX Identifier HERE>")
```
For example, for Apache 2.0, you might write:
```python
license("Apache-2.0")
```
Note that specifying a license without a when clause makes it apply to all
versions and variants of the package, which might not actually be the case.
For example, a project might have switched licenses at some point or have
certain build configurations that include files that are licensed differently.
To account for this, you can specify when licenses should be applied. For
example, to specify that a specific license identifier should only apply
to versionup to and including 1.5, you could write the following directive:
```python
license("MIT", when="@:1.5")
```
Diffstat (limited to '.github/workflows/execute_installer.ps1')
0 files changed, 0 insertions, 0 deletions