Skip to content

Commit f2aa598

Browse files
Editing cff and adding of validation to reactivate auto-detection of releases by zenodo (#159)
* First scratch for CFF file validateion. * use uv * update the cff validation.yml file. * Fix uv versions. * Use uv. * fiy uv action version. * Bring the funding section. * fix cffconvert check for zenodo. * Fix License-2.0 * Use --with option in uv run. * minor edits on the cff, otherwise #159 is ready for a merge --------- Co-authored-by: mkuehbach <markus.kuehbach@physik.hu-berlin.de>
1 parent 8d16147 commit f2aa598

2 files changed

Lines changed: 46 additions & 8 deletions

File tree

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Validate CITATION.cff
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- "CITATION.cff"
9+
- ".github/workflows/cff-validation.yml"
10+
pull_request:
11+
branches:
12+
- main
13+
paths:
14+
- "CITATION.cff"
15+
- ".github/workflows/cff-validation.yml"
16+
17+
env:
18+
PYTHON_VERSION: 3.12
19+
20+
jobs:
21+
validate-cff:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Checkout repository
25+
uses: actions/checkout@v4
26+
27+
- name: Install uv
28+
uses: astral-sh/setup-uv@v5
29+
with:
30+
python-version: ${{ env.PYTHON_VERSION }}
31+
32+
- name: Test Zenodo conversion
33+
run: |
34+
# Remove the funding section to avoid validation issues with Zenodo
35+
sed -i '/^funding:/,$d' CITATION.cff
36+
37+
uv run --with cffconvert cffconvert --validate --format zenodo || exit 1

CITATION.cff

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ message:
55
If you use this software, please cite it using the
66
metadata from this file.
77
type: software
8+
89
authors:
910
- given-names: Markus
1011
family-names: Kühbach
@@ -27,9 +28,9 @@ authors:
2728
- given-names: Claudia
2829
family-names: Draxl
2930
orcid: 'https://orcid.org/0000-0003-3523-6657'
30-
doi: 10.5281/zenodo.14263105
31-
repository-code: https://github.com/FAIRmat-NFDI/pynxtools-em
32-
url: https://zenodo.org/records/14263105
31+
repository-code: 'https://github.com/FAIRmat-NFDI/pynxtools-em'
32+
doi: '10.5281/zenodo.14263105'
33+
url: 'https://zenodo.org/records/14263105'
3334
keywords:
3435
- NeXus
3536
- pynxtools
@@ -39,17 +40,17 @@ keywords:
3940
- Microscopy
4041
abstract:
4142
pynxtools-em is a reader plugin for pynxtools (https://github.com/FAIRmat-NFDI/pynxtools)
42-
written in Python. pynxtools-em is a tool for reading and translating data from various proprietary
43-
and open-source data formats from technology partners and the wider electron microscopy community and
44-
standardizing it such that it is compliant with the NeXus application definition NXem
45-
(https://fairmat-nfdi.github.io/nexus_definitions/).
43+
written in Python. It is a tool for reading and translating data from various proprietary
44+
and open-source data formats of technology partners from electron microscopy community.
45+
The tool standardizes metadata and data such that these are compliant with the NeXus
46+
application definition NXem (https://fairmat-nfdi.github.io/nexus_definitions/).
4647

4748
pynxtools-em is developed both as a standalone reader and as a tool within NOMAD,
4849
an open-source research data management platform for Materials Science (https://nomad-lab.eu/nomad-lab/).
4950

5051
The work is funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) - 460197019 (FAIRmat)
5152
(https://gepris.dfg.de/gepris/projekt/460197019?language=en).
52-
license: Apache Software License 2.0
53+
license: Apache-2.0
5354
funding:
5455
- name: Deutsche Forschungsgemeinschaft
5556
award-number: 460197019

0 commit comments

Comments
 (0)