Skip to content

Commit 8342121

Browse files
authored
add citation file and validating GHA (#5483)
* add citation file and validating GHA * adding the CITATION.cff to the manifest file * added - name: to CITATION.cff * some of the requested changes * updating the citation page and adding whatsnew entry * adding repository link * rewording and adding more links
1 parent 9d83811 commit 8342121

File tree

5 files changed

+70
-47
lines changed

5 files changed

+70
-47
lines changed

.github/workflows/ci-citation.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: ci-citation
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "CITATION.cff"
7+
8+
push:
9+
paths:
10+
- "CITATION.cff"
11+
12+
workflow_dispatch:
13+
14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.ref }}
16+
cancel-in-progress: true
17+
18+
jobs:
19+
validate:
20+
name: "validate"
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v4
24+
with:
25+
fetch-depth: 0
26+
27+
- name: "check CITATION.cff"
28+
uses: citation-file-format/cffconvert-github-action@4cf11baa70a673bfdf9dad0acc7ee33b3f4b6084
29+
with:
30+
args: "--validate"

CITATION.cff

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
cff-version: 1.2.0
2+
message: "If Iris played an important part in your research then please add us to your reference list by using the references below."
3+
title: "Iris"
4+
keywords:
5+
- "cf-metadata"
6+
- "data-analysis"
7+
- "earth-science"
8+
- "grib"
9+
- "netcdf"
10+
- "meteorology"
11+
- "oceanography"
12+
- "space-weather"
13+
- "ugrid"
14+
- "visualisation"
15+
authors:
16+
- name: "Iris contributors"
17+
abstract: "A powerful, format-agnostic, and community-driven Python package for analysing and visualising Earth science data"
18+
license: "BSD-3-Clause"
19+
license-url: "https://spdx.org/licenses/BSD-3-Clause.html"
20+
doi: "10.5281/zenodo.595182"
21+
url: "http://scitools.org.uk/"
22+
repository-code: "https://github.com/SciTools/iris"
23+
type: "software"

MANIFEST.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ exclude .ruff.toml
1818
exclude CHANGES
1919
exclude CODE_OF_CONDUCT.md
2020
exclude codecov.yml
21+
include COPYING
22+
include COPYING.LESSER
23+
include CITATION.cff
2124
include LICENSE
2225
exclude Makefile
2326
exclude noxfile.py

docs/src/userguide/citation.rst

Lines changed: 10 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -5,53 +5,16 @@ Citing Iris
55
===========
66

77
If Iris played an important part in your research then please add us to your
8-
reference list by using one of the recommendations below.
8+
reference list by using the recommendations below.
99

10-
************
11-
BibTeX Entry
12-
************
10+
Iris can be cited directly from the `GitHub repository <https://github.com/SciTools/iris>`_
11+
, for more information including where to find the citation on the repo please
12+
see the `GitHub documentation`_.
1313

14-
For example::
14+
The Iris citation does not contain the version of the software used. We
15+
recommend that you use the version number of the release you used, and the
16+
commit hash if you checked out a unreleased version of Iris. This will allow
17+
others to reproduce the environment that you worked in. You can see what a
18+
citation should look like for a particular version of Iris, on the `GitHub documentation`_.
1519

16-
@manual{Iris,
17-
author = {{Met Office}},
18-
title = {Iris: A powerful, format-agnostic, and community-driven Python package for analysing and visualising Earth science data},
19-
edition = {v3.7},
20-
year = {2010 - 2023},
21-
address = {Exeter, Devon},
22-
url = {https://github.com/SciTools/iris},
23-
doi = {10.5281/zenodo.8305232}
24-
}
25-
26-
27-
*******************
28-
Downloaded Software
29-
*******************
30-
31-
Suggested format::
32-
33-
ProductName. Version. ReleaseDate. Publisher. Location. DOIorURL. DownloadDate.
34-
35-
For example::
36-
37-
Iris. v3.7. 31-Aug-2023. Met Office. UK. https://doi.org/10.5281/zenodo.8305232 22-12-2022
38-
39-
40-
********************
41-
Checked Out Software
42-
********************
43-
44-
Suggested format::
45-
46-
ProductName. Publisher. URL. CheckoutDate. RepositorySpecificCheckoutInformation.
47-
48-
For example::
49-
50-
Iris. Met Office. https://github.com/SciTools/iris.git 31-08-2023
51-
52-
.. _How to cite and describe software: https://software.ac.uk/how-cite-software
53-
54-
55-
Reference: [Jackson]_.
56-
57-
.. [Jackson] Jackson, M. 2012. `How to cite and describe software`_. Accessed 06-03-2013.
20+
.. _GitHub documentation: https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-citation-files/

docs/src/whatsnew/latest.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ This document explains the changes made to Iris for this release
2626

2727
#. `@lbdreyer`_ relicensed Iris from LGPL-3 to BSD-3. (:pull: `5577`)
2828

29+
#. `@HGWright`_, `@bjlittle`_ and `@trexfeathers`_ (reviewers) added a
30+
CITATION.cff file to Iris and updated the :ref:`citation documentation <Citing_Iris>`
31+
, to help users cite Iris in their work. (:pull:`5483`)
32+
2933

3034
✨ Features
3135
===========

0 commit comments

Comments
 (0)