Skip to content

Commit 4136681

Browse files
authored
Merge pull request #238 from effigies/mnt/fix-ci
chore: Fix doc builds and pacify linter
2 parents c8c37ba + f6e870a commit 4136681

File tree

3 files changed

+7
-20
lines changed

3 files changed

+7
-20
lines changed

.readthedocs.yaml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff 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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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)

nitransforms/conftest.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
import pytest
77
import 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
4947
def 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
6054
def 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

0 commit comments

Comments
 (0)