@@ -64,11 +64,12 @@ This workflow runs after the tag or release exists and can report problems, but
6464- ` composer.json ` (PHP)
6565- ` Cargo.toml ` (Rust)
6666- ` pom.xml ` (Java)
67+ - ` .nuspec ` (.NET/C#/NuGet)
6768- ` DESCRIPTION ` (R)
6869- ` ro-crate-metadata.json ` (RO-Crate)
6970
7071
71- ✅ Cross-language support (e.g., Python, R, JS/TypeScript, Java, Rust, PHP)
72+ ✅ Cross-language support (e.g., Python, R, JS/TypeScript, Java, Rust, PHP, C# )
7273
7374✅ Cross-standard support for FAIR and Open Science metadata (e.g., CFF, CodeMeta, RO-Crate, Zenodo)
7475
@@ -92,22 +93,24 @@ This workflow runs after the tag or release exists and can report problems, but
9293
9394These files are currently supported out-of-the-box:
9495
95- | File | Parser used |
96- | ------------------| -------------|
96+ | File | Initial Version Format (translates to PEP 440 for comparison) |
97+ | ------------------| ------------------- |
9798| ` CITATION.cff ` | PEP 440 |
9899| ` pyproject.toml ` | PEP 440 |
99100| ` setup.py ` | PEP 440 |
100- | ` package.json ` | Strict SemVer (converted from canonical PEP 440 tag) |
101+ | ` package.json ` | Strict SemVer |
101102| ` codemeta.json ` | PEP 440 |
102103| ` .zenodo.json ` | PEP 440 |
103104| ` composer.json ` | PEP 440 |
104105| ` Cargo.toml ` | PEP 440 |
105106| ` pom.xml ` | PEP 440 |
107+ | ` .nuspec ` | Strict SemVer |
106108| R ` DESCRIPTION ` file | PEP 440 |
107109| Python file with ` __version__ ` assignment | PEP 440 |
108110| ` ro-crate-metadata.json ` | PEP 440 |
109111
110-
112+ Note SemVer allows arbitrary pre-releases while PEP 440 only allows 3 kinds (a, b, rc).
113+ During conversion,
111114
112115---
113116
@@ -146,6 +149,8 @@ These files are currently supported out-of-the-box:
146149| ` --r-description-path ` | ` r_description_path ` | Path to R ` DESCRIPTION ` file | No | ` DESCRIPTION ` |
147150| ` --check-pom-xml ` | ` check_pom_xml ` | Check ` pom.xml ` ? (` true/false ` ) | No | ` true ` |
148151| ` --pom-xml-path ` | ` pom_xml_path ` | Path to ` pom.xml ` | No | ` pom.xml ` |
152+ | ` --check-nuspec ` | ` check_nu_spec ` | Check ` .nuspec ` ? (` true/false ` ) | No | ` true ` |
153+ | ` --nuspec-path ` | ` nuspec_path ` | Path to ` .nuspec ` | No | ` .nuspec ` |
149154
150155
151156
@@ -200,10 +205,10 @@ jobs:
200205 - name : Install Python
201206 uses : actions/setup-python@v5
202207 with :
203- python-version : " >=3.12 "
208+ python-version : " >=3.10 "
204209
205210 - name : Run same-version
206- uses : willynilly/same-version@v4 .0.0
211+ uses : willynilly/same-version@v5 .0.0
207212 with :
208213 fail_for_missing_file : false
209214 check_github_event : true
@@ -219,6 +224,7 @@ jobs:
219224 check_cargo_toml : false
220225 check_py_version_assignment : false
221226 check_pom_xml : false
227+ check_nuspec : false
222228 check_composer_json : false
223229 check_ro_crate_metadata_json : false
224230` ` `
@@ -248,10 +254,10 @@ jobs:
248254 - name : Install Python
249255 uses : actions/setup-python@v5
250256 with :
251- python-version : " >=3.12 "
257+ python-version : " >=3.10 "
252258
253259 - name : Run same-version
254- uses : willynilly/same-version@v4 .0.0
260+ uses : willynilly/same-version@v5 .0.0
255261 with :
256262 fail_for_missing_file : false
257263 check_github_event : true
@@ -267,6 +273,7 @@ jobs:
267273 check_cargo_toml : false
268274 check_py_version_assignment : false
269275 check_pom_xml : false
276+ check_nuspec : false
270277 check_composer_json : false
271278 check_ro_crate_metadata_json : false
272279` ` `
@@ -287,7 +294,7 @@ Add to your `.pre-commit-config.yaml`:
287294` ` ` yaml
288295repos:
289296 - repo: https://github.com/willynilly/same-version
290- rev: v4 .0.0 # Use latest tag
297+ rev: v5 .0.0 # Use latest tag
291298 hooks:
292299 - id: same-version
293300 stages: [pre-commit, pre-push]
@@ -355,7 +362,7 @@ To set up your development environment:
355362` ` ` bash
356363git clone https://github.com/willynilly/same-version.git
357364cd same-version
358- pip install -e .
365+ pip install -e .[testing,dev]
359366pre-commit install -t pre-commit -t pre-push
360367pre-commit run --all-files
361368` ` `
0 commit comments