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:
1010 - asdf plugin add uv
1111 - asdf install uv latest
1212 - 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 :
1614 - 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 11# NiTransforms
22[ ![ DOI] ( https://joss.theoj.org/papers/10.21105/joss.03459/status.svg )] ( https://doi.org/10.21105/joss.03459 )
33[ ![ 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 )
55[ ![ CircleCI] ( https://circleci.com/gh/nipy/nitransforms.svg?style=svg )] ( https://circleci.com/gh/nipy/nitransforms )
66[ ![ codecov] ( https://codecov.io/gh/nipy/nitransforms/branch/master/graph/badge.svg )] ( https://codecov.io/gh/nipy/nitransforms )
77[ ![ 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 66import pytest
77import tempfile
88
9- _data = None
10- _brainmask = None
119_testdir = Path (os .getenv ("TEST_DATA_HOME" , "~/.nitransforms/testdata" )).expanduser ()
1210_datadir = Path (__file__ ).parent / "tests" / "data"
1311
@@ -48,22 +46,13 @@ def testdata_path():
4846@pytest .fixture
4947def get_testdata ():
5048 """Generate data in the requested orientation."""
51- global _data
52-
53- if _data is not None :
54- return _data
5549
5650 return _reorient (_testdir / "someones_anatomy.nii.gz" )
5751
5852
5953@pytest .fixture
6054def get_testmask ():
6155 """Generate data in the requested orientation."""
62- global _brainmask
63-
64- if _brainmask is not None :
65- return _brainmask
66-
6756 return _reorient (_testdir / "someones_anatomy_brainmask.nii.gz" )
6857
6958
You can’t perform that action at this time.
0 commit comments