Skip to content

Commit a6a56a0

Browse files
committed
moved fileformats sub-packages inside common subfolder
1 parent 7db15cd commit a6a56a0

File tree

13 files changed

+102
-45
lines changed

13 files changed

+102
-45
lines changed

fileformats-extras/conftest.py

Lines changed: 0 additions & 37 deletions
This file was deleted.

fileformats/extras/LICENSE

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Copyright 2021 Nipype developers
2+
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.

fileformats/extras/README.rst

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
FileFormats-CHANGEME Extras
2+
======================================
3+
.. image:: https://github.com/nipype/pydra-freesurfer/actions/workflows/ci-cd.yaml/badge.svg
4+
:target: https://github.com/nipype/pydra-freesurfer/actions/workflows/ci-cd.yaml
5+
6+
7+
This is a extras module for the `fileformats-CHANGEME <https://github.com/nipype/pydra-freesurfer/>`__
8+
fileformats extension package, which provides additional functionality to format classes (i.e. aside
9+
from basic identification and validation), such as conversion tools, metadata parsers, test data generators, etc...
10+
11+
12+
Quick Installation
13+
------------------
14+
15+
This extension can be installed for Python 3 using *pip*::
16+
17+
$ pip3 install fileformats-CHANGEME-extras
18+
19+
This will install the core package and any other dependencies
20+
21+
License
22+
-------
23+
24+
This work is licensed under a
25+
`Creative Commons Attribution 4.0 International License <http://creativecommons.org/licenses/by/4.0/>`_
26+
27+
.. image:: https://i.creativecommons.org/l/by/4.0/88x31.png
28+
:target: http://creativecommons.org/licenses/by/4.0/
29+
:alt: Creative Commons Attribution 4.0 International License

fileformats-extras/pyproject.toml renamed to fileformats/extras/pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ build-backend = "hatchling.build"
55
[project]
66
name = "fileformats-medimage-CHANGEME-extras"
77
description = "Extensions to add functionality to tool-specific *fileformats* classes"
8-
readme = "../README.rst"
8+
readme = "README.rst"
99
requires-python = ">=3.8"
1010
dependencies = [
1111
"fileformats >= 0.7",
1212
"fileformats-medimage-CHANGEME",
1313
"pydra >= 0.22.0"
1414
]
15-
license = {file = "../LICENSE"}
15+
license = {file = "LICENSE"}
1616
authors = [
1717
{name = "Thomas G. Close", email = "[email protected]"},
1818
]
@@ -62,7 +62,7 @@ repository = "https://github.com/nipype/pydra-CHANGEME"
6262

6363
[tool.hatch.version]
6464
source = "vcs"
65-
raw-options = { root = ".." }
65+
raw-options = { root = "../.." }
6666

6767
[tool.hatch.build.hooks.vcs]
6868
version-file = "fileformats/extras/medimage_CHANGEME/_version.py"

fileformats/src/LICENSE

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Copyright 2021 Nipype developers
2+
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.

fileformats/src/README.rst

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
How to customise this template
2+
==============================
3+
4+
#. Rename the `fileformats/src/CHANGEME` directory to the name of the fileformats subpackage (e.g. `medimage_fsl`)
5+
#. Search and replace "CHANGEME" with the name of the fileformats subpackage the extras are to be added
6+
#. Replace name + email placeholders in `pyproject.toml` for developers and maintainers
7+
#. Add the extension file-format classes
8+
#. Ensure that all the extension file-format classes are imported into the extras package root, i.e. `fileformats/CHANGEME`
9+
#. Delete these instructions
10+
11+
...
12+
13+
FileFormats Extension - CHANGEME
14+
====================================
15+
.. image:: https://github.com/nipype/pydra-CHANGEME/actions/workflows/ci-cd.yml/badge.svg
16+
:target: https://github.com/nipype/pydra-CHANGEME/actions/workflows/ci-cd.yml
17+
18+
This is the "CHANGEME" extension module for the
19+
`fileformats <https://github.com/ArcanaFramework/fileformats-core>`__ package
20+
21+
22+
Quick Installation
23+
------------------
24+
25+
This extension can be installed for Python 3 using *pip*::
26+
27+
$ pip3 install fileformats-CHANGEME
28+
29+
This will install the core package and any other dependencies
30+
31+
License
32+
-------
33+
34+
This work is licensed under a
35+
`Creative Commons Attribution 4.0 International License <http://creativecommons.org/licenses/by/4.0/>`_
36+
37+
.. image:: https://i.creativecommons.org/l/by/4.0/88x31.png
38+
:target: http://creativecommons.org/licenses/by/4.0/
39+
:alt: Creative Commons Attribution 4.0 International License

fileformats/pyproject.toml renamed to fileformats/src/pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ build-backend = "hatchling.build"
55
[project]
66
name = "fileformats-medimage-CHANGEME"
77
description = "Classes for representing different file formats in Python classes for use in type hinting in data workflows"
8-
readme = "../README.rst"
8+
readme = "README.rst"
99
requires-python = ">=3.8"
1010
dependencies = [
1111
"fileformats >= 0.4",
1212
"fileformats-medimage > = 0.2"
1313
]
14-
license = {file = "../LICENSE"}
14+
license = {file = "LICENSE"}
1515
authors = [
1616
{name = "Thomas G. Close", email = "[email protected]"},
1717
]
@@ -59,7 +59,7 @@ repository = "https://github.com/nipype/pydra-CHANGEME"
5959

6060
[tool.hatch.version]
6161
source = "vcs"
62-
raw-options = { root = ".." }
62+
raw-options = { root = "../.." }
6363

6464
[tool.hatch.build.hooks.vcs]
6565
version-file = "fileformats/medimage_CHANGEME/_version.py"

0 commit comments

Comments
 (0)