Skip to content

Commit 9c7b066

Browse files
authored
Merge pull request #92 from oesteban/maint/packaging-workaround
MAINT: Add imports of modules in ``__init__.py`` to workaround #91
2 parents cfea21a + 1ee844a commit 9c7b066

File tree

4 files changed

+20
-3
lines changed

4 files changed

+20
-3
lines changed

CHANGES.rst

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ This release accompanies the `ISBI2020 preprint <https://doi.org/10.31219/osf.io
3333
* ENH: Revise doctests and get them ready for more thorough testing. (#10)
3434
* DOC: Add figure to JOSS draft / Add @smoia to author list (#61)
3535
* DOC: Initial JOSS draft (#47)
36+
* MAINT: Add imports of modules in ``__init__.py`` to workaround #91 (#92)
3637
* MAINT: Fix missing python3 binary on CircleCI build job step (#85)
3738
* MAINT: Use setuptools_scm to manage versioning (#83)
3839
* MAINT: Split binary test-data out from gh repo (#84)

nitransforms/__init__.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@
1616
1717
transform
1818
"""
19-
from .linear import Affine
19+
from . import linear, manip, nonlinear
20+
from .linear import Affine, LinearTransformsMapping
2021
from .nonlinear import DisplacementsFieldTransform
22+
from .manip import TransformChain
2123

2224
try:
2325
from ._version import __version__
@@ -33,7 +35,12 @@
3335

3436

3537
__all__ = [
38+
"linear",
39+
"manip",
40+
"nonlinear",
3641
"Affine",
42+
"LinearTransformsMapping",
3743
"DisplacementsFieldTransform",
44+
"TransformChain",
3845
"__version__",
3946
]

nitransforms/io/__init__.py

+11-1
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,18 @@
1515
:toctree: ../generated
1616
1717
io
18+
1819
"""
20+
from . import afni, fsl, itk, lta
1921
from .lta import LinearTransform, LinearTransformArray, VolumeGeometry
2022

2123

22-
__all__ = ["LinearTransform", "LinearTransformArray", "VolumeGeometry"]
24+
__all__ = [
25+
"afni",
26+
"fsl",
27+
"itk",
28+
"lta",
29+
"LinearTransform",
30+
"LinearTransformArray",
31+
"VolumeGeometry",
32+
]

setup.cfg

-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ include_package_data = True
4141
test =
4242
pytest
4343
pytest-cov
44-
nose
4544
codecov
4645
tests =
4746
%(test)s

0 commit comments

Comments
 (0)