File tree Expand file tree Collapse file tree 10 files changed +219
-2
lines changed Expand file tree Collapse file tree 10 files changed +219
-2
lines changed Original file line number Diff line number Diff line change 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 2024 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"""TemplateFlow is the Zone of Templates."""
24+ from datetime import datetime as _dt
25+
426__packagename__ = 'templateflow'
5- __copyright__ = '2020, The TemplateFlow developers '
27+ __copyright__ = f' { _dt . now (). year } The NiPreps Developers '
628try :
729 from ._version import __version__
830except ModuleNotFoundError :
Original file line number Diff line number Diff line change 1+ # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
2+ # vi: set ft=python sts=4 ts=4 sw=4 et:
3+ #
4+ # Copyright 2024 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+ #
123"""Resource loader module
224
325.. autoclass:: Loader
Original file line number Diff line number Diff line change 1+ # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
2+ # vi: set ft=python sts=4 ts=4 sw=4 et:
3+ #
4+ # Copyright 2024 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+ #
123"""TemplateFlow's Python Client."""
224import sys
325from json import loads
Original file line number Diff line number Diff line change 1+ # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
2+ # vi: set ft=python sts=4 ts=4 sw=4 et:
3+ #
4+ # Copyright 2024 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+ #
123"""Tooling to handle S3 downloads."""
224from pathlib import Path
325from tempfile import mkstemp
Original file line number Diff line number Diff line change 1+ # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
2+ # vi: set ft=python sts=4 ts=4 sw=4 et:
3+ #
4+ # Copyright 2024 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+ #
123"""Extending pyBIDS for querying TemplateFlow."""
224from bids .layout import BIDSLayout , add_config_paths
325
Original file line number Diff line number Diff line change 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 2024 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+ #
323from importlib import reload
424from shutil import rmtree
525
Original file line number Diff line number Diff line change 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 2024 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"""Check S3-type repo tooling."""
424# import pytest
525from pathlib import Path
Original file line number Diff line number Diff line change 1+ # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
2+ # vi: set ft=python sts=4 ts=4 sw=4 et:
3+ #
4+ # Copyright 2024 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+ #
123"""Test citations."""
224
325import pytest
Original file line number Diff line number Diff line change 1+ # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
2+ # vi: set ft=python sts=4 ts=4 sw=4 et:
3+ #
4+ # Copyright 2024 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+ #
23+ """Tests the config module."""
124from pathlib import Path
225
326import pytest
Original file line number Diff line number Diff line change 1- """Test _version.py."""
1+ # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
2+ # vi: set ft=python sts=4 ts=4 sw=4 et:
3+ #
4+ # Copyright 2024 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+ #
23+ """Test version retrieval."""
224import sys
325from importlib import reload
426from importlib .metadata import PackageNotFoundError
You can’t perform that action at this time.
0 commit comments