Skip to content

Commit

Permalink
Revert "Update copyright notices"
Browse files Browse the repository at this point in the history
This reverts commit 782b041.
  • Loading branch information
soininen committed Jan 24, 2024
1 parent e4945db commit a97c794
Show file tree
Hide file tree
Showing 101 changed files with 3 additions and 103 deletions.
6 changes: 3 additions & 3 deletions bin/update_copyrights.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
project_source_dir = Path(root_dir, "spinedb_api")
test_source_dir = Path(root_dir, "tests")

expected = f"# Copyright (C) 2023-{current_year} Mopo project consortium"
expected = f"# Copyright (C) 2017-{current_year} Spine project consortium"


def update_copyrights(path, suffix, recursive=True):
Expand All @@ -18,8 +18,8 @@ def update_copyrights(path, suffix, recursive=True):
i = 0
with open(path) as python_file:
lines = python_file.readlines()
for i, line in enumerate(lines[1:5]):
if line.startswith("# Copyright (C) ") and "Mopo" in line:
for i, line in enumerate(lines[1:4]):
if line.startswith("# Copyright (C) "):
lines[i + 1] = lines[i + 1][:21] + str(current_year) + lines[i + 1][25:]
break
if len(lines) <= i + 1 or not lines[i + 1].startswith(expected):
Expand Down
1 change: 0 additions & 1 deletion spinedb_api/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
######################################################################################################################
# Copyright (C) 2017-2022 Spine project consortium
# Copyright (C) 2023-2024 Mopo project consortium
# This file is part of Spine Database API.
# Spine Database API is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser
# General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your
Expand Down
1 change: 0 additions & 1 deletion spinedb_api/compatibility.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
######################################################################################################################
# Copyright (C) 2017-2022 Spine project consortium
# Copyright (C) 2023-2024 Mopo project consortium
# This file is part of Spine Database API.
# Spine Database API is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser
# General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your
Expand Down
1 change: 0 additions & 1 deletion spinedb_api/db_mapping.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
######################################################################################################################
# Copyright (C) 2017-2022 Spine project consortium
# Copyright (C) 2023-2024 Mopo project consortium
# This file is part of Spine Database API.
# Spine Database API is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser
# General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your
Expand Down
1 change: 0 additions & 1 deletion spinedb_api/db_mapping_base.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
######################################################################################################################
# Copyright (C) 2017-2022 Spine project consortium
# Copyright (C) 2023-2024 Mopo project consortium
# This file is part of Spine Database API.
# Spine Database API is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser
# General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your
Expand Down
1 change: 0 additions & 1 deletion spinedb_api/db_mapping_commit_mixin.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
######################################################################################################################
# Copyright (C) 2017-2022 Spine project consortium
# Copyright (C) 2023-2024 Mopo project consortium
# This file is part of Spine Database API.
# Spine Database API is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser
# General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your
Expand Down
1 change: 0 additions & 1 deletion spinedb_api/db_mapping_query_mixin.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
######################################################################################################################
# Copyright (C) 2017-2022 Spine project consortium
# Copyright (C) 2023-2024 Mopo project consortium
# This file is part of Spine Database API.
# Spine Database API is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser
# General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your
Expand Down
1 change: 0 additions & 1 deletion spinedb_api/exception.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
######################################################################################################################
# Copyright (C) 2017-2022 Spine project consortium
# Copyright (C) 2023-2024 Mopo project consortium
# This file is part of Spine Database API.
# Spine Database API is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser
# General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your
Expand Down
1 change: 0 additions & 1 deletion spinedb_api/export_functions.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
######################################################################################################################
# Copyright (C) 2017-2022 Spine project consortium
# Copyright (C) 2023-2024 Mopo project consortium
# This file is part of Spine Database API.
# Spine Toolbox is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General
# Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option)
Expand Down
1 change: 0 additions & 1 deletion spinedb_api/export_mapping/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
######################################################################################################################
# Copyright (C) 2017-2022 Spine project consortium
# Copyright (C) 2023-2024 Mopo project consortium
# This file is part of Spine Database API.
# Spine Database API is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser
# General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your
Expand Down
1 change: 0 additions & 1 deletion spinedb_api/export_mapping/export_mapping.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
######################################################################################################################
# Copyright (C) 2017-2022 Spine project consortium
# Copyright (C) 2023-2024 Mopo project consortium
# This file is part of Spine Database API.
# Spine Database API is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser
# General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your
Expand Down
1 change: 0 additions & 1 deletion spinedb_api/export_mapping/generator.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
######################################################################################################################
# Copyright (C) 2017-2022 Spine project consortium
# Copyright (C) 2023-2024 Mopo project consortium
# This file is part of Spine Database API.
# Spine Database API is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser
# General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your
Expand Down
1 change: 0 additions & 1 deletion spinedb_api/export_mapping/group_functions.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
######################################################################################################################
# Copyright (C) 2017-2022 Spine project consortium
# Copyright (C) 2023-2024 Mopo project consortium
# This file is part of Spine Database API.
# Spine Database API is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser
# General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your
Expand Down
1 change: 0 additions & 1 deletion spinedb_api/export_mapping/pivot.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
######################################################################################################################
# Copyright (C) 2017-2022 Spine project consortium
# Copyright (C) 2023-2024 Mopo project consortium
# This file is part of Spine Database API.
# Spine Database API is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser
# General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your
Expand Down
1 change: 0 additions & 1 deletion spinedb_api/export_mapping/settings.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
######################################################################################################################
# Copyright (C) 2017-2022 Spine project consortium
# Copyright (C) 2023-2024 Mopo project consortium
# This file is part of Spine Database API.
# Spine Database API is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser
# General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your
Expand Down
1 change: 0 additions & 1 deletion spinedb_api/filters/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
######################################################################################################################
# Copyright (C) 2017-2022 Spine project consortium
# Copyright (C) 2023-2024 Mopo project consortium
# This file is part of Spine Database API.
# Spine Database API is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser
# General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your
Expand Down
1 change: 0 additions & 1 deletion spinedb_api/filters/alternative_filter.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
######################################################################################################################
# Copyright (C) 2017-2022 Spine project consortium
# Copyright (C) 2023-2024 Mopo project consortium
# This file is part of Spine Database API.
# Spine Database API is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser
# General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your
Expand Down
1 change: 0 additions & 1 deletion spinedb_api/filters/execution_filter.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
######################################################################################################################
# Copyright (C) 2017-2022 Spine project consortium
# Copyright (C) 2023-2024 Mopo project consortium
# This file is part of Spine Database API.
# Spine Database API is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser
# General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your
Expand Down
1 change: 0 additions & 1 deletion spinedb_api/filters/renamer.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
######################################################################################################################
# Copyright (C) 2017-2022 Spine project consortium
# Copyright (C) 2023-2024 Mopo project consortium
# This file is part of Spine Database API.
# Spine Database API is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser
# General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your
Expand Down
1 change: 0 additions & 1 deletion spinedb_api/filters/scenario_filter.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
######################################################################################################################
# Copyright (C) 2017-2022 Spine project consortium
# Copyright (C) 2023-2024 Mopo project consortium
# This file is part of Spine Database API.
# Spine Database API is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser
# General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your
Expand Down
1 change: 0 additions & 1 deletion spinedb_api/filters/tools.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
######################################################################################################################
# Copyright (C) 2017-2022 Spine project consortium
# Copyright (C) 2023-2024 Mopo project consortium
# This file is part of Spine Database API.
# Spine Database API is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser
# General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your
Expand Down
1 change: 0 additions & 1 deletion spinedb_api/filters/value_transformer.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
######################################################################################################################
# Copyright (C) 2017-2022 Spine project consortium
# Copyright (C) 2023-2024 Mopo project consortium
# This file is part of Spine Database API.
# Spine Database API is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser
# General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your
Expand Down
1 change: 0 additions & 1 deletion spinedb_api/graph_layout_generator.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
######################################################################################################################
# Copyright (C) 2017-2022 Spine project consortium
# Copyright (C) 2023-2024 Mopo project consortium
# This file is part of Spine Engine.
# Spine Engine is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General
# Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option)
Expand Down
1 change: 0 additions & 1 deletion spinedb_api/helpers.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
######################################################################################################################
# Copyright (C) 2017-2022 Spine project consortium
# Copyright (C) 2023-2024 Mopo project consortium
# This file is part of Spine Database API.
# Spine Database API is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser
# General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your
Expand Down
1 change: 0 additions & 1 deletion spinedb_api/import_functions.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
######################################################################################################################
# Copyright (C) 2017-2022 Spine project consortium
# Copyright (C) 2023-2024 Mopo project consortium
# This file is part of Spine Database API.
# Spine Toolbox is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General
# Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option)
Expand Down
1 change: 0 additions & 1 deletion spinedb_api/import_mapping/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
######################################################################################################################
# Copyright (C) 2017-2022 Spine project consortium
# Copyright (C) 2023-2024 Mopo project consortium
# This file is part of Spine Database API.
# Spine Database API is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser
# General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your
Expand Down
1 change: 0 additions & 1 deletion spinedb_api/import_mapping/generator.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
######################################################################################################################
# Copyright (C) 2017-2022 Spine project consortium
# Copyright (C) 2023-2024 Mopo project consortium
# This file is part of Spine Database API.
# Spine Database API is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser
# General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your
Expand Down
1 change: 0 additions & 1 deletion spinedb_api/import_mapping/import_mapping.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
######################################################################################################################
# Copyright (C) 2017-2022 Spine project consortium
# Copyright (C) 2023-2024 Mopo project consortium
# This file is part of Spine Database API.
# Spine Database API is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser
# General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your
Expand Down
1 change: 0 additions & 1 deletion spinedb_api/import_mapping/import_mapping_compat.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
######################################################################################################################
# Copyright (C) 2017-2022 Spine project consortium
# Copyright (C) 2023-2024 Mopo project consortium
# This file is part of Spine Database API.
# Spine Database API is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser
# General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your
Expand Down
1 change: 0 additions & 1 deletion spinedb_api/import_mapping/type_conversion.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
######################################################################################################################
# Copyright (C) 2017-2022 Spine project consortium
# Copyright (C) 2023-2024 Mopo project consortium
# This file is part of Spine Database API.
# Spine Database API is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser
# General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your
Expand Down
1 change: 0 additions & 1 deletion spinedb_api/mapped_items.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
######################################################################################################################
# Copyright (C) 2017-2022 Spine project consortium
# Copyright (C) 2023-2024 Mopo project consortium
# This file is part of Spine Database API.
# Spine Database API is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser
# General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your
Expand Down
1 change: 0 additions & 1 deletion spinedb_api/mapping.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
######################################################################################################################
# Copyright (C) 2017-2022 Spine project consortium
# Copyright (C) 2023-2024 Mopo project consortium
# This file is part of Spine Database API.
# Spine Database API is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser
# General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your
Expand Down
1 change: 0 additions & 1 deletion spinedb_api/parameter_value.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
######################################################################################################################
# Copyright (C) 2017-2022 Spine project consortium
# Copyright (C) 2023-2024 Mopo project consortium
# This file is part of Spine Database API.
# Spine Database API is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser
# General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your
Expand Down
1 change: 0 additions & 1 deletion spinedb_api/perfect_split.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
######################################################################################################################
# Copyright (C) 2017-2022 Spine project consortium
# Copyright (C) 2023-2024 Mopo project consortium
# This file is part of Spine Database API.
# Spine Toolbox is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General
# Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option)
Expand Down
1 change: 0 additions & 1 deletion spinedb_api/purge.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
######################################################################################################################
# Copyright (C) 2017-2022 Spine project consortium
# Copyright (C) 2023-2024 Mopo project consortium
# This file is part of Spine Database API.
# Spine Toolbox is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General
# Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option)
Expand Down
1 change: 0 additions & 1 deletion spinedb_api/query.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
######################################################################################################################
# Copyright (C) 2017-2022 Spine project consortium
# Copyright (C) 2023-2024 Mopo project consortium
# This file is part of Spine Database API.
# Spine Database API is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser
# General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your
Expand Down
1 change: 0 additions & 1 deletion spinedb_api/server_client_helpers.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
######################################################################################################################
# Copyright (C) 2017-2022 Spine project consortium
# Copyright (C) 2023-2024 Mopo project consortium
# This file is part of Spine Database API.
# Spine Database API is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser
# General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your
Expand Down
1 change: 0 additions & 1 deletion spinedb_api/spine_db_client.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
######################################################################################################################
# Copyright (C) 2017-2022 Spine project consortium
# Copyright (C) 2023-2024 Mopo project consortium
# This file is part of Spine Engine.
# Spine Engine is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General
# Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option)
Expand Down
Loading

0 comments on commit a97c794

Please sign in to comment.