File tree Expand file tree Collapse file tree 3 files changed +79
-2
lines changed Expand file tree Collapse file tree 3 files changed +79
-2
lines changed Original file line number Diff line number Diff line change 14
14
branches : [ master ]
15
15
16
16
jobs :
17
- build :
17
+ test :
18
18
runs-on : ubuntu-latest
19
19
strategy :
20
20
matrix :
46
46
run : |
47
47
source /etc/fsl/fsl.sh
48
48
pytest -sv --doctest-modules pydra/tasks/$SUBPACKAGE
49
+
50
+ deploy :
51
+ needs : test
52
+ runs-on : ubuntu-latest
53
+ strategy :
54
+ matrix :
55
+ python-version : [3.9]
56
+ steps :
57
+ - uses : actions/checkout@v2
58
+ with :
59
+ submodules : recursive
60
+ fetch-depth : 0
61
+ - name : Set up Python ${{ matrix.python-version }}
62
+ uses : actions/setup-python@v2
63
+ with :
64
+ python-version : ${{ matrix.python-version }}
65
+ - name : Install build tools
66
+ run : python -m pip install --upgrade pip setuptools wheel twine
67
+ - name : Build source and wheel distributions
68
+ run : python setup.py sdist bdist_wheel
69
+ - name : Check distributions
70
+ run : twine check dist/*
71
+ - uses : actions/upload-artifact@v2
72
+ with :
73
+ name : distributions
74
+ path : dist/
75
+ - name : Upload to PyPI (on tags)
76
+ if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
77
+ uses : pypa/gh-action-pypi-publish@master
78
+ with :
79
+ user : __token__
80
+ password : ${{ secrets.PYPI_API_TOKEN }}
Original file line number Diff line number Diff line change
1
+ # Nipype 1 Tasks for Pydra
2
+
3
+ [ Pydra] ( https://nipype.github.io/pydra/ ) is a redesign of the Nipype dataflow
4
+ engine, and the core of the emerging
5
+ [ Nipype 2 ecosystem] ( https://github.com/nipype ) .
6
+
7
+ This is a task package, a set of Pydra Tasks that inhabits the
8
+ ` pydra.tasks.* ` namespace, to ease wrapping Nipype 1 Interfaces.
9
+
10
+ Additional tools for migrating from Nipype 1 to Pydra may find their home here.
11
+
12
+ ## Installation
13
+
14
+ ```
15
+ pip install pydra-nipype1
16
+ ```
17
+
18
+ ## Usage
19
+
20
+ ```
21
+ from pydra.tasks.nipype1.utils import Nipype1Task
22
+ from nipype.interfaces import fsl
23
+
24
+ thresh = Nipype1Task(fsl.Threshold())
25
+ res = thresh(in_file=fname, thresh=0.5)
26
+ ```
27
+
1
28
## For developers
2
29
3
30
Install repo in developer mode from the source directory. It is also useful to
Original file line number Diff line number Diff line change @@ -5,14 +5,32 @@ subpackage = nipype1
5
5
author = Chris Markiewicz
6
6
author_email = markiewicz@stanford.edu
7
7
description = Tools for importing nipype 1.x interfaces into Pydra
8
+ long_description = file:README.md
9
+ long_description_content_type = text/markdown; variant=CommonMark
10
+ license = Apache License, 2.0
11
+ classifiers =
12
+ Development Status :: 4 - Beta
13
+ Environment :: Console
14
+ Intended Audience :: Science/Research
15
+ License :: OSI Approved :: Apache Software License
16
+ Operating System :: MacOS :: MacOS X
17
+ Operating System :: POSIX :: Linux
18
+ Programming Language :: Python :: 3.7
19
+ Programming Language :: Python :: 3.8
20
+ Programming Language :: Python :: 3.9
21
+ Topic :: Scientific/Engineering
8
22
9
23
[options]
10
24
python_requires = >=3.7
11
25
install_requires =
12
26
pydra >= 0.6.2
13
27
nipype
28
+ packages = find_namespace:
14
29
15
- packages = pydra.tasks.%(subpackage)s
30
+ [options.packages.find]
31
+ include =
32
+ pydra.tasks.%(subpackage)s
33
+ pydra.tasks.%(subpackage)s.*
16
34
17
35
[options.extras_require]
18
36
doc =
You can’t perform that action at this time.
0 commit comments