diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 4cb47fff..56d55db7 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -10,12 +10,10 @@ build: - asdf plugin add uv - asdf install uv latest - asdf global uv latest - # Turn `python -m virtualenv` into `python -c pass` - - truncate --size 0 $( dirname $( uv python find ) )/../lib/python3*/site-packages/virtualenv/__main__.py - post_create_environment: + create_environment: - uv venv $READTHEDOCS_VIRTUALENV_PATH - # Turn `python -m pip` into `python -c pass` - - truncate --size 0 $( ls -d $READTHEDOCS_VIRTUALENV_PATH/lib/python3* )/site-packages/pip.py - post_install: - - VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH uv pip install --cache-dir $READTHEDOCS_VIRTUALENV_PATH/../../uv_cache .[niftiext] - - VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH uv pip install --cache-dir $READTHEDOCS_VIRTUALENV_PATH/../../uv_cache -r docs/requirements.txt + install: + - VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH uv pip install --cache-dir $READTHEDOCS_VIRTUALENV_PATH/../../uv_cache .[niftiext] -r docs/requirements.txt + +sphinx: + configuration: docs/conf.py diff --git a/README.md b/README.md index b5a45349..4ae2340f 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # NiTransforms [![DOI](https://joss.theoj.org/papers/10.21105/joss.03459/status.svg)](https://doi.org/10.21105/joss.03459) [![ISBI2020](https://img.shields.io/badge/doi-10.31219%2Fosf.io%2F8aq7b-blue.svg)](https://doi.org/10.31219/osf.io/8aq7b) -[![Deps & CI](https://github.com/nipy/nitransforms/actions/workflows/travis.yml/badge.svg)](https://github.com/nipy/nitransforms/actions/workflows/travis.yml) +[![Deps & CI](https://github.com/nipy/nitransforms/actions/workflows/tox.yml/badge.svg)](https://github.com/nipy/nitransforms/actions/workflows/tox.yml) [![CircleCI](https://circleci.com/gh/nipy/nitransforms.svg?style=svg)](https://circleci.com/gh/nipy/nitransforms) [![codecov](https://codecov.io/gh/nipy/nitransforms/branch/master/graph/badge.svg)](https://codecov.io/gh/nipy/nitransforms) [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/nipy/nitransforms/master?filepath=docs%2Fnotebooks%2F) diff --git a/nitransforms/conftest.py b/nitransforms/conftest.py index 854cac43..70680882 100644 --- a/nitransforms/conftest.py +++ b/nitransforms/conftest.py @@ -6,8 +6,6 @@ import pytest import tempfile -_data = None -_brainmask = None _testdir = Path(os.getenv("TEST_DATA_HOME", "~/.nitransforms/testdata")).expanduser() _datadir = Path(__file__).parent / "tests" / "data" @@ -48,10 +46,6 @@ def testdata_path(): @pytest.fixture def get_testdata(): """Generate data in the requested orientation.""" - global _data - - if _data is not None: - return _data return _reorient(_testdir / "someones_anatomy.nii.gz") @@ -59,11 +53,6 @@ def get_testdata(): @pytest.fixture def get_testmask(): """Generate data in the requested orientation.""" - global _brainmask - - if _brainmask is not None: - return _brainmask - return _reorient(_testdir / "someones_anatomy_brainmask.nii.gz")