Skip to content

Commit acf26d9

Browse files
authored
Merge pull request #11 from effigies/ci/package
MNT: Prepare for 0.0.1 release
2 parents caf9bdb + 4217979 commit acf26d9

File tree

3 files changed

+79
-2
lines changed

3 files changed

+79
-2
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414
branches: [ master ]
1515

1616
jobs:
17-
build:
17+
test:
1818
runs-on: ubuntu-latest
1919
strategy:
2020
matrix:
@@ -46,3 +46,35 @@ jobs:
4646
run: |
4747
source /etc/fsl/fsl.sh
4848
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 }}

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,30 @@
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+
128
## For developers
229

330
Install repo in developer mode from the source directory. It is also useful to

setup.cfg

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,32 @@ subpackage = nipype1
55
author = Chris Markiewicz
66
author_email = markiewicz@stanford.edu
77
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
822

923
[options]
1024
python_requires = >=3.7
1125
install_requires =
1226
pydra >= 0.6.2
1327
nipype
28+
packages = find_namespace:
1429

15-
packages = pydra.tasks.%(subpackage)s
30+
[options.packages.find]
31+
include =
32+
pydra.tasks.%(subpackage)s
33+
pydra.tasks.%(subpackage)s.*
1634

1735
[options.extras_require]
1836
doc =

0 commit comments

Comments
 (0)