generated from nipype/pydra-tasks-template
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
moved packages out of src and set up auto version
- Loading branch information
Showing
49 changed files
with
629 additions
and
211 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
""" | ||
This is a basic doctest demonstrating that the package and pydra can both be successfully | ||
imported. | ||
>>> import pydra.engine | ||
>>> import pydra.tasks.fsl | ||
""" | ||
|
||
from warnings import warn | ||
from pathlib import Path | ||
|
||
pkg_path = Path(__file__).parent.parent | ||
|
||
try: | ||
from ._version import __version__ | ||
except ImportError: | ||
raise RuntimeError( | ||
"pydra-fsl has not been properly installed, please run " | ||
f"`pip install -e {str(pkg_path)}` to install a development version" | ||
) | ||
if "nipype" not in __version__: | ||
try: | ||
from .auto._version import nipype_version, nipype2pydra_version | ||
except ImportError: | ||
warn( | ||
"Nipype interfaces haven't been automatically converted from their specs in " | ||
f"`nipype-auto-conv`. Please run `{str(pkg_path / 'nipype-auto-conv' / 'generate')}` " | ||
"to generated the converted Nipype interfaces in pydra.tasks.fsl.auto" | ||
) | ||
else: | ||
n_ver = nipype_version.replace(".", "_") | ||
n2p_ver = nipype2pydra_version.replace(".", "_") | ||
__version__ += ( | ||
"_" if "+" in __version__ else "+" | ||
) + f"nipype{n_ver}_nipype2pydra{n2p_ver}" | ||
|
||
|
||
__all__ = ["__version__"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
PACKAGE_VERSION = "v6_0" | ||
|
||
from .v6_0 import * # noqa |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.