diff --git a/CITATION.cff b/CITATION.cff index 9cfdc165..6adf4d2a 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -31,6 +31,9 @@ authors: - family-names: Kinoshita given-names: Bruno orcid: https://orcid.org/0000-0001-8250-4074 + - family-names: Lenz + given-names: Julian + orcid: https://orcid.org/0000-0001-5250-0005 - family-names: Leo given-names: Simone orcid: https://orcid.org/0000-0001-8271-5429 diff --git a/README.md b/README.md index 3fd58888..6db6548d 100644 --- a/README.md +++ b/README.md @@ -628,6 +628,7 @@ Options: * Copyright 2025-2026 Senckenberg Society for Nature Research (SGN), DE * Copyright 2025-2026 European Molecular Biology Laboratory (EMBL), Heidelberg, DE * Copyright 2026 Spanish National Research Council (CSIC), ES +* Copyright 2026 Helmholtz-Zentrum Dresden-Rossendorf (HZDR), DE Licensed under the Apache License, version 2.0 , diff --git a/examples/fastapi/main.py b/examples/fastapi/main.py index fd9b09dd..b8c9c612 100644 --- a/examples/fastapi/main.py +++ b/examples/fastapi/main.py @@ -8,6 +8,7 @@ # Copyright 2025-2026 Senckenberg Society for Nature Research (SGN), DE # Copyright 2025-2026 European Molecular Biology Laboratory (EMBL), Heidelberg, DE # Copyright 2026 Spanish National Research Council (CSIC), ES +# Copyright 2026 Helmholtz-Zentrum Dresden-Rossendorf (HZDR), DE # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/examples/read_test_metadata.py b/examples/read_test_metadata.py index 4fe6087d..34d647a8 100644 --- a/examples/read_test_metadata.py +++ b/examples/read_test_metadata.py @@ -8,6 +8,7 @@ # Copyright 2025-2026 Senckenberg Society for Nature Research (SGN), DE # Copyright 2025-2026 European Molecular Biology Laboratory (EMBL), Heidelberg, DE # Copyright 2026 Spanish National Research Council (CSIC), ES +# Copyright 2026 Helmholtz-Zentrum Dresden-Rossendorf (HZDR), DE # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/rocrate/__init__.py b/rocrate/__init__.py index 986610c3..ad1fe266 100644 --- a/rocrate/__init__.py +++ b/rocrate/__init__.py @@ -10,6 +10,7 @@ # Copyright 2025-2026 Senckenberg Society for Nature Research (SGN), DE # Copyright 2025-2026 European Molecular Biology Laboratory (EMBL), Heidelberg, DE # Copyright 2026 Spanish National Research Council (CSIC), ES +# Copyright 2026 Helmholtz-Zentrum Dresden-Rossendorf (HZDR), DE # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -42,6 +43,7 @@ 'Matthias Hörtenhuber', 'Sebastiaan Huber', 'Bruno Kinoshita', + 'Julian Lenz', 'Simone Leo', 'Pablo Orviz', 'Luca Pireddu', @@ -61,6 +63,7 @@ Copyright 2025-2026 Senckenberg Society for Nature Research (SGN), DE Copyright 2025-2026 European Molecular Biology Laboratory (EMBL), Heidelberg, DE Copyright 2026 Spanish National Research Council (CSIC), ES +Copyright 2026 Helmholtz-Zentrum Dresden-Rossendorf (HZDR), DE """ __license__ = ("Apache License, version 2.0 " "") diff --git a/rocrate/cli.py b/rocrate/cli.py index 47e3338b..8d177349 100644 --- a/rocrate/cli.py +++ b/rocrate/cli.py @@ -8,6 +8,7 @@ # Copyright 2025-2026 Senckenberg Society for Nature Research (SGN), DE # Copyright 2025-2026 European Molecular Biology Laboratory (EMBL), Heidelberg, DE # Copyright 2026 Spanish National Research Council (CSIC), ES +# Copyright 2026 Helmholtz-Zentrum Dresden-Rossendorf (HZDR), DE # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -93,9 +94,15 @@ def cli(): metavar="NAME", help="Exclude files or directories from the metadata file. NAME may be a single name or a comma-separated list of names.", ) +@click.option( + "--crate-version", + default="1.2", + type=str, + help="Version of the RO-Crate standard to initialize the crate with.", +) @OPTION_CRATE_PATH -def init(crate_dir, gen_preview, exclude): - crate = ROCrate(crate_dir, init=True, gen_preview=gen_preview, exclude=exclude) +def init(crate_dir, gen_preview, exclude, crate_version): + crate = ROCrate(crate_dir, init=True, gen_preview=gen_preview, exclude=exclude, version=crate_version) crate.metadata.write(crate_dir) if crate.preview: crate.preview.write(crate_dir) diff --git a/rocrate/memory_buffer.py b/rocrate/memory_buffer.py index c9b5340d..eaa3b60d 100644 --- a/rocrate/memory_buffer.py +++ b/rocrate/memory_buffer.py @@ -8,6 +8,7 @@ # Copyright 2025-2026 Senckenberg Society for Nature Research (SGN), DE # Copyright 2025-2026 European Molecular Biology Laboratory (EMBL), Heidelberg, DE # Copyright 2026 Spanish National Research Council (CSIC), ES +# Copyright 2026 Helmholtz-Zentrum Dresden-Rossendorf (HZDR), DE # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/rocrate/metadata.py b/rocrate/metadata.py index dfa009ae..281db8dd 100644 --- a/rocrate/metadata.py +++ b/rocrate/metadata.py @@ -8,6 +8,7 @@ # Copyright 2025-2026 Senckenberg Society for Nature Research (SGN), DE # Copyright 2025-2026 European Molecular Biology Laboratory (EMBL), Heidelberg, DE # Copyright 2026 Spanish National Research Council (CSIC), ES +# Copyright 2026 Helmholtz-Zentrum Dresden-Rossendorf (HZDR), DE # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/rocrate/model/__init__.py b/rocrate/model/__init__.py index 59bbe3bc..a4ca8cda 100644 --- a/rocrate/model/__init__.py +++ b/rocrate/model/__init__.py @@ -8,6 +8,7 @@ # Copyright 2025-2026 Senckenberg Society for Nature Research (SGN), DE # Copyright 2025-2026 European Molecular Biology Laboratory (EMBL), Heidelberg, DE # Copyright 2026 Spanish National Research Council (CSIC), ES +# Copyright 2026 Helmholtz-Zentrum Dresden-Rossendorf (HZDR), DE # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/rocrate/model/computationalworkflow.py b/rocrate/model/computationalworkflow.py index 093ab657..eb77dd83 100644 --- a/rocrate/model/computationalworkflow.py +++ b/rocrate/model/computationalworkflow.py @@ -10,6 +10,7 @@ # Copyright 2025-2026 Senckenberg Society for Nature Research (SGN), DE # Copyright 2025-2026 European Molecular Biology Laboratory (EMBL), Heidelberg, DE # Copyright 2026 Spanish National Research Council (CSIC), ES +# Copyright 2026 Helmholtz-Zentrum Dresden-Rossendorf (HZDR), DE # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/rocrate/model/computerlanguage.py b/rocrate/model/computerlanguage.py index 3103051c..76a047b7 100644 --- a/rocrate/model/computerlanguage.py +++ b/rocrate/model/computerlanguage.py @@ -8,6 +8,7 @@ # Copyright 2025-2026 Senckenberg Society for Nature Research (SGN), DE # Copyright 2025-2026 European Molecular Biology Laboratory (EMBL), Heidelberg, DE # Copyright 2026 Spanish National Research Council (CSIC), ES +# Copyright 2026 Helmholtz-Zentrum Dresden-Rossendorf (HZDR), DE # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/rocrate/model/contextentity.py b/rocrate/model/contextentity.py index a59cefcf..296c4fb2 100644 --- a/rocrate/model/contextentity.py +++ b/rocrate/model/contextentity.py @@ -10,6 +10,7 @@ # Copyright 2025-2026 Senckenberg Society for Nature Research (SGN), DE # Copyright 2025-2026 European Molecular Biology Laboratory (EMBL), Heidelberg, DE # Copyright 2026 Spanish National Research Council (CSIC), ES +# Copyright 2026 Helmholtz-Zentrum Dresden-Rossendorf (HZDR), DE # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/rocrate/model/creativework.py b/rocrate/model/creativework.py index 95dcac36..ac50c3db 100644 --- a/rocrate/model/creativework.py +++ b/rocrate/model/creativework.py @@ -10,6 +10,7 @@ # Copyright 2025-2026 Senckenberg Society for Nature Research (SGN), DE # Copyright 2025-2026 European Molecular Biology Laboratory (EMBL), Heidelberg, DE # Copyright 2026 Spanish National Research Council (CSIC), ES +# Copyright 2026 Helmholtz-Zentrum Dresden-Rossendorf (HZDR), DE # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/rocrate/model/data_entity.py b/rocrate/model/data_entity.py index ca35783e..4bae8526 100644 --- a/rocrate/model/data_entity.py +++ b/rocrate/model/data_entity.py @@ -10,6 +10,7 @@ # Copyright 2025-2026 Senckenberg Society for Nature Research (SGN), DE # Copyright 2025-2026 European Molecular Biology Laboratory (EMBL), Heidelberg, DE # Copyright 2026 Spanish National Research Council (CSIC), ES +# Copyright 2026 Helmholtz-Zentrum Dresden-Rossendorf (HZDR), DE # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/rocrate/model/dataset.py b/rocrate/model/dataset.py index 859c672b..c6648399 100644 --- a/rocrate/model/dataset.py +++ b/rocrate/model/dataset.py @@ -10,6 +10,7 @@ # Copyright 2025-2026 Senckenberg Society for Nature Research (SGN), DE # Copyright 2025-2026 European Molecular Biology Laboratory (EMBL), Heidelberg, DE # Copyright 2026 Spanish National Research Council (CSIC), ES +# Copyright 2026 Helmholtz-Zentrum Dresden-Rossendorf (HZDR), DE # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/rocrate/model/entity.py b/rocrate/model/entity.py index ddc4a776..80f1cb84 100644 --- a/rocrate/model/entity.py +++ b/rocrate/model/entity.py @@ -10,6 +10,7 @@ # Copyright 2025-2026 Senckenberg Society for Nature Research (SGN), DE # Copyright 2025-2026 European Molecular Biology Laboratory (EMBL), Heidelberg, DE # Copyright 2026 Spanish National Research Council (CSIC), ES +# Copyright 2026 Helmholtz-Zentrum Dresden-Rossendorf (HZDR), DE # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/rocrate/model/file.py b/rocrate/model/file.py index 0c087433..e0d0ca4e 100644 --- a/rocrate/model/file.py +++ b/rocrate/model/file.py @@ -10,6 +10,7 @@ # Copyright 2025-2026 Senckenberg Society for Nature Research (SGN), DE # Copyright 2025-2026 European Molecular Biology Laboratory (EMBL), Heidelberg, DE # Copyright 2026 Spanish National Research Council (CSIC), ES +# Copyright 2026 Helmholtz-Zentrum Dresden-Rossendorf (HZDR), DE # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/rocrate/model/file_or_dir.py b/rocrate/model/file_or_dir.py index 0b5372ef..eb245c85 100644 --- a/rocrate/model/file_or_dir.py +++ b/rocrate/model/file_or_dir.py @@ -10,6 +10,7 @@ # Copyright 2025-2026 Senckenberg Society for Nature Research (SGN), DE # Copyright 2025-2026 European Molecular Biology Laboratory (EMBL), Heidelberg, DE # Copyright 2026 Spanish National Research Council (CSIC), ES +# Copyright 2026 Helmholtz-Zentrum Dresden-Rossendorf (HZDR), DE # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/rocrate/model/metadata.py b/rocrate/model/metadata.py index af16bdb2..5ce73f0e 100644 --- a/rocrate/model/metadata.py +++ b/rocrate/model/metadata.py @@ -10,6 +10,7 @@ # Copyright 2025-2026 Senckenberg Society for Nature Research (SGN), DE # Copyright 2025-2026 European Molecular Biology Laboratory (EMBL), Heidelberg, DE # Copyright 2026 Spanish National Research Council (CSIC), ES +# Copyright 2026 Helmholtz-Zentrum Dresden-Rossendorf (HZDR), DE # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/rocrate/model/person.py b/rocrate/model/person.py index 9652580d..b10b651a 100644 --- a/rocrate/model/person.py +++ b/rocrate/model/person.py @@ -10,6 +10,7 @@ # Copyright 2025-2026 Senckenberg Society for Nature Research (SGN), DE # Copyright 2025-2026 European Molecular Biology Laboratory (EMBL), Heidelberg, DE # Copyright 2026 Spanish National Research Council (CSIC), ES +# Copyright 2026 Helmholtz-Zentrum Dresden-Rossendorf (HZDR), DE # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/rocrate/model/preview.py b/rocrate/model/preview.py index 86d4f6d7..48e95fd1 100644 --- a/rocrate/model/preview.py +++ b/rocrate/model/preview.py @@ -10,6 +10,7 @@ # Copyright 2025-2026 Senckenberg Society for Nature Research (SGN), DE # Copyright 2025-2026 European Molecular Biology Laboratory (EMBL), Heidelberg, DE # Copyright 2026 Spanish National Research Council (CSIC), ES +# Copyright 2026 Helmholtz-Zentrum Dresden-Rossendorf (HZDR), DE # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/rocrate/model/root_dataset.py b/rocrate/model/root_dataset.py index e1c07267..d0faacaa 100644 --- a/rocrate/model/root_dataset.py +++ b/rocrate/model/root_dataset.py @@ -10,6 +10,7 @@ # Copyright 2025-2026 Senckenberg Society for Nature Research (SGN), DE # Copyright 2025-2026 European Molecular Biology Laboratory (EMBL), Heidelberg, DE # Copyright 2026 Spanish National Research Council (CSIC), ES +# Copyright 2026 Helmholtz-Zentrum Dresden-Rossendorf (HZDR), DE # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/rocrate/model/softwareapplication.py b/rocrate/model/softwareapplication.py index 941bc110..e5d6b94f 100644 --- a/rocrate/model/softwareapplication.py +++ b/rocrate/model/softwareapplication.py @@ -8,6 +8,7 @@ # Copyright 2025-2026 Senckenberg Society for Nature Research (SGN), DE # Copyright 2025-2026 European Molecular Biology Laboratory (EMBL), Heidelberg, DE # Copyright 2026 Spanish National Research Council (CSIC), ES +# Copyright 2026 Helmholtz-Zentrum Dresden-Rossendorf (HZDR), DE # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/rocrate/model/testdefinition.py b/rocrate/model/testdefinition.py index 207dad98..c34ed32e 100644 --- a/rocrate/model/testdefinition.py +++ b/rocrate/model/testdefinition.py @@ -8,6 +8,7 @@ # Copyright 2025-2026 Senckenberg Society for Nature Research (SGN), DE # Copyright 2025-2026 European Molecular Biology Laboratory (EMBL), Heidelberg, DE # Copyright 2026 Spanish National Research Council (CSIC), ES +# Copyright 2026 Helmholtz-Zentrum Dresden-Rossendorf (HZDR), DE # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/rocrate/model/testinstance.py b/rocrate/model/testinstance.py index e3be429d..c4233053 100644 --- a/rocrate/model/testinstance.py +++ b/rocrate/model/testinstance.py @@ -8,6 +8,7 @@ # Copyright 2025-2026 Senckenberg Society for Nature Research (SGN), DE # Copyright 2025-2026 European Molecular Biology Laboratory (EMBL), Heidelberg, DE # Copyright 2026 Spanish National Research Council (CSIC), ES +# Copyright 2026 Helmholtz-Zentrum Dresden-Rossendorf (HZDR), DE # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/rocrate/model/testservice.py b/rocrate/model/testservice.py index 4fbb5a8e..2809c18e 100644 --- a/rocrate/model/testservice.py +++ b/rocrate/model/testservice.py @@ -8,6 +8,7 @@ # Copyright 2025-2026 Senckenberg Society for Nature Research (SGN), DE # Copyright 2025-2026 European Molecular Biology Laboratory (EMBL), Heidelberg, DE # Copyright 2026 Spanish National Research Council (CSIC), ES +# Copyright 2026 Helmholtz-Zentrum Dresden-Rossendorf (HZDR), DE # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/rocrate/model/testsuite.py b/rocrate/model/testsuite.py index 17c41892..104a278d 100644 --- a/rocrate/model/testsuite.py +++ b/rocrate/model/testsuite.py @@ -8,6 +8,7 @@ # Copyright 2025-2026 Senckenberg Society for Nature Research (SGN), DE # Copyright 2025-2026 European Molecular Biology Laboratory (EMBL), Heidelberg, DE # Copyright 2026 Spanish National Research Council (CSIC), ES +# Copyright 2026 Helmholtz-Zentrum Dresden-Rossendorf (HZDR), DE # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/rocrate/rocrate.py b/rocrate/rocrate.py index 005595f0..3e75cd53 100644 --- a/rocrate/rocrate.py +++ b/rocrate/rocrate.py @@ -8,6 +8,7 @@ # Copyright 2025-2026 Senckenberg Society for Nature Research (SGN), DE # Copyright 2025-2026 European Molecular Biology Laboratory (EMBL), Heidelberg, DE # Copyright 2026 Spanish National Research Council (CSIC), ES +# Copyright 2026 Helmholtz-Zentrum Dresden-Rossendorf (HZDR), DE # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -150,7 +151,7 @@ def __init__(self, self.mode = Mode.INIT if isinstance(source, dict): raise ValueError("parameter 'init' is not compatible with a dict source") - self.__init_from_tree(source, gen_preview=gen_preview) + self.__init_from_tree(source, gen_preview=gen_preview, version=version) else: self.mode = Mode.READ source = self.__read(source, gen_preview=gen_preview) diff --git a/rocrate/utils.py b/rocrate/utils.py index a7c743b8..4f318683 100644 --- a/rocrate/utils.py +++ b/rocrate/utils.py @@ -10,6 +10,7 @@ # Copyright 2025-2026 Senckenberg Society for Nature Research (SGN), DE # Copyright 2025-2026 European Molecular Biology Laboratory (EMBL), Heidelberg, DE # Copyright 2026 Spanish National Research Council (CSIC), ES +# Copyright 2026 Helmholtz-Zentrum Dresden-Rossendorf (HZDR), DE # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/rocrate/vocabs.py b/rocrate/vocabs.py index 522d6fe3..89774834 100644 --- a/rocrate/vocabs.py +++ b/rocrate/vocabs.py @@ -10,6 +10,7 @@ # Copyright 2025-2026 Senckenberg Society for Nature Research (SGN), DE # Copyright 2025-2026 European Molecular Biology Laboratory (EMBL), Heidelberg, DE # Copyright 2026 Spanish National Research Council (CSIC), ES +# Copyright 2026 Helmholtz-Zentrum Dresden-Rossendorf (HZDR), DE # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/setup.py b/setup.py index 42f4f5c4..9494f43e 100755 --- a/setup.py +++ b/setup.py @@ -10,6 +10,7 @@ # Copyright 2025-2026 Senckenberg Society for Nature Research (SGN), DE # Copyright 2025-2026 European Molecular Biology Laboratory (EMBL), Heidelberg, DE # Copyright 2026 Spanish National Research Council (CSIC), ES +# Copyright 2026 Helmholtz-Zentrum Dresden-Rossendorf (HZDR), DE # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -70,6 +71,7 @@ 'Matthias Hörtenhuber', 'Sebastiaan Huber', 'Bruno Kinoshita', + 'Julian Lenz', 'Simone Leo', 'Pablo Orviz', 'Luca Pireddu', diff --git a/test/conftest.py b/test/conftest.py index 0ac5387c..e0c5bcbd 100644 --- a/test/conftest.py +++ b/test/conftest.py @@ -8,6 +8,7 @@ # Copyright 2025-2026 Senckenberg Society for Nature Research (SGN), DE # Copyright 2025-2026 European Molecular Biology Laboratory (EMBL), Heidelberg, DE # Copyright 2026 Spanish National Research Council (CSIC), ES +# Copyright 2026 Helmholtz-Zentrum Dresden-Rossendorf (HZDR), DE # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/test/test_cli.py b/test/test_cli.py index 61fa3b4f..110737c2 100644 --- a/test/test_cli.py +++ b/test/test_cli.py @@ -8,6 +8,7 @@ # Copyright 2025-2026 Senckenberg Society for Nature Research (SGN), DE # Copyright 2025-2026 European Molecular Biology Laboratory (EMBL), Heidelberg, DE # Copyright 2026 Spanish National Research Council (CSIC), ES +# Copyright 2026 Helmholtz-Zentrum Dresden-Rossendorf (HZDR), DE # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -121,6 +122,23 @@ def test_cli_init(test_data_dir, helpers, monkeypatch, cwd, gen_preview): assert json_entities["sort-and-change-case.ga"]["@type"] == "File" +@pytest.mark.parametrize("version", ["1.0", "1.1"]) +def test_cli_init_version(test_data_dir, helpers, version): + crate_dir = test_data_dir / "ro-crate-galaxy-sortchangecase" + metadata_path = crate_dir / helpers.METADATA_FILE_NAME + metadata_path.unlink() + args = ["init", "-c", str(crate_dir), "--crate-version", version] + + CliRunner().invoke(cli, args) + + # The metadata filename changed from `*.jsonld` to `*.json`. + # Handling earlier versions, we must be flexible here. + # The `next(...)` call might fail with `StopIteration` if the file is missing. + # But if so, this is just another test failure. + with next(metadata_path.parent.glob(f"{str(metadata_path.name)}*")).open("r") as file: + assert json.load(file)["@context"] == f"https://w3id.org/ro/crate/{version}/context" + + def test_cli_init_exclude(test_data_dir, helpers): crate_dir = test_data_dir / "ro-crate-galaxy-sortchangecase" (crate_dir / helpers.METADATA_FILE_NAME).unlink() diff --git a/test/test_jsonld.py b/test/test_jsonld.py index d79e00b9..bdc9d5b9 100644 --- a/test/test_jsonld.py +++ b/test/test_jsonld.py @@ -8,6 +8,7 @@ # Copyright 2025-2026 Senckenberg Society for Nature Research (SGN), DE # Copyright 2025-2026 European Molecular Biology Laboratory (EMBL), Heidelberg, DE # Copyright 2026 Spanish National Research Council (CSIC), ES +# Copyright 2026 Helmholtz-Zentrum Dresden-Rossendorf (HZDR), DE # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/test/test_metadata.py b/test/test_metadata.py index a2dd1b8b..e22df0ad 100644 --- a/test/test_metadata.py +++ b/test/test_metadata.py @@ -8,6 +8,7 @@ # Copyright 2025-2026 Senckenberg Society for Nature Research (SGN), DE # Copyright 2025-2026 European Molecular Biology Laboratory (EMBL), Heidelberg, DE # Copyright 2026 Spanish National Research Council (CSIC), ES +# Copyright 2026 Helmholtz-Zentrum Dresden-Rossendorf (HZDR), DE # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/test/test_model.py b/test/test_model.py index 040a75c9..be38124c 100644 --- a/test/test_model.py +++ b/test/test_model.py @@ -8,6 +8,7 @@ # Copyright 2025-2026 Senckenberg Society for Nature Research (SGN), DE # Copyright 2025-2026 European Molecular Biology Laboratory (EMBL), Heidelberg, DE # Copyright 2026 Spanish National Research Council (CSIC), ES +# Copyright 2026 Helmholtz-Zentrum Dresden-Rossendorf (HZDR), DE # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/test/test_read.py b/test/test_read.py index 075f90d0..7cf04c19 100644 --- a/test/test_read.py +++ b/test/test_read.py @@ -8,6 +8,7 @@ # Copyright 2025-2026 Senckenberg Society for Nature Research (SGN), DE # Copyright 2025-2026 European Molecular Biology Laboratory (EMBL), Heidelberg, DE # Copyright 2026 Spanish National Research Council (CSIC), ES +# Copyright 2026 Helmholtz-Zentrum Dresden-Rossendorf (HZDR), DE # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/test/test_readwrite.py b/test/test_readwrite.py index e5a385e6..4467506b 100644 --- a/test/test_readwrite.py +++ b/test/test_readwrite.py @@ -8,6 +8,7 @@ # Copyright 2025-2026 Senckenberg Society for Nature Research (SGN), DE # Copyright 2025-2026 European Molecular Biology Laboratory (EMBL), Heidelberg, DE # Copyright 2026 Spanish National Research Council (CSIC), ES +# Copyright 2026 Helmholtz-Zentrum Dresden-Rossendorf (HZDR), DE # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/test/test_test_metadata.py b/test/test_test_metadata.py index c695ed4f..f3dcf8b4 100644 --- a/test/test_test_metadata.py +++ b/test/test_test_metadata.py @@ -8,6 +8,7 @@ # Copyright 2025-2026 Senckenberg Society for Nature Research (SGN), DE # Copyright 2025-2026 European Molecular Biology Laboratory (EMBL), Heidelberg, DE # Copyright 2026 Spanish National Research Council (CSIC), ES +# Copyright 2026 Helmholtz-Zentrum Dresden-Rossendorf (HZDR), DE # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/test/test_utils.py b/test/test_utils.py index 9f05fb76..ca58b866 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -8,6 +8,7 @@ # Copyright 2025-2026 Senckenberg Society for Nature Research (SGN), DE # Copyright 2025-2026 European Molecular Biology Laboratory (EMBL), Heidelberg, DE # Copyright 2026 Spanish National Research Council (CSIC), ES +# Copyright 2026 Helmholtz-Zentrum Dresden-Rossendorf (HZDR), DE # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/test/test_workflow_ro_crate.py b/test/test_workflow_ro_crate.py index e9cd5479..e41ad6a2 100644 --- a/test/test_workflow_ro_crate.py +++ b/test/test_workflow_ro_crate.py @@ -8,6 +8,7 @@ # Copyright 2025-2026 Senckenberg Society for Nature Research (SGN), DE # Copyright 2025-2026 European Molecular Biology Laboratory (EMBL), Heidelberg, DE # Copyright 2026 Spanish National Research Council (CSIC), ES +# Copyright 2026 Helmholtz-Zentrum Dresden-Rossendorf (HZDR), DE # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/test/test_write.py b/test/test_write.py index 0f3f5bee..f88ef02c 100644 --- a/test/test_write.py +++ b/test/test_write.py @@ -8,6 +8,7 @@ # Copyright 2025-2026 Senckenberg Society for Nature Research (SGN), DE # Copyright 2025-2026 European Molecular Biology Laboratory (EMBL), Heidelberg, DE # Copyright 2026 Spanish National Research Council (CSIC), ES +# Copyright 2026 Helmholtz-Zentrum Dresden-Rossendorf (HZDR), DE # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/test/test_wrroc.py b/test/test_wrroc.py index e69a19a1..b6dea3e0 100644 --- a/test/test_wrroc.py +++ b/test/test_wrroc.py @@ -8,6 +8,7 @@ # Copyright 2025-2026 Senckenberg Society for Nature Research (SGN), DE # Copyright 2025-2026 European Molecular Biology Laboratory (EMBL), Heidelberg, DE # Copyright 2026 Spanish National Research Council (CSIC), ES +# Copyright 2026 Helmholtz-Zentrum Dresden-Rossendorf (HZDR), DE # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tools/add_boilerplate.py b/tools/add_boilerplate.py index 81343738..b34e1204 100644 --- a/tools/add_boilerplate.py +++ b/tools/add_boilerplate.py @@ -8,6 +8,7 @@ # Copyright 2025-2026 Senckenberg Society for Nature Research (SGN), DE # Copyright 2025-2026 European Molecular Biology Laboratory (EMBL), Heidelberg, DE # Copyright 2026 Spanish National Research Council (CSIC), ES +# Copyright 2026 Helmholtz-Zentrum Dresden-Rossendorf (HZDR), DE # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -45,6 +46,7 @@ "Senckenberg Society for Nature Research (SGN), DE": "2025", "European Molecular Biology Laboratory (EMBL), Heidelberg, DE": "2025", "Spanish National Research Council (CSIC), ES": "2026", + "Helmholtz-Zentrum Dresden-Rossendorf (HZDR), DE": "2026", } THIS_YEAR = str(datetime.date.today().year) BOILERPLATE_START = "Copyright [yyyy] [name of copyright owner]"