File tree Expand file tree Collapse file tree 3 files changed +7
-20
lines changed Expand file tree Collapse file tree 3 files changed +7
-20
lines changed Original file line number Diff line number Diff line change @@ -10,12 +10,10 @@ build:
10
10
- asdf plugin add uv
11
11
- asdf install uv latest
12
12
- asdf global uv latest
13
- # Turn `python -m virtualenv` into `python -c pass`
14
- - truncate --size 0 $( dirname $( uv python find ) )/../lib/python3*/site-packages/virtualenv/__main__.py
15
- post_create_environment :
13
+ create_environment :
16
14
- uv venv $READTHEDOCS_VIRTUALENV_PATH
17
- # Turn `python -m pip` into `python -c pass`
18
- - truncate --size 0 $( ls -d $READTHEDOCS_VIRTUALENV_PATH/lib/python3* )/site-packages/pip.py
19
- post_install :
20
- - VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH uv pip install --cache-dir $READTHEDOCS_VIRTUALENV_PATH/../../uv_cache .[niftiext]
21
- - VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH uv pip install --cache-dir $READTHEDOCS_VIRTUALENV_PATH/../../uv_cache -r docs/requirements.txt
15
+ install :
16
+ - VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH uv pip install --cache-dir $READTHEDOCS_VIRTUALENV_PATH/../../uv_cache .[niftiext] -r docs/requirements.txt
17
+
18
+ sphinx :
19
+ configuration : docs/conf.py
Original file line number Diff line number Diff line change 1
1
# NiTransforms
2
2
[ ![ DOI] ( https://joss.theoj.org/papers/10.21105/joss.03459/status.svg )] ( https://doi.org/10.21105/joss.03459 )
3
3
[ ![ ISBI2020] ( https://img.shields.io/badge/doi-10.31219%2Fosf.io%2F8aq7b-blue.svg )] ( https://doi.org/10.31219/osf.io/8aq7b )
4
- [ ![ Deps & CI] ( https://github.com/nipy/nitransforms/actions/workflows/travis .yml/badge.svg )] ( https://github.com/nipy/nitransforms/actions/workflows/travis .yml )
4
+ [ ![ Deps & CI] ( https://github.com/nipy/nitransforms/actions/workflows/tox .yml/badge.svg )] ( https://github.com/nipy/nitransforms/actions/workflows/tox .yml )
5
5
[ ![ CircleCI] ( https://circleci.com/gh/nipy/nitransforms.svg?style=svg )] ( https://circleci.com/gh/nipy/nitransforms )
6
6
[ ![ codecov] ( https://codecov.io/gh/nipy/nitransforms/branch/master/graph/badge.svg )] ( https://codecov.io/gh/nipy/nitransforms )
7
7
[ ![ Binder] ( https://mybinder.org/badge_logo.svg )] ( https://mybinder.org/v2/gh/nipy/nitransforms/master?filepath=docs%2Fnotebooks%2F )
Original file line number Diff line number Diff line change 6
6
import pytest
7
7
import tempfile
8
8
9
- _data = None
10
- _brainmask = None
11
9
_testdir = Path (os .getenv ("TEST_DATA_HOME" , "~/.nitransforms/testdata" )).expanduser ()
12
10
_datadir = Path (__file__ ).parent / "tests" / "data"
13
11
@@ -48,22 +46,13 @@ def testdata_path():
48
46
@pytest .fixture
49
47
def get_testdata ():
50
48
"""Generate data in the requested orientation."""
51
- global _data
52
-
53
- if _data is not None :
54
- return _data
55
49
56
50
return _reorient (_testdir / "someones_anatomy.nii.gz" )
57
51
58
52
59
53
@pytest .fixture
60
54
def get_testmask ():
61
55
"""Generate data in the requested orientation."""
62
- global _brainmask
63
-
64
- if _brainmask is not None :
65
- return _brainmask
66
-
67
56
return _reorient (_testdir / "someones_anatomy_brainmask.nii.gz" )
68
57
69
58
You can’t perform that action at this time.
0 commit comments