From 22a4a2ecdcdeae7c60fc80dfdf5e8d0e062f97af Mon Sep 17 00:00:00 2001 From: Jan-Lukas Wynen Date: Fri, 5 Jan 2024 10:21:53 +0100 Subject: [PATCH] Update copyright year --- src/scitacean/__init__.py | 2 +- src/scitacean/_base_model.py | 2 +- src/scitacean/_dataset_fields.py | 2 +- src/scitacean/_html_repr/__init__.py | 2 +- src/scitacean/_html_repr/_attachment_html.py | 2 +- src/scitacean/_html_repr/_common_html.py | 2 +- src/scitacean/_html_repr/_dataset_html.py | 2 +- src/scitacean/_html_repr/_resources.py | 2 +- src/scitacean/_internal/__init__.py | 2 +- src/scitacean/_internal/dataclass_wrapper.py | 2 +- src/scitacean/_internal/docker.py | 2 +- src/scitacean/_internal/file_counter.py | 2 +- src/scitacean/_internal/orcid.py | 2 +- src/scitacean/client.py | 2 +- src/scitacean/datablock.py | 2 +- src/scitacean/dataset.py | 2 +- src/scitacean/error.py | 2 +- src/scitacean/file.py | 2 +- src/scitacean/filesystem.py | 2 +- src/scitacean/logging.py | 2 +- src/scitacean/model.py | 2 +- src/scitacean/pid.py | 2 +- src/scitacean/testing/__init__.py | 2 +- src/scitacean/testing/_pytest_helpers.py | 2 +- src/scitacean/testing/backend/__init__.py | 2 +- src/scitacean/testing/backend/_backend.py | 2 +- src/scitacean/testing/backend/_pytest_helpers.py | 2 +- src/scitacean/testing/backend/config.py | 2 +- src/scitacean/testing/backend/fixtures.py | 2 +- src/scitacean/testing/backend/seed.py | 2 +- src/scitacean/testing/client.py | 2 +- src/scitacean/testing/sftp/_pytest_helpers.py | 2 +- src/scitacean/testing/sftp/_sftp.py | 2 +- src/scitacean/testing/sftp/fixtures.py | 2 +- src/scitacean/testing/ssh/_pytest_helpers.py | 2 +- src/scitacean/testing/ssh/_ssh.py | 2 +- src/scitacean/testing/ssh/fixtures.py | 2 +- src/scitacean/testing/strategies.py | 2 +- src/scitacean/testing/transfer.py | 2 +- src/scitacean/thumbnail.py | 2 +- src/scitacean/transfer/__init__.py | 2 +- src/scitacean/transfer/sftp.py | 2 +- src/scitacean/transfer/ssh.py | 2 +- src/scitacean/transfer/util.py | 2 +- src/scitacean/typing.py | 2 +- src/scitacean/util/credentials.py | 2 +- src/scitacean/util/formatter.py | 2 +- src/scitacean/warning.py | 2 +- tests/__init__.py | 2 +- tests/client/attachment_client_test.py | 2 +- tests/client/client_test.py | 2 +- tests/client/datablock_client_test.py | 2 +- tests/client/dataset_client_test.py | 2 +- tests/client/sample_client_test.py | 2 +- tests/common/__init__.py | 2 +- tests/common/files.py | 2 +- tests/conftest.py | 2 +- tests/dataset_fields_test.py | 2 +- tests/dataset_test.py | 2 +- tests/download_test.py | 2 +- tests/file_test.py | 2 +- tests/filesystem_test.py | 2 +- tests/html_repr/html_repr_test.py | 2 +- tests/model_test.py | 2 +- tests/testing/strategies_test.py | 2 +- tests/thumbnail_test.py | 2 +- tests/upload_test.py | 2 +- tests/util/formatter_test.py | 2 +- tools/model-generation/generate_models.py | 2 +- tools/model-generation/spec/__init__.py | 2 +- tools/model-generation/spec/schema.py | 2 +- tools/model-generation/templates/__init__.py | 2 +- tools/model-generation/templates/dataset_fields.py.jinja | 2 +- tools/model-generation/templates/model.py.jinja | 2 +- 74 files changed, 74 insertions(+), 74 deletions(-) diff --git a/src/scitacean/__init__.py b/src/scitacean/__init__.py index 50eb5393..fc308f47 100644 --- a/src/scitacean/__init__.py +++ b/src/scitacean/__init__.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) """High-level interface for SciCat.""" diff --git a/src/scitacean/_base_model.py b/src/scitacean/_base_model.py index 2896b645..07be0024 100644 --- a/src/scitacean/_base_model.py +++ b/src/scitacean/_base_model.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) """Types and functions to implement models for communication with SciCat.""" from __future__ import annotations diff --git a/src/scitacean/_dataset_fields.py b/src/scitacean/_dataset_fields.py index a577e27e..3e603d6c 100644 --- a/src/scitacean/_dataset_fields.py +++ b/src/scitacean/_dataset_fields.py @@ -4,7 +4,7 @@ ########################################## # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) # flake8: noqa """Base class for Dataset.""" diff --git a/src/scitacean/_html_repr/__init__.py b/src/scitacean/_html_repr/__init__.py index a76af397..99d9e7a2 100644 --- a/src/scitacean/_html_repr/__init__.py +++ b/src/scitacean/_html_repr/__init__.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) """HTML representations for Jupyter.""" from __future__ import annotations diff --git a/src/scitacean/_html_repr/_attachment_html.py b/src/scitacean/_html_repr/_attachment_html.py index 6e804f21..b856d8da 100644 --- a/src/scitacean/_html_repr/_attachment_html.py +++ b/src/scitacean/_html_repr/_attachment_html.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) """HTML representations for attachments for Jupyter.""" from __future__ import annotations diff --git a/src/scitacean/_html_repr/_common_html.py b/src/scitacean/_html_repr/_common_html.py index c46926c5..3d66e41b 100644 --- a/src/scitacean/_html_repr/_common_html.py +++ b/src/scitacean/_html_repr/_common_html.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) """Common functions for HTML reprs.""" import html diff --git a/src/scitacean/_html_repr/_dataset_html.py b/src/scitacean/_html_repr/_dataset_html.py index 820f58c2..ba4fb499 100644 --- a/src/scitacean/_html_repr/_dataset_html.py +++ b/src/scitacean/_html_repr/_dataset_html.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) """HTML representations of datasets for Jupyter.""" import html diff --git a/src/scitacean/_html_repr/_resources.py b/src/scitacean/_html_repr/_resources.py index 04d1a25c..06aaaf15 100644 --- a/src/scitacean/_html_repr/_resources.py +++ b/src/scitacean/_html_repr/_resources.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) """Handler for packaged assets.""" import importlib.resources diff --git a/src/scitacean/_internal/__init__.py b/src/scitacean/_internal/__init__.py index 2cbaa3e9..f56afb30 100644 --- a/src/scitacean/_internal/__init__.py +++ b/src/scitacean/_internal/__init__.py @@ -1,2 +1,2 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) diff --git a/src/scitacean/_internal/dataclass_wrapper.py b/src/scitacean/_internal/dataclass_wrapper.py index d863088c..f040ba5b 100644 --- a/src/scitacean/_internal/dataclass_wrapper.py +++ b/src/scitacean/_internal/dataclass_wrapper.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) """Python version-independent dataclasses.""" import dataclasses diff --git a/src/scitacean/_internal/docker.py b/src/scitacean/_internal/docker.py index 7a9a8704..847bc241 100644 --- a/src/scitacean/_internal/docker.py +++ b/src/scitacean/_internal/docker.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) # ruff: noqa: S603, S607 """Helpers to manage docker containers. diff --git a/src/scitacean/_internal/file_counter.py b/src/scitacean/_internal/file_counter.py index 48868d5c..c888cbd9 100644 --- a/src/scitacean/_internal/file_counter.py +++ b/src/scitacean/_internal/file_counter.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) from contextlib import contextmanager from pathlib import Path diff --git a/src/scitacean/_internal/orcid.py b/src/scitacean/_internal/orcid.py index 76c63604..e2fbc403 100644 --- a/src/scitacean/_internal/orcid.py +++ b/src/scitacean/_internal/orcid.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) """Validator for ORCIDs. diff --git a/src/scitacean/client.py b/src/scitacean/client.py index 20f5f99b..ab2d4b92 100644 --- a/src/scitacean/client.py +++ b/src/scitacean/client.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) """Client to handle communication with SciCat servers.""" from __future__ import annotations diff --git a/src/scitacean/datablock.py b/src/scitacean/datablock.py index 182f16c5..b7c46ee8 100644 --- a/src/scitacean/datablock.py +++ b/src/scitacean/datablock.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) """Wrappers for (Orig)Datablocks.""" diff --git a/src/scitacean/dataset.py b/src/scitacean/dataset.py index e2a84452..c8a32769 100644 --- a/src/scitacean/dataset.py +++ b/src/scitacean/dataset.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) """Main dataset structure.""" from __future__ import annotations diff --git a/src/scitacean/error.py b/src/scitacean/error.py index a96b28f0..cea50c29 100644 --- a/src/scitacean/error.py +++ b/src/scitacean/error.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) """Exception classes.""" diff --git a/src/scitacean/file.py b/src/scitacean/file.py index 628a35e4..5533dfe2 100644 --- a/src/scitacean/file.py +++ b/src/scitacean/file.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) """Class to represent files.""" from __future__ import annotations diff --git a/src/scitacean/filesystem.py b/src/scitacean/filesystem.py index 150b677a..dc6a1d18 100644 --- a/src/scitacean/filesystem.py +++ b/src/scitacean/filesystem.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) """Filesystem utilities. Scitacean distinguishes between paths on the local filesystem and diff --git a/src/scitacean/logging.py b/src/scitacean/logging.py index 3fdf1da6..02584ea2 100644 --- a/src/scitacean/logging.py +++ b/src/scitacean/logging.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) """Utilities for logging in Scitacean. The object returned by :func:`scitacean.get_logger` is the only logger diff --git a/src/scitacean/model.py b/src/scitacean/model.py index d786d91f..99202934 100644 --- a/src/scitacean/model.py +++ b/src/scitacean/model.py @@ -4,7 +4,7 @@ ########################################## # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) """Models for communication with SciCat and user facing dataclasses. The high-level :class:`scitacean.Client` and :class:`scitacean.Dataset` return objects diff --git a/src/scitacean/pid.py b/src/scitacean/pid.py index 0be942fa..806b5f0a 100644 --- a/src/scitacean/pid.py +++ b/src/scitacean/pid.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) """Helper type for handling persistent identifiers.""" from __future__ import annotations diff --git a/src/scitacean/testing/__init__.py b/src/scitacean/testing/__init__.py index 80334024..bed6c501 100644 --- a/src/scitacean/testing/__init__.py +++ b/src/scitacean/testing/__init__.py @@ -1,4 +1,4 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) """Helpers for testing code with Scitacean.""" diff --git a/src/scitacean/testing/_pytest_helpers.py b/src/scitacean/testing/_pytest_helpers.py index 0d1de9d1..8951b9e5 100644 --- a/src/scitacean/testing/_pytest_helpers.py +++ b/src/scitacean/testing/_pytest_helpers.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) from pathlib import Path from typing import Optional, Tuple, Union diff --git a/src/scitacean/testing/backend/__init__.py b/src/scitacean/testing/backend/__init__.py index 0d8bfdc1..619f6623 100644 --- a/src/scitacean/testing/backend/__init__.py +++ b/src/scitacean/testing/backend/__init__.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) """Utilities for running tests against a locally deployed SciCat backend. This subpackage provides tools for using a real SciCat backend running in docker diff --git a/src/scitacean/testing/backend/_backend.py b/src/scitacean/testing/backend/_backend.py index dbc01ecf..eb0a00ea 100644 --- a/src/scitacean/testing/backend/_backend.py +++ b/src/scitacean/testing/backend/_backend.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) import importlib.resources import os import time diff --git a/src/scitacean/testing/backend/_pytest_helpers.py b/src/scitacean/testing/backend/_pytest_helpers.py index 5dfe1530..736c0d49 100644 --- a/src/scitacean/testing/backend/_pytest_helpers.py +++ b/src/scitacean/testing/backend/_pytest_helpers.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) from typing import Optional diff --git a/src/scitacean/testing/backend/config.py b/src/scitacean/testing/backend/config.py index e7b663aa..387269c3 100644 --- a/src/scitacean/testing/backend/config.py +++ b/src/scitacean/testing/backend/config.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) """Backend configuration.""" from dataclasses import dataclass diff --git a/src/scitacean/testing/backend/fixtures.py b/src/scitacean/testing/backend/fixtures.py index 76a608f1..ff6912bf 100644 --- a/src/scitacean/testing/backend/fixtures.py +++ b/src/scitacean/testing/backend/fixtures.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) # mypy: disable-error-code="no-untyped-def" """Pytest fixtures to manage and access a local SciCat backend.""" diff --git a/src/scitacean/testing/backend/seed.py b/src/scitacean/testing/backend/seed.py index 821a2e26..3e2ddfce 100644 --- a/src/scitacean/testing/backend/seed.py +++ b/src/scitacean/testing/backend/seed.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) """Initial contents of the SciCat testing backend. diff --git a/src/scitacean/testing/client.py b/src/scitacean/testing/client.py index acad7d7a..e18827cc 100644 --- a/src/scitacean/testing/client.py +++ b/src/scitacean/testing/client.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) """Fake client for testing.""" from __future__ import annotations diff --git a/src/scitacean/testing/sftp/_pytest_helpers.py b/src/scitacean/testing/sftp/_pytest_helpers.py index dfff5061..a9c2b5fe 100644 --- a/src/scitacean/testing/sftp/_pytest_helpers.py +++ b/src/scitacean/testing/sftp/_pytest_helpers.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) from typing import Optional diff --git a/src/scitacean/testing/sftp/_sftp.py b/src/scitacean/testing/sftp/_sftp.py index 7a2d7cf0..1c9dcfaf 100644 --- a/src/scitacean/testing/sftp/_sftp.py +++ b/src/scitacean/testing/sftp/_sftp.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) import importlib.resources import time from dataclasses import dataclass diff --git a/src/scitacean/testing/sftp/fixtures.py b/src/scitacean/testing/sftp/fixtures.py index 889aa091..0b6e479d 100644 --- a/src/scitacean/testing/sftp/fixtures.py +++ b/src/scitacean/testing/sftp/fixtures.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) # mypy: disable-error-code="no-untyped-def" """Pytest fixtures to manage and access a local SFTP server.""" diff --git a/src/scitacean/testing/ssh/_pytest_helpers.py b/src/scitacean/testing/ssh/_pytest_helpers.py index 79c653fb..8922e51e 100644 --- a/src/scitacean/testing/ssh/_pytest_helpers.py +++ b/src/scitacean/testing/ssh/_pytest_helpers.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) from typing import Optional diff --git a/src/scitacean/testing/ssh/_ssh.py b/src/scitacean/testing/ssh/_ssh.py index 10847fca..f16eca57 100644 --- a/src/scitacean/testing/ssh/_ssh.py +++ b/src/scitacean/testing/ssh/_ssh.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) import importlib.resources import time from dataclasses import dataclass diff --git a/src/scitacean/testing/ssh/fixtures.py b/src/scitacean/testing/ssh/fixtures.py index 3e1c200f..b46cd1d1 100644 --- a/src/scitacean/testing/ssh/fixtures.py +++ b/src/scitacean/testing/ssh/fixtures.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) # mypy: disable-error-code="no-untyped-def" """Pytest fixtures to manage and access a local SSH server.""" diff --git a/src/scitacean/testing/strategies.py b/src/scitacean/testing/strategies.py index 63432666..9bce82d3 100644 --- a/src/scitacean/testing/strategies.py +++ b/src/scitacean/testing/strategies.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) """Hypothesis strategies for generating datasets. This module defines a number of diff --git a/src/scitacean/testing/transfer.py b/src/scitacean/testing/transfer.py index c788c0b4..04617634 100644 --- a/src/scitacean/testing/transfer.py +++ b/src/scitacean/testing/transfer.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) """Fake file transfer.""" from contextlib import contextmanager diff --git a/src/scitacean/thumbnail.py b/src/scitacean/thumbnail.py index 659a769f..6bf239d5 100644 --- a/src/scitacean/thumbnail.py +++ b/src/scitacean/thumbnail.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) """Thumbnail type for encoding images.""" from __future__ import annotations diff --git a/src/scitacean/transfer/__init__.py b/src/scitacean/transfer/__init__.py index 151586b2..f113d3a0 100644 --- a/src/scitacean/transfer/__init__.py +++ b/src/scitacean/transfer/__init__.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) """File transfers to upload and download files to / from a file server. All file transfers are designed to work with :class:`scitacean.Client`. diff --git a/src/scitacean/transfer/sftp.py b/src/scitacean/transfer/sftp.py index 0ba1a65b..ae0f7b38 100644 --- a/src/scitacean/transfer/sftp.py +++ b/src/scitacean/transfer/sftp.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) """SFTP file transfer.""" import os diff --git a/src/scitacean/transfer/ssh.py b/src/scitacean/transfer/ssh.py index 26d2835e..192132e3 100644 --- a/src/scitacean/transfer/ssh.py +++ b/src/scitacean/transfer/ssh.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) # ruff: noqa: D100, D101, D102, D103 import os diff --git a/src/scitacean/transfer/util.py b/src/scitacean/transfer/util.py index 6dcd1fdf..9fd0244f 100644 --- a/src/scitacean/transfer/util.py +++ b/src/scitacean/transfer/util.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) """Common utilities for file transfers.""" from typing import Optional, Union diff --git a/src/scitacean/typing.py b/src/scitacean/typing.py index e5851610..fae06546 100644 --- a/src/scitacean/typing.py +++ b/src/scitacean/typing.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) """Definitions for type checking.""" diff --git a/src/scitacean/util/credentials.py b/src/scitacean/util/credentials.py index 20720acd..641944f9 100644 --- a/src/scitacean/util/credentials.py +++ b/src/scitacean/util/credentials.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) """Tools for securely handling credentials.""" from __future__ import annotations diff --git a/src/scitacean/util/formatter.py b/src/scitacean/util/formatter.py index 073ff464..15f57d8c 100644 --- a/src/scitacean/util/formatter.py +++ b/src/scitacean/util/formatter.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) """String-formatting tools.""" from string import Formatter diff --git a/src/scitacean/warning.py b/src/scitacean/warning.py index ef2d76c5..06a57ee1 100644 --- a/src/scitacean/warning.py +++ b/src/scitacean/warning.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) """Custom warning classes.""" diff --git a/tests/__init__.py b/tests/__init__.py index 2cbaa3e9..f56afb30 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1,2 +1,2 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) diff --git a/tests/client/attachment_client_test.py b/tests/client/attachment_client_test.py index ac49d03a..b91d3102 100644 --- a/tests/client/attachment_client_test.py +++ b/tests/client/attachment_client_test.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) # mypy: disable-error-code="arg-type" from copy import deepcopy diff --git a/tests/client/client_test.py b/tests/client/client_test.py index 5b6d20ae..bdc79986 100644 --- a/tests/client/client_test.py +++ b/tests/client/client_test.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) import pickle diff --git a/tests/client/datablock_client_test.py b/tests/client/datablock_client_test.py index 8496fbc5..361e496f 100644 --- a/tests/client/datablock_client_test.py +++ b/tests/client/datablock_client_test.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) # mypy: disable-error-code="arg-type" import pytest diff --git a/tests/client/dataset_client_test.py b/tests/client/dataset_client_test.py index eaffeccb..5460ef5b 100644 --- a/tests/client/dataset_client_test.py +++ b/tests/client/dataset_client_test.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) # mypy: disable-error-code="arg-type, index" import pydantic diff --git a/tests/client/sample_client_test.py b/tests/client/sample_client_test.py index 3ca59ba2..c05201ed 100644 --- a/tests/client/sample_client_test.py +++ b/tests/client/sample_client_test.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) import dataclasses diff --git a/tests/common/__init__.py b/tests/common/__init__.py index 2cbaa3e9..f56afb30 100644 --- a/tests/common/__init__.py +++ b/tests/common/__init__.py @@ -1,2 +1,2 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) diff --git a/tests/common/files.py b/tests/common/files.py index 22ea3b30..2c1bf899 100644 --- a/tests/common/files.py +++ b/tests/common/files.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) import hashlib from datetime import datetime, timezone diff --git a/tests/conftest.py b/tests/conftest.py index 7841902f..31c6e91b 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) import hypothesis import pytest diff --git a/tests/dataset_fields_test.py b/tests/dataset_fields_test.py index 0a12e7c9..7b5af500 100644 --- a/tests/dataset_fields_test.py +++ b/tests/dataset_fields_test.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) # mypy: disable-error-code="arg-type" # These tests use Dataset instead of DatasetFields in order to test the diff --git a/tests/dataset_test.py b/tests/dataset_test.py index b5cf1ce1..92999768 100644 --- a/tests/dataset_test.py +++ b/tests/dataset_test.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) # mypy: disable-error-code="arg-type, union-attr" from datetime import datetime, timedelta, timezone diff --git a/tests/download_test.py b/tests/download_test.py index 4e86279d..87d11208 100644 --- a/tests/download_test.py +++ b/tests/download_test.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) import hashlib import re from contextlib import contextmanager diff --git a/tests/file_test.py b/tests/file_test.py index 08026129..68f41481 100644 --- a/tests/file_test.py +++ b/tests/file_test.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) import hashlib from dataclasses import replace from datetime import datetime, timedelta, timezone diff --git a/tests/filesystem_test.py b/tests/filesystem_test.py index cb424d4d..955f9735 100644 --- a/tests/filesystem_test.py +++ b/tests/filesystem_test.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) import hashlib from datetime import datetime, timedelta, timezone from pathlib import Path, PurePath, PurePosixPath, PureWindowsPath diff --git a/tests/html_repr/html_repr_test.py b/tests/html_repr/html_repr_test.py index 7c510dbc..da172ffc 100644 --- a/tests/html_repr/html_repr_test.py +++ b/tests/html_repr/html_repr_test.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) from scitacean import Attachment, Dataset, RemotePath, Thumbnail diff --git a/tests/model_test.py b/tests/model_test.py index 64b9a365..b5110974 100644 --- a/tests/model_test.py +++ b/tests/model_test.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) import dataclasses from typing import Type, TypeVar diff --git a/tests/testing/strategies_test.py b/tests/testing/strategies_test.py index 130b7d64..9ea4855b 100644 --- a/tests/testing/strategies_test.py +++ b/tests/testing/strategies_test.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) from dateutil.parser import parse as parse_datetime from hypothesis import given, settings from hypothesis import strategies as st diff --git a/tests/thumbnail_test.py b/tests/thumbnail_test.py index feb408ff..04d73e1e 100644 --- a/tests/thumbnail_test.py +++ b/tests/thumbnail_test.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) import pytest diff --git a/tests/upload_test.py b/tests/upload_test.py index 24a9ca1f..c6ddad86 100644 --- a/tests/upload_test.py +++ b/tests/upload_test.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) from contextlib import contextmanager from typing import cast diff --git a/tests/util/formatter_test.py b/tests/util/formatter_test.py index b2a11d29..268efc6c 100644 --- a/tests/util/formatter_test.py +++ b/tests/util/formatter_test.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) import pytest diff --git a/tools/model-generation/generate_models.py b/tools/model-generation/generate_models.py index 3d7fd195..7c21a316 100644 --- a/tools/model-generation/generate_models.py +++ b/tools/model-generation/generate_models.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) """Generate Python classes for SciCat models.""" import argparse diff --git a/tools/model-generation/spec/__init__.py b/tools/model-generation/spec/__init__.py index e97c666c..abef4e57 100644 --- a/tools/model-generation/spec/__init__.py +++ b/tools/model-generation/spec/__init__.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) """Load model specifications.""" import dataclasses import re diff --git a/tools/model-generation/spec/schema.py b/tools/model-generation/spec/schema.py index 7dc2891e..a96cc78d 100644 --- a/tools/model-generation/spec/schema.py +++ b/tools/model-generation/spec/schema.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) """Load schemas from a SciCat API.""" import dataclasses diff --git a/tools/model-generation/templates/__init__.py b/tools/model-generation/templates/__init__.py index 3ab82b5e..3a6b2958 100644 --- a/tools/model-generation/templates/__init__.py +++ b/tools/model-generation/templates/__init__.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) """Templates to generate models and other classes.""" from pathlib import Path diff --git a/tools/model-generation/templates/dataset_fields.py.jinja b/tools/model-generation/templates/dataset_fields.py.jinja index 39524aa0..23942ae1 100644 --- a/tools/model-generation/templates/dataset_fields.py.jinja +++ b/tools/model-generation/templates/dataset_fields.py.jinja @@ -25,7 +25,7 @@ type(None) {{ banner }} # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) # flake8: noqa """Base class for Dataset.""" diff --git a/tools/model-generation/templates/model.py.jinja b/tools/model-generation/templates/model.py.jinja index ae0e2b3f..62032599 100644 --- a/tools/model-generation/templates/model.py.jinja +++ b/tools/model-generation/templates/model.py.jinja @@ -32,7 +32,7 @@ {{ banner }} # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) 2023 SciCat Project (https://github.com/SciCatProject/scitacean) +# Copyright (c) 2024 SciCat Project (https://github.com/SciCatProject/scitacean) """Models for communication with SciCat and user facing dataclasses. The high-level :class:`scitacean.Client` and :class:`scitacean.Dataset` return objects