File tree 5 files changed +62
-18
lines changed 5 files changed +62
-18
lines changed Original file line number Diff line number Diff line change 3
3
4
4
name : Python package
5
5
6
+ # Set once
7
+ env :
8
+ SUBPACKAGE : nipype1
9
+
6
10
on :
7
11
push :
8
12
branches : [ master ]
11
15
12
16
jobs :
13
17
build :
14
-
15
18
runs-on : ubuntu-latest
16
19
strategy :
17
20
matrix :
18
21
python-version : [3.7, 3.8]
22
+ pip-flags : ['', '--editable']
23
+ pydra :
24
+ - ' pydra'
25
+ - ' --editable git+https://github.com/nipype/pydra.git#egg=pydra'
19
26
20
27
steps :
21
28
- uses : actions/checkout@v2
22
29
- name : Set up Python ${{ matrix.python-version }}
23
30
uses : actions/setup-python@v2
24
31
with :
25
32
python-version : ${{ matrix.python-version }}
26
- - name : Install dependencies
33
+ - name : Install build dependencies
27
34
run : |
28
35
python -m pip install --upgrade pip
29
- pip install ".[dev]"
36
+ - name : Install Pydra
37
+ run : |
38
+ pip install ${{ matrix.pydra }}
39
+ python -c "import pydra as m; print(f'{m.__name__} {m.__version__} @ {m.__file__}')"
40
+ - name : Install task package
41
+ run : |
42
+ pip install ${{ matrix.pip-flags }} ".[dev]"
43
+ python -c "import pydra.tasks.$SUBPACKAGE as m; print(f'{m.__name__} {m.__version__} @ {m.__file__}')"
44
+ python -c "import pydra as m; print(f'{m.__name__} {m.__version__} @ {m.__file__}')"
30
45
- name : Test with pytest
31
46
run : |
32
- pytest -sv --doctest-modules pydra/tasks/nipype1
47
+ pytest -sv --doctest-modules pydra/tasks/$SUBPACKAGE
Original file line number Diff line number Diff line change 186
186
same "printed page" as the copyright notice for easier
187
187
identification within third-party archives.
188
188
189
- Copyright [yyyy] [name of copyright owner]
189
+ Copyright 2020 Nipype developers
190
190
191
191
Licensed under the Apache License, Version 2.0 (the "License");
192
192
you may not use this file except in compliance with the License.
Original file line number Diff line number Diff line change
1
+ ## For developers
2
+
3
+ Install repo in developer mode from the source directory. It is also useful to
4
+ install pre-commit to take care of styling via black:
5
+
6
+ ```
7
+ pip install -e .[dev]
8
+ pre-commit install
9
+ ```
Original file line number Diff line number Diff line change
1
+ [DEFAULT]
2
+ subpackage = nipype1
3
+
1
4
[metadata]
2
5
author = Chris Markiewicz
3
6
@@ -6,21 +9,37 @@ description = Tools for importing nipype 1.x interfaces into Pydra
6
9
[options]
7
10
python_requires = >=3.7
8
11
install_requires =
9
- pydra >= 0.6.1
12
+ pydra >= 0.6.2
10
13
nipype
11
- packages = pydra.tasks.nipype1
12
- namespace_packages = pydra.tasks
14
+
15
+ packages = pydra.tasks.%(subpackage)s
13
16
14
17
[options.extras_require]
18
+ doc =
19
+ packaging
20
+ sphinx >= 2.1.2
21
+ sphinx_rtd_theme
22
+ sphinxcontrib-apidoc ~= 0.3.0
23
+ sphinxcontrib-napoleon
24
+ sphinxcontrib-versioning
25
+ docs =
26
+ %(doc)s
15
27
test =
16
- pytest
28
+ pytest >= 4.4.0
29
+ tests =
30
+ %(test)s
17
31
dev =
18
32
%(test)s
33
+ black
34
+ pre-commit
35
+ all =
36
+ %(doc)s
37
+ %(dev)s
19
38
20
39
[versioneer]
21
40
VCS = git
22
41
style = pep440
23
- versionfile_source = pydra/tasks/nipype1 /_version.py
24
- versionfile_build = pydra/tasks/nipype1 /_version.py
42
+ versionfile_source = pydra/tasks/%(subpackage)s /_version.py
43
+ versionfile_build = pydra/tasks/%(subpackage)s /_version.py
25
44
tag_prefix =
26
45
parentdir_prefix =
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python
2
2
import sys
3
- import os
4
3
5
4
from setuptools import setup
6
5
import versioneer
7
6
8
7
# Give setuptools a hint to complain if it's too old a version
9
8
# 30.3.0 allows us to put most metadata in setup.cfg
10
9
# Should match pyproject.toml
11
- SETUP_REQUIRES = [' setuptools >= 30.3.0' ]
10
+ SETUP_REQUIRES = [" setuptools >= 30.3.0" ]
12
11
# This enables setuptools to install wheel on-the-fly
13
- SETUP_REQUIRES += [' wheel' ] if ' bdist_wheel' in sys .argv else []
12
+ SETUP_REQUIRES += [" wheel" ] if " bdist_wheel" in sys .argv else []
14
13
15
14
if __name__ == "__main__" :
16
- setup (name = 'pydra-nipype1' ,
17
- setup_requires = SETUP_REQUIRES ,
18
- version = versioneer .get_version (),
19
- cmdclass = versioneer .get_cmdclass ())
15
+ setup (
16
+ name = "pydra-nipype1" ,
17
+ setup_requires = SETUP_REQUIRES ,
18
+ version = versioneer .get_version (),
19
+ cmdclass = versioneer .get_cmdclass (),
20
+ )
You can’t perform that action at this time.
0 commit comments