Skip to content

Commit fa5cf5b

Browse files
authored
MNT: Drop copyright year, unused dunder fields (#3247)
Summary blog post with links to additional references: https://hynek.me/til/copyright-years/ The purpose of this PR is to remove an unnecessary annual chore.
1 parent ad65d0b commit fa5cf5b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+66
-109
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# MIT License
44
#
5-
# Copyright (c) 2023 The NiPreps Developers
5+
# Copyright (c) The NiPreps Developers
66
#
77
# Permission is hereby granted, free of charge, to any person obtaining a copy
88
# of this software and associated documentation files (the "Software"), to deal

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright 2020 The NiPreps Developers
189+
Copyright The NiPreps Developers
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ of the *NiPreps framework*.
146146

147147
License
148148
~~~~~~~
149-
Copyright (c) 2023, the *NiPreps* Developers.
149+
Copyright (c) the *NiPreps* Developers.
150150

151151
As of the 21.0.x pre-release and release series, *fMRIPrep* is
152152
licensed under the Apache License, Version 2.0 (the "License");

fmriprep/__about__.py

-38
This file was deleted.

fmriprep/__init__.py

+23-20
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,28 @@
11
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
3+
#
4+
# Copyright The NiPreps Developers <[email protected]>
5+
#
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
#
18+
# We support and encourage derived works from this project, please read
19+
# about our expectations at
20+
#
21+
# https://www.nipreps.org/community/licensing/
22+
#
323
"""Top-module metadata."""
424

5-
from .__about__ import __copyright__, __credits__, __packagename__, __version__
6-
7-
__all__ = [
8-
'__copyright__',
9-
'__credits__',
10-
'__packagename__',
11-
'__version__',
12-
]
13-
14-
# Silence PyBIDS warning for extension entity behavior
15-
# Can be removed once minimum PyBIDS dependency hits 0.14
1625
try:
17-
import bids
18-
from packaging.version import Version
19-
20-
if Version(bids.__version__) < Version('0.14'):
21-
bids.config.set_option('extension_initial_dot', True)
22-
except (ImportError, ValueError):
23-
pass
24-
else:
25-
del Version, bids
26+
from ._version import __version__
27+
except ImportError:
28+
__version__ = '0+unknown'

fmriprep/__main__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
33
#
4-
# Copyright 2023 The NiPreps Developers <[email protected]>
4+
# Copyright The NiPreps Developers <[email protected]>
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.

fmriprep/_warnings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
33
#
4-
# Copyright 2023 The NiPreps Developers <[email protected]>
4+
# Copyright The NiPreps Developers <[email protected]>
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.

fmriprep/cli/parser.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
33
#
4-
# Copyright 2023 The NiPreps Developers <[email protected]>
4+
# Copyright The NiPreps Developers <[email protected]>
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.

fmriprep/cli/run.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
33
#
4-
# Copyright 2023 The NiPreps Developers <[email protected]>
4+
# Copyright The NiPreps Developers <[email protected]>
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.

fmriprep/cli/tests/test_parser.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
33
#
4-
# Copyright 2023 The NiPreps Developers <[email protected]>
4+
# Copyright The NiPreps Developers <[email protected]>
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.

fmriprep/cli/tests/test_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
33
#
4-
# Copyright 2023 The NiPreps Developers <[email protected]>
4+
# Copyright The NiPreps Developers <[email protected]>
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.

fmriprep/cli/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
33
#
4-
# Copyright 2023 The NiPreps Developers <[email protected]>
4+
# Copyright The NiPreps Developers <[email protected]>
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.

fmriprep/cli/workflow.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
33
#
4-
# Copyright 2023 The NiPreps Developers <[email protected]>
4+
# Copyright The NiPreps Developers <[email protected]>
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.

fmriprep/config.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
33
#
4-
# Copyright 2023 The NiPreps Developers <[email protected]>
4+
# Copyright The NiPreps Developers <[email protected]>
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.

fmriprep/interfaces/confounds.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
33
#
4-
# Copyright 2023 The NiPreps Developers <[email protected]>
4+
# Copyright The NiPreps Developers <[email protected]>
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.

fmriprep/interfaces/multiecho.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
33
#
4-
# Copyright 2023 The NiPreps Developers <[email protected]>
4+
# Copyright The NiPreps Developers <[email protected]>
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.

fmriprep/interfaces/patches.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
33
#
4-
# Copyright 2023 The NiPreps Developers <[email protected]>
4+
# Copyright The NiPreps Developers <[email protected]>
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.

fmriprep/interfaces/reports.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
33
#
4-
# Copyright 2023 The NiPreps Developers <[email protected]>
4+
# Copyright The NiPreps Developers <[email protected]>
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.

fmriprep/interfaces/tests/test_reports.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
33
#
4-
# Copyright 2023 The NiPreps Developers <[email protected]>
4+
# Copyright The NiPreps Developers <[email protected]>
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.

fmriprep/reports/core.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
33
#
4-
# Copyright 2023 The NiPreps Developers <[email protected]>
4+
# Copyright The NiPreps Developers <[email protected]>
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.

fmriprep/tests/test_config.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
33
#
4-
# Copyright 2023 The NiPreps Developers <[email protected]>
4+
# Copyright The NiPreps Developers <[email protected]>
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.

fmriprep/utils/bids.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
33
#
4-
# Copyright 2023 The NiPreps Developers <[email protected]>
4+
# Copyright The NiPreps Developers <[email protected]>
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.
@@ -98,7 +98,9 @@ def write_bidsignore(deriv_dir):
9898

9999

100100
def write_derivative_description(bids_dir, deriv_dir):
101-
from ..__about__ import DOWNLOAD_URL, __version__
101+
from .. import __version__
102+
103+
DOWNLOAD_URL = f'https://github.com/nipreps/fmriprep/archive/{__version__}.tar.gz'
102104

103105
bids_dir = Path(bids_dir)
104106
deriv_dir = Path(deriv_dir)

fmriprep/utils/confounds.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
33
#
4-
# Copyright 2023 The NiPreps Developers <[email protected]>
4+
# Copyright The NiPreps Developers <[email protected]>
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.

fmriprep/utils/debug.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
33
#
4-
# Copyright 2021 The NiPreps Developers <[email protected]>
4+
# Copyright The NiPreps Developers <[email protected]>
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.
@@ -27,7 +27,7 @@
2727
#
2828
# ORIGINAL WORK'S ATTRIBUTION NOTICE:
2929
#
30-
# Copyright 2020 DANDI Client Developers
30+
# Copyright DANDI Client Developers
3131
#
3232
# Licensed under the Apache License, Version 2.0 (the "License");
3333
# you may not use this file except in compliance with the License.

fmriprep/utils/meepi.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
33
#
4-
# Copyright 2023 The NiPreps Developers <[email protected]>
4+
# Copyright The NiPreps Developers <[email protected]>
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.

fmriprep/utils/misc.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
33
#
4-
# Copyright 2023 The NiPreps Developers <[email protected]>
4+
# Copyright The NiPreps Developers <[email protected]>
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.

fmriprep/utils/telemetry.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
33
#
4-
# Copyright 2023 The NiPreps Developers <[email protected]>
4+
# Copyright The NiPreps Developers <[email protected]>
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.

fmriprep/workflows/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
33
#
4-
# Copyright 2023 The NiPreps Developers <[email protected]>
4+
# Copyright The NiPreps Developers <[email protected]>
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.

fmriprep/workflows/bold/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
33
#
4-
# Copyright 2023 The NiPreps Developers <[email protected]>
4+
# Copyright The NiPreps Developers <[email protected]>
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.

fmriprep/workflows/bold/confounds.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
33
#
4-
# Copyright 2023 The NiPreps Developers <[email protected]>
4+
# Copyright The NiPreps Developers <[email protected]>
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.

fmriprep/workflows/bold/fit.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
33
#
4-
# Copyright 2023 The NiPreps Developers <[email protected]>
4+
# Copyright The NiPreps Developers <[email protected]>
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.

fmriprep/workflows/bold/hmc.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
33
#
4-
# Copyright 2023 The NiPreps Developers <[email protected]>
4+
# Copyright The NiPreps Developers <[email protected]>
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.

fmriprep/workflows/bold/outputs.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
33
#
4-
# Copyright 2023 The NiPreps Developers <[email protected]>
4+
# Copyright The NiPreps Developers <[email protected]>
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.

fmriprep/workflows/bold/reference.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
33
#
4-
# Copyright 2021 The NiPreps Developers <[email protected]>
4+
# Copyright The NiPreps Developers <[email protected]>
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)