@@ -20,21 +20,21 @@ help:
2020% : Makefile
2121 @$(SPHINXBUILD ) -M $@ " $( SOURCEDIR) " " $( BUILDDIR) " $(SPHINXOPTS ) $(O )
2222
23- # add a dependency, this is an alias for poetry add that also updates the requirements.txt file
23+ # add a dependency, this is an alias for uv add that also updates the pyproject.toml file
2424add :
2525 @scripts/add_python_dependency $(ARGUMENTS )
2626
27- # copies metadata to path included in pypet2bids project to enable packaging of those files w/ poetry
27+ # builds package using standard Python packaging tools
2828buildpackage :
2929 @cp pypet2bids/pyproject.toml pypet2bids/pypet2bids/pyproject.toml
3030 @rm -rf pypet2bids/dist
31- @cd pypet2bids && poetry lock && poetry build
31+ @cd pypet2bids && uv build
3232
3333publish :
34- @cd pypet2bids && poetry publish
34+ @cd pypet2bids && uv publish
3535
36- installpoetry :
37- @cd scripts && ./installpoetry
36+ installuv :
37+ @cd scripts && ./installuv
3838
3939# installs latest package
4040installpackage :
@@ -43,14 +43,18 @@ installpackage:
4343testphantoms :
4444 @scripts/testphantoms
4545
46+ # test package across all supported Python versions
47+ test-all-python-versions :
48+ @scripts/test_all_python_versions
49+
4650html :
4751 @cd docs && make html
4852
4953installdependencies :
5054 @cd pypet2bids; \
5155 python -m pip install --upgrade pip; \
52- pip install poetry ; \
53- poetry install --with dev
56+ pip install uv ; \
57+ uv sync --dev
5458
5559collectphantoms :
5660ifeq (, $(wildcard ./PHANTOMS.zip) )
@@ -64,20 +68,20 @@ decompressphantoms:
6468
6569testecatcli :
6670 @cd pypet2bids; \
67- poetry run python -m pypet2bids.ecat_cli --help; \
68- poetry run python -m pypet2bids.ecat_cli ../OpenNeuroPET-Phantoms/sourcedata/SiemensHRRT-JHU/Hoffman.v --dump
71+ uv run python -m pypet2bids.ecat_cli --help; \
72+ uv run python -m pypet2bids.ecat_cli ../OpenNeuroPET-Phantoms/sourcedata/SiemensHRRT-JHU/Hoffman.v --dump
6973
7074testecatread :
7175 @cd pypet2bids; \
7276 export TEST_ECAT_PATH=" ../OpenNeuroPET-Phantoms/sourcedata/SiemensHRRT-JHU/Hoffman.v" ; \
7377 export READ_ECAT_SAVE_AS_MATLAB=" $$ PWD/tests/ECAT7_multiframe.mat" ; \
7478 export NIBABEL_READ_ECAT_SAVE_AS_MATLAB=" $$ PWD/tests/ECAT7_multiframe.nibabel.mat" ; \
75- poetry run python3 -m tests.test_ecatread
79+ uv run python3 -m tests.test_ecatread
7680
7781testotherpython :
7882 cd pypet2bids; \
7983 export TEST_DICOM_IMAGE_FOLDER=" ../OpenNeuroPET-Phantoms/sourcedata/SiemensBiographPETMR-NIMH/AC_TOF" ; \
80- poetry run pytest --ignore=tests/test_write_ecat.py tests/ -vvv
84+ uv run pytest --ignore=tests/test_write_ecat.py tests/ -vvv
8185
8286pythongithubworkflow : installdependencies collectphantoms decompressphantoms testecatread testecatcli testotherpython
8387 @echo finished running python tests
0 commit comments