Commit c4c3d7a
ci: Add script to sync CITATION.cff to other files (acts-project#4937)
This pull request introduces an automated workflow for synchronizing citation metadata across `CITATION.cff`, `.zenodo.json`, and `AUTHORS` files, ensuring consistency and maintainability. It adds a new script and pre-commit hook for this purpose, and updates the metadata in all three files to reflect the latest contributors and affiliations.
**Citation metadata automation and updates:**
* Added a new script `CI/sync_citation_metadata.py` to generate `.zenodo.json` and `AUTHORS` from `CITATION.cff`, and check for consistency between them. This script uses `typer`, `rich`, and `pyyaml` for CLI, output formatting, and YAML parsing.
* Registered the new script as a pre-commit hook in `.pre-commit-config.yaml`, so citation metadata consistency is enforced automatically.
**Metadata content updates:**
* Updated `CITATION.cff`, `.zenodo.json`, and `AUTHORS` files to reflect the latest version (`v44.2.0`), new release date, and a significantly revised and expanded list of contributors and affiliations, with improved handling of unaffiliated contributors. [[1]](diffhunk://#diff-9b9f76394a441ff40bf8d7a0f3e0ddd7ae97abfa9a9a6abaedccf76dc4d51295L6-R125) [[2]](diffhunk://#diff-69450eccf330a9c709df151fad75b5a9c02976ac29bd5d251bb16eb367997892L4-R171) [[3]](diffhunk://#diff-ab6af77435f58cc0c9d4c31dfe05656e45187cc7c7fc02aada401a7642125463L3-R48)
Blocked by:
- acts-project#49171 parent cadebd8 commit c4c3d7a
File tree
5 files changed
+512
-129
lines changed- CI
5 files changed
+512
-129
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
| 4 | + | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
| 9 | + | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
| 13 | + | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
19 | 32 | | |
20 | 33 | | |
21 | 34 | | |
22 | | - | |
| 35 | + | |
23 | 36 | | |
24 | 37 | | |
25 | | - | |
26 | | - | |
| 38 | + | |
| 39 | + | |
27 | 40 | | |
28 | 41 | | |
29 | | - | |
30 | | - | |
| 42 | + | |
| 43 | + | |
31 | 44 | | |
32 | 45 | | |
33 | | - | |
34 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
35 | 52 | | |
36 | 53 | | |
37 | 54 | | |
38 | | - | |
| 55 | + | |
39 | 56 | | |
40 | 57 | | |
41 | | - | |
42 | | - | |
| 58 | + | |
| 59 | + | |
43 | 60 | | |
44 | 61 | | |
45 | | - | |
46 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
47 | 65 | | |
48 | 66 | | |
49 | 67 | | |
50 | 68 | | |
51 | 69 | | |
52 | 70 | | |
53 | | - | |
54 | | - | |
| 71 | + | |
| 72 | + | |
55 | 73 | | |
56 | 74 | | |
57 | 75 | | |
58 | | - | |
| 76 | + | |
59 | 77 | | |
60 | 78 | | |
61 | | - | |
62 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
63 | 85 | | |
64 | 86 | | |
65 | 87 | | |
66 | | - | |
| 88 | + | |
67 | 89 | | |
68 | 90 | | |
69 | | - | |
70 | | - | |
| 91 | + | |
| 92 | + | |
71 | 93 | | |
72 | 94 | | |
73 | | - | |
74 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
75 | 101 | | |
76 | 102 | | |
77 | 103 | | |
78 | | - | |
| 104 | + | |
79 | 105 | | |
80 | 106 | | |
81 | | - | |
82 | | - | |
| 107 | + | |
| 108 | + | |
83 | 109 | | |
84 | 110 | | |
85 | | - | |
86 | | - | |
| 111 | + | |
| 112 | + | |
87 | 113 | | |
88 | 114 | | |
89 | | - | |
90 | | - | |
| 115 | + | |
| 116 | + | |
91 | 117 | | |
92 | 118 | | |
93 | | - | |
94 | | - | |
| 119 | + | |
| 120 | + | |
95 | 121 | | |
96 | 122 | | |
97 | | - | |
98 | | - | |
99 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
100 | 129 | | |
101 | 130 | | |
102 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
103 | 136 | | |
104 | 137 | | |
105 | 138 | | |
106 | 139 | | |
107 | | - | |
108 | | - | |
109 | | - | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
110 | 151 | | |
111 | 152 | | |
112 | | - | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
113 | 162 | | |
114 | 163 | | |
115 | 164 | | |
116 | 165 | | |
117 | | - | |
118 | | - | |
119 | | - | |
| 166 | + | |
| 167 | + | |
120 | 168 | | |
121 | 169 | | |
122 | | - | |
123 | | - | |
124 | | - | |
| 170 | + | |
| 171 | + | |
125 | 172 | | |
126 | 173 | | |
127 | 174 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | | - | |
| 4 | + | |
6 | 5 | | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | | - | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | 25 | | |
| 26 | + | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | | - | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
| 32 | + | |
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
| |||
43 | 42 | | |
44 | 43 | | |
45 | 44 | | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
0 commit comments